Merge "Do not turn on Bluetooth when booting into Safe Mode"

This commit is contained in:
Treehugger Robot
2019-07-23 06:34:17 +00:00
committed by Gerrit Code Review

View File

@@ -1142,7 +1142,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.");
} }