diff options
author | Patrick Baumann <patb@google.com> | 2020-06-23 13:07:55 -0700 |
---|---|---|
committer | Patrick Baumann <patb@google.com> | 2020-06-23 14:50:04 -0700 |
commit | 88c11506df66e1f08d241880281b1a0a3b320a91 (patch) | |
tree | b78986d26bb73ef109ccaf703f06b0194434e094 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 8d139f6a9815947da5c0ad6f3096c4dfa902bcb4 (diff) |
Remove then add during replace to reset vis
This change adds a special case to remove a package from the apps filter
just before adding it during a replace action to ensure we wipe any
no-longer-valid visibility grants. This was broken when we moved the
removePackage call to account for packages that are removed with
KEEP_DATA set. To account for both scenarios, we added make an
additional call for the replace case.
Fixes: 159732800
Test: atest AppEnumerationTests
Change-Id: I031c634986b0666163f0292070be31c33461b9bc
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions