OSDN Git Service

Always populate the ApplicationInfo object
authorTodd Kennedy <toddke@google.com>
Wed, 19 Jul 2017 16:47:55 +0000 (09:47 -0700)
committerTodd Kennedy <toddke@google.com>
Wed, 19 Jul 2017 16:47:55 +0000 (09:47 -0700)
commitc606627e6c931d4d1e60ce29f7802d7bd9f4403d
tree759b25d6589459706a0e47dd35ac54432826bb4f
parent436faf89dc2c1a8ecb2708c5d4e3b5ba949f85b3
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
services/core/java/com/android/server/pm/PackageManagerService.java