Commit Graph

8 Commits

Author SHA1 Message Date
LuK1337
d389bf1773 sdk: Add device controls global action
Change-Id: I8be18dfa1fe7807ca2eff13c4c2d477322530af0
2022-02-25 13:39:10 +01:00
Gegham Zakaryan
df05cf8b26 lineage-sdk: Follow AOSP order of PowerMenuConstants
Partially follow the order of config_globalActionsList and bring emergency and lockdown to top. Some of the order isn't followed as some items such as users and airplane don't exist in AOSP's list but are much more frequently used than, say, bugreport.

Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: Ie49e77fd99ad0f0dee7c6c7956fc7c1d0474ee63
2021-05-23 15:17:16 +02:00
Gegham Zakaryan
8e4a978315 Revert "sdk: Deprecate POWER_MENU_ACTIONS"
This reverts commit d8742f0727.

Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: I4071297652a6cd0a47d6c642909b32f742e60781
2021-05-23 15:17:16 +02:00
LuK1337
d8742f0727 sdk: Deprecate POWER_MENU_ACTIONS
Change-Id: I35b0d1123a427598e548cf865328a7c9423cbbca
2020-11-07 17:15:09 +01:00
LuK1337
7f4f356c67 sdk: Add GLOBAL_ACTION_KEY_RESTART_FASTBOOT
Change-Id: Ib4f050f634769f58e654a4240fb521f136fd04e7
2019-12-08 20:23:40 +01:00
Luca Stefani
231167efe0 Add emergency power menu constant
Change-Id: I44555b31ff14a5d14de7395b88f44d7be93e06f1
2019-02-06 14:09:34 +01:00
Bruno Martins
1ad7a3b010 PowerMenuConstants: Add user logout as new global action
* Google introduced user logout in Pie:
   044588599c

Change-Id: I60a64beb5fc69e89d5872c74439bec30a47d4d0c
2018-09-16 16:49:10 +02:00
Rashed Abdel-Tawab
a0e29562a2 lineage-sdk: Import power menu related classes
Different parts of the system need to check if advanced reboot is enabled,
so just move the method here and include it in said different parts.

The global actions constants also used to live in the frameworks, but as
they include our own additions and are also accessible by LineageParts,
place them here from now on.

Change-Id: Ic5a02b8118c702dced5a25d775a4cc84c92a3fc2
2018-01-21 00:29:08 +02:00