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

Commit 127f3b1a authored by Rahul Sabnis's avatar Rahul Sabnis Committed by Android Build Coastguard Worker
Browse files

Removes app access to BluetoothAdapter#setDiscoverableTimeout by requiring...

Removes app access to BluetoothAdapter#setDiscoverableTimeout by requiring BLUETOOTH_PRIVILEGED permission.

Bug: 206807679
Test: Manual
Merged-In: I73288f495d35280a5724d070248db54e2fe537fd
Change-Id: I73288f495d35280a5724d070248db54e2fe537fd
(cherry picked from commit f9ac0a09)
Merged-In: I73288f495d35280a5724d070248db54e2fe537fd
parent 29e9f978
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1314,7 +1314,7 @@ public class AdapterService extends Service {
                return false;
            }

            enforceBluetoothPermission(service);
            enforceBluetoothPrivilegedPermission(service);

            return service.mAdapterProperties.setDiscoverableTimeout(timeout);
        }