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
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