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

Skip to content
Commit d5d795e3 authored by Tommy Webb's avatar Tommy Webb Committed by Michael Bestas
Browse files

DeskClock: Schedule alarms after restore

Fix a bug causing the backup agent's handling of the restore process
to crash, preventing enabled alarms from being scheduled.

Maybe squash with: I1321da4b2250d083c8785386af5ba096cd0e05eb
"DeskClock: Enable backup"

Test: Manual: Steps below:
0. Establish Seedvault backup (easiest to just do a local internal storage backup).
1. Set a few alarms, maybe for 5, 10, and 15 minutes in the future.
2. Run "Backup now" in Seedvault.
3. Once it has finished, turn off the alarms.
4. Run `adb shell bmgr list sets` to get the restore set ID ("${RESTORE_SET_ID}" below).
5. Run `adb shell bmgr restore ${RESTORE_SET_ID} com.android.deskclock`.
6. Within a minute, the alarm icon should appear in the status bar because the alarms have been successfully scheduled. They will sound at the expected time(s).

Change-Id: Ib8bd0cf03f943469fec105b141c58f5f543ccaa0
parent ff75c523
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment