Merge "Allow SHELL_UID to disable Bluetooth for testing" into sc-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f8579cf75d
@@ -2479,7 +2479,8 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
|
|||||||
try {
|
try {
|
||||||
foregroundUser = ActivityManager.getCurrentUser();
|
foregroundUser = ActivityManager.getCurrentUser();
|
||||||
valid = (callingUser == foregroundUser) || parentUser == foregroundUser
|
valid = (callingUser == foregroundUser) || parentUser == foregroundUser
|
||||||
|| callingAppId == Process.NFC_UID || callingAppId == mSystemUiUid;
|
|| callingAppId == Process.NFC_UID || callingAppId == mSystemUiUid
|
||||||
|
|| callingAppId == Process.SHELL_UID;
|
||||||
if (DBG && !valid) {
|
if (DBG && !valid) {
|
||||||
Slog.d(TAG, "checkIfCallerIsForegroundUser: valid=" + valid + " callingUser="
|
Slog.d(TAG, "checkIfCallerIsForegroundUser: valid=" + valid + " callingUser="
|
||||||
+ callingUser + " parentUser=" + parentUser + " foregroundUser="
|
+ callingUser + " parentUser=" + parentUser + " foregroundUser="
|
||||||
|
|||||||
Reference in New Issue
Block a user