summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMatthew Xie <mattx@google.com>2012-12-04 10:47:43 -0800
committerMatthew Xie <mattx@google.com>2012-12-04 10:47:43 -0800
commitaf5ddbfcf59e1e0bcbd43f1f88270f822c5083b8 (patch)
tree65b8f69e81c2897389d2f06f31345d96c558ed90 /services
parent9f2532bf1215dffb4058d1b01834b3a0a7272fdc (diff)
downloadframeworks_base-af5ddbfcf59e1e0bcbd43f1f88270f822c5083b8.zip
frameworks_base-af5ddbfcf59e1e0bcbd43f1f88270f822c5083b8.tar.gz
frameworks_base-af5ddbfcf59e1e0bcbd43f1f88270f822c5083b8.tar.bz2
Change getName and getAddress permission to BLUETOOTH
The permissions were set as BLUETOOTH_ADMIN by mistake. Correct them bug 7665249 Change-Id: Ic1bdbeb25e8f55d886f9a8d38920cbb769dd38ca
Diffstat (limited to 'services')
-rwxr-xr-xservices/java/com/android/server/BluetoothManagerService.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/services/java/com/android/server/BluetoothManagerService.java b/services/java/com/android/server/BluetoothManagerService.java
index 7f52157..5a2088c 100755
--- a/services/java/com/android/server/BluetoothManagerService.java
+++ b/services/java/com/android/server/BluetoothManagerService.java
@@ -513,8 +513,8 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
}
}
public String getAddress() {
- mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM,
- "Need BLUETOOTH ADMIN permission");
+ mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM,
+ "Need BLUETOOTH permission");
if ((Binder.getCallingUid() != Process.SYSTEM_UID) &&
(!checkIfCallerIsForegroundUser())) {
@@ -538,8 +538,8 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
}
public String getName() {
- mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM,
- "Need BLUETOOTH ADMIN permission");
+ mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM,
+ "Need BLUETOOTH permission");
if ((Binder.getCallingUid() != Process.SYSTEM_UID) &&
(!checkIfCallerIsForegroundUser())) {