pub unsafe extern "C" fn AIBinder_getCallingUid() -> uid_t
Expand description
This returns the calling UID assuming that this thread is called from a thread that is processing a binder transaction (for instance, in the implementation of AIBinder_Class_onTransact).
This can be used with higher-level system services to determine the caller’s identity and check permissions.
Available since API level 29.
\return calling uid or the current process’s UID if this thread isn’t processing a transaction.