Merge "Do not turn on Bluetooth when booting into Safe Mode"
am: 34ed823dae
Change-Id: Ib4246192ed3f854a94a33d972616d6b1d9de5d9c
This commit is contained in:
@@ -1185,7 +1185,8 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
|
|||||||
if (isBluetoothDisallowed) {
|
if (isBluetoothDisallowed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mEnableExternal && isBluetoothPersistedStateOnBluetooth()) {
|
final boolean isSafeMode = mContext.getPackageManager().isSafeMode();
|
||||||
|
if (mEnableExternal && isBluetoothPersistedStateOnBluetooth() && !isSafeMode) {
|
||||||
if (DBG) {
|
if (DBG) {
|
||||||
Slog.d(TAG, "Auto-enabling Bluetooth.");
|
Slog.d(TAG, "Auto-enabling Bluetooth.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user