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

Commit db3923e3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Removes app access to BluetoothAdapter#setDiscoverableTimeout by...

Merge "Removes app access to BluetoothAdapter#setDiscoverableTimeout by requiring BLUETOOTH_PRIVILEGED permission." into qt-dev
parents 95cbb226 528ea846
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1919,7 +1919,8 @@ public class AdapterService extends Service {
    }

    boolean setDiscoverableTimeout(int timeout) {
        enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission");
        enforceCallingOrSelfPermission(
                BLUETOOTH_PRIVILEGED, "Need BLUETOOTH PRIVILEGED permission");

        return mAdapterProperties.setDiscoverableTimeout(timeout);
    }