Skip to content
Snippets Groups Projects
Commit 1b05f61b authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Merge "doc getCallingPid zero return" into main

parents 6d26e8ef 910c4f25
No related branches found
No related tags found
No related merge requests found
...@@ -309,7 +309,11 @@ public class Binder implements IBinder { ...@@ -309,7 +309,11 @@ public class Binder implements IBinder {
* If the current thread is not currently executing an incoming transaction, * If the current thread is not currently executing an incoming transaction,
* then its own PID is returned. * then its own PID is returned.
* *
* Warning: oneway transactions do not receive PID. * Warning: oneway transactions do not receive PID. Even if you expect
* a transaction to be synchronous, a misbehaving client could send it
* as a asynchronous call and result in a 0 PID here. Additionally, if
* there is a race and the calling process dies, the PID may still be
* 0 for a synchronous call.
*/ */
@CriticalNative @CriticalNative
public static final native int getCallingPid(); public static final native int getCallingPid();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment