Merge "Resets system flags when updating PackageSettings" into pi-dev
am: f8f6e5af75
Change-Id: I8832fc1d11afe9593bf229ef0575b8e8d962d2db
This commit is contained in:
committed by
android-build-merger
commit
91bb146dd0
@@ -844,7 +844,12 @@ public final class Settings {
|
|||||||
}
|
}
|
||||||
// If what we are scanning is a system (and possibly privileged) package,
|
// If what we are scanning is a system (and possibly privileged) package,
|
||||||
// then make it so, regardless of whether it was previously installed only
|
// then make it so, regardless of whether it was previously installed only
|
||||||
// in the data partition.
|
// in the data partition. Reset first.
|
||||||
|
pkgSetting.pkgFlags &= ~ApplicationInfo.FLAG_SYSTEM;
|
||||||
|
pkgSetting.pkgPrivateFlags &= ~(ApplicationInfo.PRIVATE_FLAG_PRIVILEGED
|
||||||
|
| ApplicationInfo.PRIVATE_FLAG_OEM
|
||||||
|
| ApplicationInfo.PRIVATE_FLAG_VENDOR
|
||||||
|
| ApplicationInfo.PRIVATE_FLAG_PRODUCT);
|
||||||
pkgSetting.pkgFlags |= pkgFlags & ApplicationInfo.FLAG_SYSTEM;
|
pkgSetting.pkgFlags |= pkgFlags & ApplicationInfo.FLAG_SYSTEM;
|
||||||
pkgSetting.pkgPrivateFlags |=
|
pkgSetting.pkgPrivateFlags |=
|
||||||
pkgPrivateFlags & ApplicationInfo.PRIVATE_FLAG_PRIVILEGED;
|
pkgPrivateFlags & ApplicationInfo.PRIVATE_FLAG_PRIVILEGED;
|
||||||
|
|||||||
Reference in New Issue
Block a user