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

Commit af5ddbfc authored by Matthew Xie's avatar Matthew Xie
Browse files

Change getName and getAddress permission to BLUETOOTH

The permissions were set as BLUETOOTH_ADMIN by mistake. Correct them
bug 7665249

Change-Id: Ic1bdbeb25e8f55d886f9a8d38920cbb769dd38ca
parent 9f2532bf
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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())) {