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