commit | 9c5f71f364809a7dbde2b352c3e50d13fc33c17f | [log] [tgz] |
---|---|---|
author | Meng Wang <mewan@google.com> | Mon Apr 19 21:16:23 2021 +0000 |
committer | Meng Wang <mewan@google.com> | Mon Apr 19 21:23:10 2021 +0000 |
tree | 5033a93438bf29e13d86e662aead63d87c9f0fd5 | |
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