pub unsafe extern "C" fn AIBinder_getCallingUid() -> uid_tExpand 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.
Warning do not use this as a security identifier! PID is unreliable as it may be re-used. This should mostly be used for debugging.
Available since API level 29.
\return calling uid or the current process’s UID if this thread isn’t processing a transaction.