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

Skip to content
Commit 6a4dfa59 authored by Mao Jinlong's avatar Mao Jinlong Committed by Linux Build Service Account
Browse files

Add support for power off alarm

1. Only install power off alarm apps;
Power off alarm should be least affected when it is firing. There
should be no other applications with notifications and sounds(eg.
phone application and message application). So when it is alarm
boot, we should only install necessary applications for power off
alarm and system's boot-up.

We need to ensure that power off alarm works on both normal status
and encrypt status.

2. Use file in persist folder to save alarm status and instance time;
We need to distinguish power off alarm from other applications which
use RTC_POWEROFF_WAKEUP alarm type. And it should also work when
vold.decrypt property is trigger_restart_min_framework or "1". As
in this state, android system only has temporary data partition.

File in persist folder can be used in any status.

Change-Id: I7f85a2a7e1d06b69ddb74f376435518314105500
parent 2799b392
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