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

Commit 670ef533 authored by Matthew Xie's avatar Matthew Xie
Browse files

Remove permission check in registerAdapter

This matches the JB behavior of getDefaultAdapter public api
bug 6948829

Change-Id: I86135bf45fddbb2d078f855f91a34d6fcce237a2
parent 1cd5522f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -218,8 +218,6 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
    }

    public IBluetooth registerAdapter(IBluetoothManagerCallback callback){
        mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM,
                                                "Need BLUETOOTH permission");
        Message msg = mHandler.obtainMessage(MESSAGE_REGISTER_ADAPTER);
        msg.obj = callback;
        mHandler.sendMessage(msg);