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

Commit e6823c1a authored by William Escande's avatar William Escande
Browse files

LeBroadcastAssistant: App exception aren't from SystemServer

Calling into IBluetoothLeBroadcastAssistant  will call the
BassClientService from Bluetooth app that does not live in the
systemServer.
Therefore, exception should be rethrown as runtimeException

Bug: 298264617
Test: atest CtsBluetoothTestCases | Cts does not handled failure in the
      binder nor any of the Test framework we currently have
Change-Id: Idbe116bfc6b41b11e2d6f9fd4b092f764e9df4ac
parent 55e3b74b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -732,7 +732,7 @@ public final class BluetoothLeBroadcastAssistant implements BluetoothProfile, Au
                        service.registerCallback(mCallback);
                    }
                } catch (RemoteException e) {
                    throw e.rethrowFromSystemServer();
                    throw e.rethrowAsRuntimeException();
                }
            }

@@ -780,7 +780,7 @@ public final class BluetoothLeBroadcastAssistant implements BluetoothProfile, Au
                        service.unregisterCallback(mCallback);
                    }
                } catch (RemoteException e) {
                    throw e.rethrowFromSystemServer();
                    throw e.rethrowAsRuntimeException();
                }
            }
        }