am a5cd5d87: am 0b5162c8: am 6dd856b1: Merge "Don\'t drop runtime permissions on older system app update." into mnc-dev
* commit 'a5cd5d8756bbaa62f965489f6fe9cd52e3fd17eb': Don't drop runtime permissions on older system app update.
This commit is contained in:
@@ -5933,12 +5933,6 @@ public class PackageManagerService extends IPackageManager.Stub {
|
|||||||
*/
|
*/
|
||||||
if (shouldHideSystemApp) {
|
if (shouldHideSystemApp) {
|
||||||
synchronized (mPackages) {
|
synchronized (mPackages) {
|
||||||
/*
|
|
||||||
* We have to grant systems permissions before we hide, because
|
|
||||||
* grantPermissions will assume the package update is trying to
|
|
||||||
* expand its permissions.
|
|
||||||
*/
|
|
||||||
grantPermissionsLPw(pkg, true, pkg.packageName);
|
|
||||||
mSettings.disableSystemPackageLPw(pkg.packageName);
|
mSettings.disableSystemPackageLPw(pkg.packageName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user