diff options
author | Tyler Gunn <tgunn@google.com> | 2017-09-12 13:39:38 -0700 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2017-09-12 19:13:30 -0700 |
commit | c4fd93e43b1210164cdaa5a9d895f9666e108a66 (patch) | |
tree | 38ad81f4d63ba232feaea2415b0793c05a44e9ce /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | d217a0c5a7603aa35d944caf428e01a077c781cc (diff) |
Fix ImsCallProfile parceling and add protection for invalid parcelables.
Two things:
1. The writeToParcel and readFromParcel in the ImsCallProfile never
worked; they were not parceling the Bundle properly.
2. Ensuring on writeToParcel that invalid Bundle contents are removed and
not sent across a Binder interface.
The existing Bundle.filterValues method accomplishes this by ensuring only
primitive types and android.* namespace parcelables are included in the
Bundle. We use this to ensure that when the ImsCallProfile instances cross
the binder call boundary, package-local Parcelables don't cause the
Bundle to be invalidated when unmarshaled in a place where the
pacakge-local parcelable is not available.
Test: Manual, also wrote new unit tests
Bug: 65562929
Change-Id: Iea982d14a053414b9a4daba998c021c61902119d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions