Android.Content.PM.PackageManager.RemovePermission Method
Removes a permission that was previously added with PackageManager.AddPermission(PermissionInfo).

Syntax

[Android.Runtime.Register("removePermission", "(Ljava/lang/String;)V", "GetRemovePermission_Ljava_lang_String_Handler")]
public abstract void RemovePermission (string name)

See Also

PackageManager.AddPermission(PermissionInfo)

Parameters

name
The name of the permission to remove.

Exceptions

TypeReason
Java.Lang.SecurityExceptionif you are not allowed to remove the given permission name.

Remarks

Removes a permission that was previously added with PackageManager.AddPermission(PermissionInfo). The same ownership rules apply -- you are only allowed to remove permissions that you are allowed to add.

[Android Documentation]

Requirements

Namespace: Android.Content.PM
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1