diff --git a/core/java/android/os/Binder.java b/core/java/android/os/Binder.java index fe7c7c921b670..43c97e666a58c 100644 --- a/core/java/android/os/Binder.java +++ b/core/java/android/os/Binder.java @@ -263,6 +263,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();