Loading service/src/com/android/server/bluetooth/BluetoothManagerService.java +13 −2 Original line number Diff line number Diff line Loading @@ -1359,9 +1359,20 @@ class BluetoothManagerService { psc = new ProfileServiceConnections( new Intent(PROFILE_TO_SERVICE_NAME.get(bluetoothProfile))); // TODO: b/291815510 or b/288450479 - Remove clearCallingIdentity // bindService is using bindServiceAsUser that require permission to interact // across users. // Because this method is called on the binderThread, we need to clear identity // before attempting to bind final long callingIdentity = Binder.clearCallingIdentity(); try { if (!psc.bindService(DEFAULT_REBIND_COUNT)) { return false; } } finally { Binder.restoreCallingIdentity(callingIdentity); } mProfileServices.put(bluetoothProfile, psc); } Loading Loading
service/src/com/android/server/bluetooth/BluetoothManagerService.java +13 −2 Original line number Diff line number Diff line Loading @@ -1359,9 +1359,20 @@ class BluetoothManagerService { psc = new ProfileServiceConnections( new Intent(PROFILE_TO_SERVICE_NAME.get(bluetoothProfile))); // TODO: b/291815510 or b/288450479 - Remove clearCallingIdentity // bindService is using bindServiceAsUser that require permission to interact // across users. // Because this method is called on the binderThread, we need to clear identity // before attempting to bind final long callingIdentity = Binder.clearCallingIdentity(); try { if (!psc.bindService(DEFAULT_REBIND_COUNT)) { return false; } } finally { Binder.restoreCallingIdentity(callingIdentity); } mProfileServices.put(bluetoothProfile, psc); } Loading