PackageManager.RemovePermission(String) Method

Definition

Removes a permission that was previously added with #addPermission(PermissionInfo).

[Android.Runtime.Register("removePermission", "(Ljava/lang/String;)V", "GetRemovePermission_Ljava_lang_String_Handler")]
public abstract void RemovePermission (string permName);
[<Android.Runtime.Register("removePermission", "(Ljava/lang/String;)V", "GetRemovePermission_Ljava_lang_String_Handler")>]
abstract member RemovePermission : string -> unit

Parameters

permName
String

The name of the permission to remove.

Attributes

Exceptions

if you are not allowed to remove the given permission name.

Remarks

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

Java documentation for android.content.pm.PackageManager.removePermission(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also