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

Syntax

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

Parameters

name
The name of the permission to remove.

Remarks

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

[Android Documentation]

Requirements

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