Remove permission check in registerAdapter
This matches the JB behavior of getDefaultAdapter public api bug 6948829 Change-Id: I86135bf45fddbb2d078f855f91a34d6fcce237a2
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user