diff options
author | Todd Kennedy <toddke@google.com> | 2017-07-19 09:47:55 -0700 |
---|---|---|
committer | Todd Kennedy <toddke@google.com> | 2017-07-19 09:47:55 -0700 |
commit | c606627e6c931d4d1e60ce29f7802d7bd9f4403d (patch) | |
tree | 759b25d6589459706a0e47dd35ac54432826bb4f /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 436faf89dc2c1a8ecb2708c5d4e3b5ba949f85b3 (diff) |
Always populate the ApplicationInfo object
While scanning system apps, we abort package/application info setup
if an app on /system is not a higher version than an upgrade on /data.
Instead, we need to still fully populate these objects because they
can be retrievd using the MATCH_FACTORY_ONLY flag.
Change-Id: I0262b46f446eace60ce94f1428f3fb15d785a89c
Fixes: 62980149
Test: Manual
Test: Create a sample application that dumps the contents of an ApplicationInfo object for a given package
Test: Install the sample application on the /system partition and "upgrade" the sample application so it's also on the /data partition
Test: Create a secondary user and disable the sample application
Test: Reboot the device
Test: Run the sample application as the primary user and see that the ApplicationInfo object is correctly populated
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions