다음을 통해 공유


Binder.CallingWorkSourceUid Property

Definition

Returns the work source set by the caller.

public static int CallingWorkSourceUid { [Android.Runtime.Register("getCallingWorkSourceUid", "()I", "", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getCallingWorkSourceUid", "()I", "", ApiSince=29)>]
static member CallingWorkSourceUid : int

Property Value

The original UID responsible for the binder transaction.

Attributes

Remarks

Returns the work source set by the caller.

Unlike #getCallingUid(), this result of this method cannot be trusted. The caller can set the value to whatever they want. Only use this value if you trust the calling UID.

Java documentation for android.os.Binder.getCallingWorkSourceUid().

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