Check AServiceManager_isDeclared before AServiceManager_getService
Call AServiceManager_isDeclared before calling AServiceManager_getService to avoid the waiting time when aidl service is not available. Bug: 286969060 Test: run VtsHalGatekeeperTarget (cherry picked from https://android-review.googlesource.com/q/commit:32e1c70f275991ec7fe4d4a2d6e3eeba2a172540) Merged-In: I7d652a546cb810a601338a68950f01d065aea7a5 Change-Id: I7d652a546cb810a601338a68950f01d065aea7a5
Loading
Please register or sign in to comment