Skip to content

Commit 670ef53

Browse files
author
Matthew Xie
committed
Remove permission check in registerAdapter
This matches the JB behavior of getDefaultAdapter public api bug 6948829 Change-Id: I86135bf45fddbb2d078f855f91a34d6fcce237a2
1 parent 1cd5522 commit 670ef53

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

services/java/com/android/server/BluetoothManagerService.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,6 @@ private void storeNameAndAddress(String name, String address) {
218218
}
219219

220220
public IBluetooth registerAdapter(IBluetoothManagerCallback callback){
221-
mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM,
222-
"Need BLUETOOTH permission");
223221
Message msg = mHandler.obtainMessage(MESSAGE_REGISTER_ADAPTER);
224222
msg.obj = callback;
225223
mHandler.sendMessage(msg);

0 commit comments

Comments
 (0)