• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [MOD] Notification Power Widgets and Extended Power Menu 1.6 Final (10/26/11)

Bloodawn

Android Expert
I've taken the stock frameworks and added my port of the CyanogenMod power control widgets and reboot options that is included with my themes in case anybody wants to use them for theming or ROMs.

My port is based on 96blkgsr's from sdx-developers

The power control bar allows for up to 6 different widgets to be specified. You can have less, but no more than 6. There are a total of 12 widgets
The 6 default widgets, from left-to-right are:
Untitled-1.png

toggleGPS | toggleWifi | toggleBluetooth | toggleBrightness| toggleSound | toggleScreenTimeout

Additional widgets available:
Untitled-2.png

toggleAirplane|toggleAutoRotate|toggleLockScreen|toggleMobileData|toggleSleepMode|toggleSync

Take note of the naming convention that has been used above for each widget. This is how Android, internally, is referencing each widget for use / display in the power control bar. This is important, since, as mentioned, you can override the 6 default widgets this mod provides when flashed.

To change toggle widgets:
1) Create .txt file on your computer and name it widget.txt
2) On the first line create a pipe delimited list (|) of widgets you wish to use.
Example below
Code:
toggleGPS|toggleWifi|toggleBluetooth|toggleSync
3) Save txt and drop this file into the '/system/customize/' folder on your phone.
Note: there CANNOT be any spaces between each widget defined, and the pipe delimiter is only placed between each instance, but not at the beginning or end. The syntax has to be EXACT, and is case sensitive. If you have an error in your list, the slot / position where the error exists will result in an empty slot on your power control bar.
Once you've created your file, again, named widget.txt, all lower-case, you can adb push or use root explorer to place file in its folder. Reboot phone for changes to take affect. Alternatively if you have root explorer, or similar file manager for root users, you can navigate to system/customize folder and open the current widget.txt, I have provided, with a text editor and modify your file from there. Just remember to reboot afterwards.
For your reference, when creating your 'widget.txt' file, here is the complete list of available widgets with correct syntax that you can copy / paste into your file (don't forget to pipe delimit them):
Code:
toggleAirplane
toggleAutoRotate
toggleBluetooth
toggleBrightness
toggleGPS
toggleLockScreen
toggleMobileData
toggleScreenTimeout
toggleSleepMode
toggleSound
toggleSync
toggleWifi

To change some of the widget settings use the included app PowerControl Settings
screenshot_32.png


Extended Power Menu
screenshot_33.png


This port / mod involves many edits to your framework files. Consider this your new / base / stock set of framework files if you wish to theme/customize.

This is for ShabbyMod on Froyo ONLY
You CANNOT flash this mod to implement the power control widget, and then flash a theme on top of it as it will either remove the mod or result in bootloops.

Thanks to JsChiSurf for originally porting this, Cyanogen for creating this and 96blkgsr for the port this is based on and helping me find some shit i missed


Code:
[SIZE="3"][B]Changelog:[/B][/SIZE]
[B]10/26/11[/B]
[B]Version 1.6[/B]
This will be the final release
Updated to Carrier IQ remover 3.2
[B]Fixed:[/B]
Bootloop
Factory reset
[B]Includes[/B]
White clock
Transparency enabled notification window



[B]9/20/11[/B]
[B]Version 1.5[/B]
Updated the Carrier IQ removal

[B]9/02/11[/B]
[B]Version 1.1[/B]
Removed Carrier IQ
Added mod with white clock
 
so when i create a theme in uot kitchen upload the framework-res.apk from this zip file to include the power widgets with my own theme?
 
Sorry for the newb question, but can I flash a theme that isn't yours that doesn't have the power widget mod and then flash the power widget mod ontop of that theme. I know you stated that I can't flash the mod and then the theme but does it go both ways?

Thanks
 
Sorry for the newb question, but can I flash a theme that isn't yours that doesn't have the power widget mod and then flash the power widget mod ontop of that theme. I know you stated that I can't flash the mod and then the theme but does it go both ways?

Thanks

it goes both ways, if you flash the mod on top of a theme it will untheme the phone
 
is the new CIQ included with the one with white clock as well?

thanks for your great work btw

yes, you may want to wait tho.

I found more CIQ on the phone and removed it. only thing i have left to remove is some code they put for it in the contacts.apk and it will be completely removed
 
ahh, having issues.
after installation via cwm, i get many programs that "unexpectedly close" right after reboot and they wont stop coming.
i've tried installing this twice (both from scratch) and still the same outcome.

i have refreshed my whole phone using the noob guide 2.0
so i dont know if i missed something, did something wrong or out of order.
just to make sure, here are the steps i took in the order i took them:

1. flashed via odin w/rooted stock rom & cwm rev3 file
2. applied the cwm rev 4 update
3. installed shabbymod (slim)
4. installed the shabbykernal update rc1
5. installed darktremor a2sd mod
6. applied the ram optimization script for sgp

then finally i installed this mod. (the regular mod, not the white version. although the white mod did the same thing when I tried installing it over the regular mod during my first attempt.)

any help is appreciated.

(i also have this problem when move on and I try the carrier iq remover mod)
 
ahh, having issues.
after installation via cwm, i get many programs that "unexpectedly close" right after reboot and they wont stop coming.
i've tried installing this twice (both from scratch) and still the same outcome.

i have refreshed my whole phone using the noob guide 2.0
so i dont know if i missed something, did something wrong or out of order.
just to make sure, here are the steps i took in the order i took them:

1. flashed via odin w/rooted stock rom & cwm rev3 file
2. applied the cwm rev 4 update
3. installed shabbymod (slim)
4. installed the shabbykernal update rc1
5. installed darktremor a2sd mod
6. applied the ram optimization script for sgp

then finally i installed this mod. (the regular mod, not the white version. although the white mod did the same thing when I tried installing it over the regular mod during my first attempt.)

any help is appreciated.

(i also have this problem when move on and I try the carrier iq remover mod)

I hear that shabbymod slim has some known problems, and I wouldn't trust anything in psp_noob's guide, it just can't stay up to date as the other stickied threads, and it's already known to be biased and lacking info
 
ahh, having issues.
after installation via cwm, i get many programs that "unexpectedly close" right after reboot and they wont stop coming.
i've tried installing this twice (both from scratch) and still the same outcome.

i have refreshed my whole phone using the noob guide 2.0
so i dont know if i missed something, did something wrong or out of order.
just to make sure, here are the steps i took in the order i took them:

1. flashed via odin w/rooted stock rom & cwm rev3 file
2. applied the cwm rev 4 update
3. installed shabbymod (slim)
4. installed the shabbykernal update rc1
5. installed darktremor a2sd mod
6. applied the ram optimization script for sgp

then finally i installed this mod. (the regular mod, not the white version. although the white mod did the same thing when I tried installing it over the regular mod during my first attempt.)

any help is appreciated.

(i also have this problem when move on and I try the carrier iq remover mod)

I haven't updated this in a while

my rom, themes and blues honeycomb theme include the widgets if you wanna try using one of them, they are more updated.

if you use the themes on shabbymod make sure you read the instructions. for simple blue/green you gotta flash 3.1 first then 4.1 and for blues theme the download comes with 2 zips to flash
 
ok. gonna try your mod now. the whole point of me doing this was because I wanted to get rid of the carrier iq thing, otherwise i would just stick to a rooted stock rom...
 
is there anyway to reflash the shabbymod 0.9 battery level indicator? i really liked it, and noticed after i flashed this, it took it off :/
 
is there anyway to reflash the shabbymod 0.9 battery level indicator? i really liked it, and noticed after i flashed this, it took it off :/

you could use my themes or blues honeycomb theme, they have the % in the battery icon

or you can add one using UOT Kitchen and on the file upload part of the kitchen upload the framework-res.apk from this
 
Hey bloodawn tried to private message you seems you have it blocked anyhow I'm trying to do this exact thing on the transform ultra would love to have some tips I know its not exactly the same since froyo vs ginger but any help would be appreciated.
 
Back
Top Bottom