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

Commit 4c462bee authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Allow SHELL_UID to disable Bluetooth for testing"

parents 72d5595e c4b27dfc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2430,7 +2430,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="