diff options
author | Winson <chiuwinson@google.com> | 2020-02-21 17:32:14 -0800 |
---|---|---|
committer | Winson <chiuwinson@google.com> | 2020-02-22 20:57:31 -0800 |
commit | 8359e40c9277005d93b9f9b6bcb09374d6ae7a8f (patch) | |
tree | 1bb350dc532f9befaf5a4981a317abff438f55a8 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | b629d69db047c40f2b110f2d73ad8ceb1b32ea68 (diff) |
Fix PackageSetting isUpdatedSystemApp and SYSTEM_EXT rescan
When updating a PackageSetting, the existing one was not
being considered, causing them to be assigned incorrectly
on re-scan/re-install.
The updatedSystemApp state was also being toggled incorrectly,
as the previous code relied on the fact that a new Package
object was created, implicitly resetting the fields as it
was a new Java object with re-initialized fields.
This disables the field explicitly when re-enabling a system app,
as this action re-uses the existing PackageSetting that was
previously associated with the /data copy.
Also fixes scanning as SYSTEM_EXT when the disabled system
package was also SYSTEM_EXT.
Bug: 135203078
Bug: 149994952
Test: atest NexusLauncherTests:com.android.quickstep.StartLauncherViaGestureTests
Merged-In: I81d126efc144725cac8af6810d33952295b375e1
Change-Id: I81d126efc144725cac8af6810d33952295b375e1
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions