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:
Nick Kralevich
2013-04-05 18:36:15 -07:00
parent 79b9bfe56e
commit b26a61d643

View File

@@ -768,7 +768,7 @@ public class InstalledAppDetails extends Fragment
LinearLayout securityList = (LinearLayout) permsView.findViewById(
R.id.security_settings_list);
securityList.removeAllViews();
securityList.addView(asp.getPermissionsView());
securityList.addView(asp.getPermissionsViewWithRevokeButtons());
// If this app is running under a shared user ID with other apps,
// update the description to explain this.
String[] packages = mPm.getPackagesForUid(mPackageInfo.applicationInfo.uid);