[One (M7) Android Development] Dunc001:
So after a few hours of head scratching and some awesome testing by [MENTION=964769]deagleone[/MENTION] here we have a fully functional extended APM with screenshot, mobile network, sound state and advanced reboot menu.

WARNING - THIS MOD IS FOR DEODEXED ROMS ONLY, DO NOT FLASH IF YOU ARE RUNNING A STOCK ODEXED ROM​

Additional APM layout options

​

So what do you get:

Reordered original Power Menu items

Added Advanced Reboot Menu when pressing Reboot in Power Menu - Reboot/Hot Reboot/Safe Mode/Recovery/Bootloader

Choice of Standard (Full), no Kid Mode, Compact (no KidMode or Mobile Data), Minimal (Power Off, Reboot, Airplane Mode & Sound Toggles only), Micro (Power Off, Reboot and Airplane Mode only) and Nano (Power Off and Reboot only) layouts selectable in Aroma

Added Mobile Network toggle

Added Screenshot

Added Sound State selector (Silent/Vibrate/Normal)

Moved all drawable resources into framework-res for easier theming (no pngs in com.htc.resources or framework-htc-res any more) all named apm_xxx.png to keep it simple.

Added seperate On/Off state icons for Airplane Mode, Mobile Network and Sound States

Reduced longpress delay time before APM is called

Do not ask for ETAs or updates!!!

For 4.2.2 ROMs

CLICK HERE TO DOWNLOAD

For 4.1 ROMs

CLICK HERE TO DOWNLOAD

Don't forget to backup first, then simply flash through recovery and enjoy :cool:​

Changelog

16.6.13 4.1.2 v6 FINAL

Added Micro and Nano layouts to 4.1.2 APM zip

Fixed Hot Reboot and Safe Mode reboot options (Thanks Riyal)

15.6.13 4.2.2 v4 FINAL

Fixed Hot Reboot and Safe Mode reboot options (Thanks Riyal)

7.6.13 4.2.2 v3

Added Nano layout option (Power Off and Reboot only)

7.6.13 4.2.2 v2

Fixed Mobile Network toggle not working properly

Fixed volwake

Added Micro layout option (Power Off, Reboot and Airplane Mode only)

Added Portuguese and Greek translations

6.6.13 4.2.2 v1

Updated to latest 4.2.2 WWE framework files

All previous mods ported

Added Czech translation

29.5.13 v5 FINAL

Updated to .16R framework files

Added No Kid Mode and Minimal layout options (now four layoout options selectable in AROMA)

Added Arabic, Chinese and Finnish translations

28.3.13 v4

Significantly reduced time required to longpress the power button before APM is called

Added two APM layout options selectable in Aroma - Standard and Compact (no KidMode or Mobile Data toggles)

Fixed Airplane Mode On icon showing Vibrate icon - oops :silly:

Will not break volume wake mods

15.3.13 v3

Added German, Dutch, Italian, French, Spanish, Polish and Russian translations

14.3.13 v2

Tweaked background colour for sound states

14.3.13

Initial Release

Help with translations

For the initial release I have only added the new strings in English. If you would like to make this a multi-language mod then please download the APM_Strings.txt file attached, add your translations to it (the bit between the >here< and then post it back in the thread and I'll include them in future updates. Please name your translated file APM_Strings_YourLanguage so I can easily identify them

Thanks to the following for their help:

gapper100 for Dutch and Italian translations

Swoosh82 for Russian translation

LeSScro for French translation

dmonium for Spanish translation

1887 & hd2neuling for German translation

mike1986 for Polish translation

yhd4711499 for Chinese translation

WannabeDeveloper for Finnish translation

ajram for Arabic translation

bullbutcher for Czech translation

Jose Viegas for Portuguese translation

johcos for Greek translation

Credit where it's due:

Richmondo & Monarx for the original code from ViperX which I used as a base

Shnizlon and Baadnewz for helping me spot the errors in my code in the 4.2.2 port and Jan for fixing the final bug!

Riyal for his help with fixing the Hot Reboot and Safe Mode reboot options

LeSScro for some of the additional icons and for sharing his PSD so I could create the others

deagleone for the testing

DiamondBack for the awesomeness that is VTS