다음을 통해 공유


AppOpsManager.StartProxyOpNoThrow Method

Definition

Like #startProxyOp(String, int, String, String, String) but instead of throwing a SecurityException it returns #MODE_ERRORED.

[Android.Runtime.Register("startProxyOpNoThrow", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)I", "GetStartProxyOpNoThrow_Ljava_lang_String_ILjava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=31)]
public virtual int StartProxyOpNoThrow (string op, int proxiedUid, string proxiedPackageName, string? proxiedAttributionTag, string? message);
[<Android.Runtime.Register("startProxyOpNoThrow", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)I", "GetStartProxyOpNoThrow_Ljava_lang_String_ILjava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=31)>]
abstract member StartProxyOpNoThrow : string * int * string * string * string -> int
override this.StartProxyOpNoThrow : string * int * string * string * string -> int

Parameters

op
String
proxiedUid
Int32
proxiedPackageName
String
proxiedAttributionTag
String
message
String

Returns

Attributes

Remarks

Like #startProxyOp(String, int, String, String, String) but instead of throwing a SecurityException it returns #MODE_ERRORED.

Java documentation for android.app.AppOpsManager.startProxyOpNoThrow(java.lang.String, int, java.lang.String, java.lang.String, 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