Binder.CallingUid Property

Definition

Return the Linux UID assigned to the process that sent you the current transaction that is being processed.

public static int CallingUid { [Android.Runtime.Register("getCallingUid", "()I", "")] get; }
[<get: Android.Runtime.Register("getCallingUid", "()I", "")>]
static member CallingUid : int

Property Value

Attributes

Remarks

Return the Linux UID assigned to the process that sent you the current transaction that is being processed. This UID can be used with higher-level system services to determine its identity and check permissions. If the current thread is not currently executing an incoming transaction, then its own UID is returned.

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

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