libbinder: detect bad linkToDeath
If linkToDeath is called without any threads listening for binder transactions, then it may not be served. This is a hard to debug issue, so adding a log. Bug: 237730299 Test: boot, and see these logs (they occur in cameraserver which sets up the threadpool late. this is not an issue, but the ordering could be 'nicer'): 07-12 20:52:26.537 515 515 W BpBinder: Linking to death on android.app.IActivityManager but there are no threads (yet?) listening to incoming transactions. See ProcessState::startThreadPool and ProcessState::setThreadPoolMaxThreadCount. Generally you should setup the binder threadpool before other initialization steps. 07-12 20:52:26.673 515 515 W BpBinder: Linking to death on android.hardware.ISensorPrivacyManager but there are no threads (yet?) listening to incoming transactions. See ProcessState::startThreadPool and ProcessState::setThreadPoolMaxThreadCount. Generally you should setup the binder threadpool before other initialization steps. Change-Id: I8c2bb308f4bd479000e644a785d8c27341ad496a
Loading
Please register or sign in to comment