Merge "ApexManager: Allow blocking Binder calls" into rvc-dev am: 1f1b416da9 am: 76885afe19
Change-Id: Ia1c30f52aea037efbc6cff7b923227359ce9d1f0
This commit is contained in:
@@ -399,7 +399,9 @@ public abstract class ApexManager {
|
||||
@VisibleForTesting
|
||||
protected IApexService waitForApexService() {
|
||||
try {
|
||||
return IApexService.Stub.asInterface(Binder.waitForService("apexservice"));
|
||||
// Since apexd is a trusted platform component, synchronized calls are allowable
|
||||
return IApexService.Stub.asInterface(
|
||||
Binder.allowBlocking(Binder.waitForService("apexservice")));
|
||||
} catch (RemoteException e) {
|
||||
throw new IllegalStateException("Required service apexservice not available");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user