diff options
| author | Steven Moreland <smoreland@google.com> | 2020-03-04 13:07:53 -0800 |
|---|---|---|
| committer | Steven Moreland <smoreland@google.com> | 2020-03-05 19:20:37 +0000 |
| commit | 61c5f8e68b8a2718307dfca1cbebee79fa255f4e (patch) | |
| tree | d387c1984e0d55576da969a74bfa9f494c253a69 /core/java | |
| parent | 32f87fc6fbd1c707233cd355bbfe61af6bfcf484 (diff) | |
Clarify getCallingPid for oneway transactions.
Seems this frequent gotcha is not documented here.
Bug: N/A
Test: N/A
Change-Id: Ia186cd8b9945b75b8342b0750713d8667cfef064
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/os/Binder.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/os/Binder.java b/core/java/android/os/Binder.java index 2fa75f16a546..f2cf4e3981d3 100644 --- a/core/java/android/os/Binder.java +++ b/core/java/android/os/Binder.java @@ -260,6 +260,8 @@ public class Binder implements IBinder { * system services to determine its identity and check permissions. * If the current thread is not currently executing an incoming transaction, * then its own pid is returned. + * + * Warning: oneway transactions do not receive PID. */ @CriticalNative public static final native int getCallingPid(); |
