InstalledAppDetails: allow revocable permission.
Modify the Settings app so that a user can revoke permissions, using the new API added in AppSecurityPermissions. Bug: 8332307 Change-Id: I4d6c10877e2c3cc284dbf9a43f79697914c0b192
This commit is contained in:
@@ -768,7 +768,7 @@ public class InstalledAppDetails extends Fragment
|
|||||||
LinearLayout securityList = (LinearLayout) permsView.findViewById(
|
LinearLayout securityList = (LinearLayout) permsView.findViewById(
|
||||||
R.id.security_settings_list);
|
R.id.security_settings_list);
|
||||||
securityList.removeAllViews();
|
securityList.removeAllViews();
|
||||||
securityList.addView(asp.getPermissionsView());
|
securityList.addView(asp.getPermissionsViewWithRevokeButtons());
|
||||||
// If this app is running under a shared user ID with other apps,
|
// If this app is running under a shared user ID with other apps,
|
||||||
// update the description to explain this.
|
// update the description to explain this.
|
||||||
String[] packages = mPm.getPackagesForUid(mPackageInfo.applicationInfo.uid);
|
String[] packages = mPm.getPackagesForUid(mPackageInfo.applicationInfo.uid);
|
||||||
|
Reference in New Issue
Block a user