Android.OS.Binder.ClearCallingIdentity Method
Reset the identity of the incoming IPC on the current thread.

Syntax

[Android.Runtime.Register("clearCallingIdentity", "()J", "")]
public static long ClearCallingIdentity ()

See Also

Binder.CallingPid
Binder.CallingUid
Binder.RestoreCallingIdentity(long)

Returns

Documentation for this section has not yet been entered.

Remarks

Reset the identity of the incoming IPC on the current thread. This can be useful if, while handling an incoming call, you will be calling on interfaces of other objects that may be local to your process and need to do permission checks on the calls coming into them (so they will check the permission of your own local process, and not whatever process originally called you).

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1