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:
toggleGPS | toggleWifi | toggleBluetooth | toggleBrightness| toggleSound | toggleScreenTimeout
Additional widgets available:
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
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):
To change some of the widget settings use the included app PowerControl Settings
Extended Power Menu
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.
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
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:
toggleGPS | toggleWifi | toggleBluetooth | toggleBrightness| toggleSound | toggleScreenTimeout
Additional widgets available:
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
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
Extended Power Menu
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.
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