Merge "Propagate whitelisted perms during install" into qt-dev

This commit is contained in:
TreeHugger Robot
2019-06-20 01:28:56 +00:00
committed by Android (Google) Code Review

View File

@@ -1505,7 +1505,8 @@ public class PackageManagerService extends IPackageManager.Stub
final List<String> whitelistedRestrictedPermissions = ((args.installFlags
& PackageManager.INSTALL_ALL_WHITELIST_RESTRICTED_PERMISSIONS) != 0
&& parentRes.pkg != null)
? parentRes.pkg.requestedPermissions : null;
? parentRes.pkg.requestedPermissions
: args.whitelistedRestrictedPermissions;
// Handle the parent package
handlePackagePostInstall(parentRes, grantPermissions,