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

Commit 1deaa5e5 authored by William Escande's avatar William Escande
Browse files

SystemServer: AutoOn: Handle reboot

If a timer was present and expired while the device was shutdown, the
bluetooth will start when device turn on. Else, the timer will be
rescheduled to an appropriate date

Bug: 323060869
Bug: 316946334
Test: m Bluetooth
Change-Id: I9c3601daecbeb24c736291d51f2eb4e867f55894
parent a55f29d0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1365,6 +1365,8 @@ class BluetoothManagerService {
        } else if (!isNameAndAddressSet()) {
            Log.i(TAG, "internalHandleOnBootPhase: Getting adapter name and address");
            mHandler.sendEmptyMessage(MESSAGE_GET_NAME_AND_ADDRESS);
        } else {
            autoOnSetupTimer();
        }

        if (!mUseNewAirplaneMode) {