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

Commit a55f29d0 authored by William Escande's avatar William Escande
Browse files

SystemServer: AutoOn: Respect user restriction

Bug: 323060869
Bug: 316946334
Test: m Bluetooth | Missing good integration test on user restriction
Change-Id: I5fd493ed120418f7bfab506dfa783d3f8e81864a
parent c06ae36f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1195,6 +1195,10 @@ class BluetoothManagerService {
    }

    private Unit enableFromAutoOn() {
        if (isBluetoothDisallowed()) {
            Log.d(TAG, "Bluetooth is not allowed, preventing AutoOn");
            return Unit.INSTANCE;
        }
        Counter.logIncrement("bluetooth.value_auto_on_triggered");
        sendToggleNotification("auto_on_bt_enabled_notification");
        enable("BluetoothSystemServer/AutoOn");