OSDN Git Service

pm: PackageBackwardCompatibility -> applyPolicy
authorSteven Moreland <smoreland@google.com>
Wed, 6 Mar 2019 17:20:37 +0000 (09:20 -0800)
committerSteven Moreland <smoreland@google.com>
Tue, 12 Mar 2019 21:44:08 +0000 (21:44 +0000)
commitb28b7960b2bd2d33cbccd88d2d4d3c05e09f2770
tree3a37dda0a944c90264b6eb04bc790aa89d12c6b8
parent8bf13f06d71f01b79752965526cbdf598c1067fd
pm: PackageBackwardCompatibility -> applyPolicy

This moves PackageBackwardCompatibility from parsePackage to
applyPolicy.

The motivation of this is to expose partition information to these
files. Specifically, to expose whether the app is a pre-installed
(or updated pre-installed app) for certain backwards compatibility
rules that should only apply to these cases.

Bug: 86259915
Test: boot Pixel 2
Test: Pixel 3: atest -p cts/tests/signature
- all passed except for CtsSystemApiAnnotationTestCases test which
  failed (known issue b/124210145)
Change-Id: Ic824f06489781233dc98bf3dc0182681d32f7142
core/java/android/content/pm/PackageParser.java
services/core/java/com/android/server/pm/PackageManagerService.java