diff options
| author | 2021-04-19 21:16:23 +0000 | |
|---|---|---|
| committer | 2021-04-19 21:23:10 +0000 | |
| commit | 9c5f71f364809a7dbde2b352c3e50d13fc33c17f (patch) | |
| tree | 5033a93438bf29e13d86e662aead63d87c9f0fd5 /libs/androidfw/AttributeResolution.cpp | |
| parent | 958f9efba57fcae71ddbfe9cf70cc0aed1dbaa26 (diff) | |
PersistableBundle.restoreFromXml should return a mutable bundle.
Issue:
Currently, restoreFromXml/readFromStream returns an immutable
PersistableBundle.EMPTY when the underlying XML file is
ill-formatted. Otherwise it returns a mutable one.
This inconsistent behavior easily causes crash when returned
PersistableBundle is mutated.
Fix:
Make restoreFromXml consistently return a mutable
PersistableBundle.
Bug: 185436202
Test: make
Change-Id: I3c9ab4df9f0fea2d46d1c9b72ffd4b65790180b2
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions