Loading services/core/java/com/android/server/BluetoothManagerService.java +6 −2 Original line number Diff line number Diff line Loading @@ -614,9 +614,13 @@ class BluetoothManagerService extends IBluetoothManager.Stub { } // waive WRITE_SECURE_SETTINGS permission check final long callingIdentity = Binder.clearCallingIdentity(); Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.BLUETOOTH_ON, value); try { Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.BLUETOOTH_ON, value); } finally { Binder.restoreCallingIdentity(callingIdentity); } } /** * Returns true if the Bluetooth Adapter's name and address is Loading Loading
services/core/java/com/android/server/BluetoothManagerService.java +6 −2 Original line number Diff line number Diff line Loading @@ -614,9 +614,13 @@ class BluetoothManagerService extends IBluetoothManager.Stub { } // waive WRITE_SECURE_SETTINGS permission check final long callingIdentity = Binder.clearCallingIdentity(); Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.BLUETOOTH_ON, value); try { Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.BLUETOOTH_ON, value); } finally { Binder.restoreCallingIdentity(callingIdentity); } } /** * Returns true if the Bluetooth Adapter's name and address is Loading