AudioService: catch RuntimeException for IServiceManager.getService
IServiceManager.getService() can throw a RuntimeException and AudioService can handle that the same way it currently handles the RemoteException from the same method. Bug: 218588089 Test: Boot cuttlefish with a fake local ServiceManager with no hwservicemanager installed. Change-Id: I5af8a17312a6321fa6b6c20d03392e553d091f8f
This commit is contained in:
@@ -10619,7 +10619,7 @@ public class AudioService extends IAudioService.Stub
|
||||
}
|
||||
}
|
||||
return pids;
|
||||
} catch (RemoteException e) {
|
||||
} catch (RemoteException | RuntimeException e) {
|
||||
return new HashSet<Integer>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user