Language

AppOpsManager.UnsafeCheckOpRawNoThrow(String, Int32, String) Method

Definition

This method was deprecated in API level 36.

[Android.Runtime.Register("unsafeCheckOpRawNoThrow", "(Ljava/lang/String;ILjava/lang/String;)I", "GetUnsafeCheckOpRawNoThrow_Ljava_lang_String_ILjava_lang_String_Handler", ApiSince=29)]
public virtual Android.App.AppOpsManagerMode UnsafeCheckOpRawNoThrow(string op, int uid, string packageName);
[<Android.Runtime.Register("unsafeCheckOpRawNoThrow", "(Ljava/lang/String;ILjava/lang/String;)I", "GetUnsafeCheckOpRawNoThrow_Ljava_lang_String_ILjava_lang_String_Handler", ApiSince=29)>]
abstract member UnsafeCheckOpRawNoThrow : string * int * string -> Android.App.AppOpsManagerMode
override this.UnsafeCheckOpRawNoThrow : string * int * string -> Android.App.AppOpsManagerMode

Parameters

op
String

String: This value cannot be null.

uid
Int32

int

packageName
String

String: This value cannot be null.

Returns

Attributes

Remarks

This method was deprecated in API level 36. Use checkOpRawNoThrow(String,int,String,String) instead

Like checkOp(String, int, String) but returns the raw mode associated with the op. Does not throw a security exception, does not translate MODE_FOREGROUND.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

Android reference for android.app.AppOpsManager.unsafeCheckOpRawNoThrow.

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