[MOD] [FROYO] Reboot/Recovery options, 1% battery icon, power control widgets (11-19)
This MOD now has the following features:
- Reboot and Recovery options on the Power Menu
- 1% battery icons on status bar
- Power Control Widgets on notification menu
- Power Control Widgets Settings Application
DISCLAIMER: Use this mod at your own risk. By downloading these files, you are accepting all risk of anything happening to your phone.
To use this mod, you need to be using a de-odexed rom/template. There are 12 (11 working) notification bar menu Power Control Widgets available. The default from left to right are:
The remaining 6 are:
However the toggleAirplane widget doesn't work right on the Triumph so don't use it. Use the option on the power menu instead.
You can change which widgets show up by editing the widgets.txt file located in the /system/customize folder on the phone. You can have at MAX 6 widgets but you can have fewer if you want. When editing the widget.txt file, list the widgets that you want to use all on one line with no spaces and each widget name is separated by the pipe character (|)--like how I have the widget labels listed by the screenshots. You can edit the file in a few different ways:
1. directly using a file manager capable of mounting /system/ read-write, such as ES File Explorer or Root Explorer.
2. edit it on your computer and then adb push it to your phone.
3. edit it on your computer and put it in a flashable Zip file and flash it in CWM.
For reference, when editing widget.txt file, here is the complete list of available widgets with an explanation of what each of them does:
toggleAirplane - DOES NOT WORK PROPERLY
toggleAutoRotate - disables landscape mode
toggleBluetooth - toggles bluetooth on/off
toggleBrightness - toggles screen brightness (3 tiers)
toggleGPS - toggles gps
toggleLockScreen - enables/disables lockscreen
toggleMobileData - toggles mobile data on/off
toggleScreenTimeout - enables/disables screen timeout
toggleSleepMode - puts phone to sleep
toggleSound - toggles sound on/off
toggleSync - toggles data autosync on/off
toggleWifi - toggles wifi on/off
Also included with this mod is the PowerControl Widgets Configuration app that was developed by JsChiSurf to control the behavior of some fo the toggles available on the Power Control Widgets, such as Brightness Levels, Screen Timeout, etc. The App is in your app drawer; check it out. You can also read more about it from this post on xda:
[App] Power Control Widgets Settings Application - xda-developers
This mod makes many changes to your framework. If you flash this over an existing theme, you will overwrite it and most likely result in bootloops. You will either need to add these changes to your themed files or wait until your themer/developer does it.
MAKE SURE YOU ARE USING A DEODEXED TEMPLATE/ROM!
1. Download the Zip file and flash it in CWM.
The first time booting will take about 2 - 3 minutes while the new framework is set up. I would recommend rebooting your phone a couple of times more after the first boot and it will be smoother after that.
powermenu_batterymod-v1_3-undo.zip - use this file to undo the mod and go back to the stock deodexed files in case you bootloop.
I've also attached a flashable zip file at the end of the post for the widget.txt file if you wish to make edits to it and then flash it in CWM.
You can use the b_randon14's de-odexed template here:
or his stock deodex ROM here:
Thanks goes to:
b_randon14 for the de-odexed rom/template.
ziggy46 for pointing me in the right direction for the power widgets controls
96blkgsr for the port that this is based on
JsChiSurf for the original mod and the PowerControl Widgets Configuration app
untermensch for the reboot/recovery instructions
KBanause and kalpik for the battery mod instructions
Fightspit for the battery mod icons
- added power control widgets to notification bar
- thanks to 96blkgsr on sdx for the port based on JsChiSurf's port.
- thanks to ziggy46 for pointing me in the right direction.
- added Power Control Widgets Settings Application by JsChiSurf
- added Honeycomb digital clock on lockscreen
This v1.1 zip has both the reboot, recovery power menu and the 1% battery icon and it now does a graceful shutdown: