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

Commit e49e5dc3 authored by Rahul Sabnis's avatar Rahul Sabnis
Browse files

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

Bug: 203431023
Test: Manual
Change-Id: I50d5ed327a7c90a3f73a9924e5b2b66310dff76c
parent 40803b0f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1452,6 +1452,8 @@ public class AdapterService extends Service {
                return false;
            }

            enforceBluetoothPrivilegedPermission(service);

            service.mAdapterProperties.setDiscoverableTimeout(duration);
            return service.mAdapterProperties.setScanMode(convertScanModeToHal(mode));
        }