Merge "Propagate whitelisted perms during install" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ddaa6e5943
@@ -1505,7 +1505,8 @@ public class PackageManagerService extends IPackageManager.Stub
|
|||||||
final List<String> whitelistedRestrictedPermissions = ((args.installFlags
|
final List<String> whitelistedRestrictedPermissions = ((args.installFlags
|
||||||
& PackageManager.INSTALL_ALL_WHITELIST_RESTRICTED_PERMISSIONS) != 0
|
& PackageManager.INSTALL_ALL_WHITELIST_RESTRICTED_PERMISSIONS) != 0
|
||||||
&& parentRes.pkg != null)
|
&& parentRes.pkg != null)
|
||||||
? parentRes.pkg.requestedPermissions : null;
|
? parentRes.pkg.requestedPermissions
|
||||||
|
: args.whitelistedRestrictedPermissions;
|
||||||
|
|
||||||
// Handle the parent package
|
// Handle the parent package
|
||||||
handlePackagePostInstall(parentRes, grantPermissions,
|
handlePackagePostInstall(parentRes, grantPermissions,
|
||||||
|
|||||||
Reference in New Issue
Block a user