Loading services/java/com/android/server/BluetoothManagerService.java +4 −4 Original line number Original line Diff line number Diff line Loading @@ -513,8 +513,8 @@ class BluetoothManagerService extends IBluetoothManager.Stub { } } } } public String getAddress() { public String getAddress() { mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH ADMIN permission"); "Need BLUETOOTH permission"); if ((Binder.getCallingUid() != Process.SYSTEM_UID) && if ((Binder.getCallingUid() != Process.SYSTEM_UID) && (!checkIfCallerIsForegroundUser())) { (!checkIfCallerIsForegroundUser())) { Loading @@ -538,8 +538,8 @@ class BluetoothManagerService extends IBluetoothManager.Stub { } } public String getName() { public String getName() { mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH ADMIN permission"); "Need BLUETOOTH permission"); if ((Binder.getCallingUid() != Process.SYSTEM_UID) && if ((Binder.getCallingUid() != Process.SYSTEM_UID) && (!checkIfCallerIsForegroundUser())) { (!checkIfCallerIsForegroundUser())) { Loading Loading
services/java/com/android/server/BluetoothManagerService.java +4 −4 Original line number Original line Diff line number Diff line Loading @@ -513,8 +513,8 @@ class BluetoothManagerService extends IBluetoothManager.Stub { } } } } public String getAddress() { public String getAddress() { mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH ADMIN permission"); "Need BLUETOOTH permission"); if ((Binder.getCallingUid() != Process.SYSTEM_UID) && if ((Binder.getCallingUid() != Process.SYSTEM_UID) && (!checkIfCallerIsForegroundUser())) { (!checkIfCallerIsForegroundUser())) { Loading @@ -538,8 +538,8 @@ class BluetoothManagerService extends IBluetoothManager.Stub { } } public String getName() { public String getName() { mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH ADMIN permission"); "Need BLUETOOTH permission"); if ((Binder.getCallingUid() != Process.SYSTEM_UID) && if ((Binder.getCallingUid() != Process.SYSTEM_UID) && (!checkIfCallerIsForegroundUser())) { (!checkIfCallerIsForegroundUser())) { Loading