Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca9ace30 authored by Devin Moore's avatar Devin Moore
Browse files

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
parent f92fa673
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10619,7 +10619,7 @@ public class AudioService extends IAudioService.Stub
                }
            }
            return pids;
        } catch (RemoteException e) {
        } catch (RemoteException | RuntimeException e) {
            return new HashSet<Integer>();
        }
    }