summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src
diff options
context:
space:
mode:
author Hao Ke <haok@google.com> 2021-09-21 18:44:40 +0000
committer Hao Ke <haok@google.com> 2021-09-30 16:31:16 +0000
commit8a86e7d51e7ee31557f3c33eec8f11f032c8e25b (patch)
treea1e06349cba6e43fcc08ff862b2d36e31209435a /tests/DynamicCodeLoggerIntegrationTests/src
parentef483e49cd3072693fe0cf6a0a89743057ef80b9 (diff)
Adding typed Parcel read/write APIs.
Description: Added replacements of `readList`, `readParcelable` and `readParcelableCreator` APIs. To avoid unexpected types of objects being unparcelled, ideally clients would use the readTypedXXX() methods that take the parcelable creator. However, this won’t be an option for use cases involving deserializing children objects inherited from non-final parcelable or serializable objects. Currently out of ~4k parcelable classes, only ~1.5k are marked as “final” in the platform. Hence it would be necessary to introduce new replacements that take an extra Class<T> parameter and before deserializing we check that the class written on the wire is the same or a descendant from the one provided as argument. Doing so could enhance the security of Parcel deserialization, More details can be found at go/safer-parcel. Test: atest -d android.os.cts.ParcelTest Bug: 195622897 Change-Id: Ie9a4cb4c3d6f1805b14df7b703aef43e2993d459
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src')
0 files changed, 0 insertions, 0 deletions