Revert the usage of sCompatibilityModeEnabled

Change the usage of global compatibility mode enabled state back to
PackageParser first until the tests are ready to ensure the behavior
is consistent.

Bug: 186592266
Test: atest CtsCompatibilityModeTestCases
Change-Id: Ib57886c095a7b2f6e797ccdaa2890f3ad60f5482
This commit is contained in:
Jackal Guo
2021-05-08 23:38:03 +08:00
parent 018510f032
commit 254edef2cf

View File

@@ -397,7 +397,7 @@ public class PackageInfoWithoutStateUtils {
}
// CompatibilityMode is global state.
if (!ParsingPackageUtils.sCompatibilityModeEnabled) {
if (!android.content.pm.PackageParser.sCompatibilityModeEnabled) {
ai.disableCompatibilityMode();
}