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

Commit 4de46a1f 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
Change-Id: I73288f495d35280a5724d070248db54e2fe537fd
(cherry picked from commit cc22abc0)
Merged-In: I73288f495d35280a5724d070248db54e2fe537fd
parent 7ce55c18
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1479,6 +1479,8 @@ public class AdapterService extends Service {
                return false;
            }

            enforceBluetoothPrivilegedPermission(service);

            return service.mAdapterProperties.setDiscoverableTimeout(timeout);
        }