New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
llorn
Old
(Last edited by llorn; 19th November 2011 at 07:47 PM.) Reason: updated to v1.3
#1  
Member - OP
Thanks Meter 42
Posts: 96
Join Date: Jul 2011
Default [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:



toggleGPS|toggleWifi|toggleBluetooth|toggleBrightn ess|toggleSound|toggleMobileData
The remaining 6 are:



toggleAirplane|toggleAutoRotate|toggleLockScreen|t oggleScreenTimeout|toggleSleepMode|toggleSync

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.

Installation instructions:

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.zip
http://tinyurl.com/7zzryqv

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.
http://tinyurl.com/7xtte98

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:
http://androidforums.com/triumph-all...-template.html
or his stock deodex ROM here:
http://androidforums.com/triumph-all...plash-img.html






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

Changelog:
v1.3
- 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

1.2 (unreleased)
- added Honeycomb digital clock on lockscreen

v1.1
This v1.1 zip has both the reboot, recovery power menu and the 1% battery icon and it now does a graceful shutdown:

https://zipsend.com/download/bHlDRm8...8e7657b2c0d025
The Following 2 Users Say Thank You to llorn For This Useful Post: [ Click to Expand ]
 
punkmaxx
Old
#2  
punkmaxx's Avatar
Senior Member
Thanks Meter 39
Posts: 200
Join Date: Oct 2010
Location: West Virginia "The Best Virginia"
Wow the 1% battery mod is what i've wanted since cm7 on the "oh-V" thanks dude!!! I was just ripping apart framework in roms looking for a 1% that i liked to incorporate; and started to troll XDA and found that you updated this link!!! Nice!
 
llorn
Old
#3  
Member - OP
Thanks Meter 42
Posts: 96
Join Date: Jul 2011
Quote:
Originally Posted by punkmaxx View Post
Wow the 1% battery mod is what i've wanted since cm7 on the "oh-V" thanks dude!!! I was just ripping apart framework in roms looking for a 1% that i liked to incorporate; and started to troll XDA and found that you updated this link!!! Nice!
Glad to hear somebody found this useful. :)
 
punkmaxx
Old
(Last edited by punkmaxx; 8th September 2011 at 08:52 AM.)
#4  
punkmaxx's Avatar
Senior Member
Thanks Meter 39
Posts: 200
Join Date: Oct 2010
Location: West Virginia "The Best Virginia"
Quote:
Originally Posted by llorn View Post
Glad to hear somebody found this useful. :)
Here, Try this out: Themed_powermenu_batterymod.zip
its a themed version of your MOD with notification icons & a new Lockscreen. Thanks again to llorn. (Fonts not Included)
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	128
Size:	43.4 KB
ID:	713440   Click image for larger version

Name:	screenshot_1.jpg
Views:	123
Size:	42.7 KB
ID:	713441  
 
punkmaxx
Old
(Last edited by punkmaxx; 9th September 2011 at 06:54 AM.)
#5  
punkmaxx's Avatar
Senior Member
Thanks Meter 39
Posts: 200
Join Date: Oct 2010
Location: West Virginia "The Best Virginia"
Okay Here are Three tested Themed Versions (Original Link Updated)

With Dial Battery: Themed_powermenu_batterymod.zip
WIth Gauge Battery: Themed_powermenu_batterymod_alt_1.zip
With Original Battery MOD: Themed_powermenu_batterymod_alt_2.zip


Here is a flashable zip with apps included with new icons on gapps & fonts & gps fix: themed_template.zip<----(This Full theme will unroot you so you must re-apply gingerbreak root)
The Following User Says Thank You to punkmaxx For This Useful Post: [ Click to Expand ]
 
llorn
Old
#6  
Member - OP
Thanks Meter 42
Posts: 96
Join Date: Jul 2011
Updated OP with new version that shuts down gracefully now instead of just cutting the power.
The Following User Says Thank You to llorn For This Useful Post: [ Click to Expand ]
 
primetechv2
Old
#7  
primetechv2's Avatar
Senior Member
Thanks Meter 131
Posts: 342
Join Date: Nov 2010
Location: Wisconsin
Does this one's battery indicator behave differently while charging? For some reason the punkmaxx mods didn't give me an animated one, although this isn't a major issue.

Sent from my Frankenphone using Tapatalk
 
llorn
Old
#8  
Member - OP
Thanks Meter 42
Posts: 96
Join Date: Jul 2011
Quote:
Originally Posted by primetechv2 View Post
Does this one's battery indicator behave differently while charging? For some reason the punkmaxx mods didn't give me an animated one, although this isn't a major issue.

Sent from my Frankenphone using Tapatalk
It shouldn't. I didn't touch the charging battery icons.
 
llorn
Old
#9  
Member - OP
Thanks Meter 42
Posts: 96
Join Date: Jul 2011
Updated OP:

Changelog:
v1.3
- 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


XDA PORTAL POSTS

MicrowaveTimePicker Brings 4.2 TimePicker to 2.1+ Devices

It’s frustrating to see slick new features that you can’t use when … more

What’s Possible with CASUAL & How to Make Your Own CASUAL – XDA Developer TV

XDA Elite Recognized Developer AdamOutler is known … more

Pearl Chen to Talk NFC Development at XDA:DevCon 2013

From HTML to LEDs or Android to Arduino, Hardware Hacking is a pastime of many people … more

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more