Permalink
Browse files

Make SYSTEM_ALERT_WINDOW development permission

bug:25329324

Change-Id: I0086464846bab9424764dd0d726692d96a0f1207
  • Loading branch information...
sganov committed Oct 27, 2015
1 parent e39def4 commit 01af6a42a6a008d4b208a92510537791b261168c
@@ -1461,7 +1461,7 @@
<permission android:name="android.permission.SYSTEM_ALERT_WINDOW"
android:label="@string/permlab_systemAlertWindow"
android:description="@string/permdesc_systemAlertWindow"
android:protectionLevel="signature|preinstalled|appop|pre23" />
android:protectionLevel="signature|preinstalled|appop|pre23|development" />
<!-- ================================== -->
<!-- Permissions affecting the system wallpaper -->
@@ -1713,13 +1713,14 @@ private void grantRequestedRuntimePermissionsForUser(PackageParser.Package pkg,
return;
}
PermissionsState permissionsState = sb.getPermissionsState();
for (String permission : pkg.requestedPermissions) {
BasePermission bp = mSettings.mPermissions.get(permission);
if (bp != null && bp.isRuntime() && (grantedPermissions == null
|| ArrayUtils.contains(grantedPermissions, permission))) {
permissionsState.grantRuntimePermission(bp, userId);
synchronized (mPackages) {
for (String permission : pkg.requestedPermissions) {
BasePermission bp = mSettings.mPermissions.get(permission);
if (bp != null && (bp.isRuntime() || bp.isDevelopment())
&& (grantedPermissions == null
|| ArrayUtils.contains(grantedPermissions, permission))) {
grantRuntimePermission(pkg.packageName, permission, userId);
}
}
}
}
@@ -3519,7 +3520,8 @@ public void run() {
killUid(appId, userId, KILL_APP_REASON_GIDS_CHANGED);
}
});
} break;
}
break;
}
mOnPermissionChangeListeners.onPermissionsChanged(uid);

0 comments on commit 01af6a4

Please sign in to comment.