Remove permission check in registerAdapter

This matches the JB behavior of getDefaultAdapter public api
bug 6948829

Change-Id: I86135bf45fddbb2d078f855f91a34d6fcce237a2
This commit is contained in:
Matthew Xie
2012-09-25 18:25:54 -07:00
parent 1cd5522fcc
commit 670ef53353

View File

@@ -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);