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

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

GattServer: App exception aren't from SystemServer

Calling into mService(IBluetoothGatt) will call the GattService 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: Ia75654e3d5a6060a72d4031499ac98f8c89da697
parent bd5606aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -855,7 +855,7 @@ public final class BluetoothGattServer implements BluetoothProfile {
            return BluetoothStatusCodes.ERROR_PROFILE_SERVICE_NOT_BOUND;
        } catch (RemoteException e) {
            Log.e(TAG, "", e);
            throw e.rethrowFromSystemServer();
            throw e.rethrowAsRuntimeException();
        }
    }