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

Commit fc62052d authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Enforce BLUETOOTH_PRIVILEGED in setPhonebookAccessPermission am: 8d1e8979 am: b46f4f57

Change-Id: I3fbbc7572616349b1f13a6c8dab584ebd109850d
parents d940f928 b46f4f57
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2314,6 +2314,8 @@ public class AdapterService extends Service {
    }

    boolean setPhonebookAccessPermission(BluetoothDevice device, int value) {
        enforceCallingOrSelfPermission(BLUETOOTH_PRIVILEGED,
                "Need BLUETOOTH PRIVILEGED permission");
        SharedPreferences pref = getSharedPreferences(PHONEBOOK_ACCESS_PERMISSION_PREFERENCE_FILE,
                Context.MODE_PRIVATE);
        SharedPreferences.Editor editor = pref.edit();