Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8579cf7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Allow SHELL_UID to disable Bluetooth for testing" into sc-qpr1-dev

parents 5d57ddce 002dfe73
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2479,7 +2479,8 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
        try {
            foregroundUser = ActivityManager.getCurrentUser();
            valid = (callingUser == foregroundUser) || parentUser == foregroundUser
                    || callingAppId == Process.NFC_UID || callingAppId == mSystemUiUid;
                    || callingAppId == Process.NFC_UID || callingAppId == mSystemUiUid
                    || callingAppId == Process.SHELL_UID;
            if (DBG && !valid) {
                Slog.d(TAG, "checkIfCallerIsForegroundUser: valid=" + valid + " callingUser="
                        + callingUser + " parentUser=" + parentUser + " foregroundUser="