Hello all,
I need to get calling PID from HAL. From code, I call
if (getCurrentServingCall() == BinderCallType::HWBINDER) {
pid = hardware::IPCThreadState::self()->getCallingPid();
}
else
{
pid = IPCThreadState::self()->getCallingPid();
}
The code works well on Android 10. However, it always return 0 on Android 11 (r3)
Could you help me to solve the problem?
Regards,
Thanh
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-platform/7860d177-5200-46ad-8055-12827a5f6c43n%40googlegroups.com.