Power Widget
POTech Works
POTech Works
Hello XDA, how are everyone? Since I had my vacant time, I brought something, not so unique but I guess it worth to try. As the title implies, yeah its a Power Widget. Remember the CyanogenMod power widget, lidroid quickpanel, and spacecaker xperia toggle and everything that is similar to this, and yeah Im so old and outdated now but I should give it too. This was forked and derived from CyanogenMod 7.2 power widget.
This requires some patience to do, not like how SpaceCaker did. But if you insist to make it to a Super EZ guide, then I can make it(in humbly speaking)
Whats hot:
Whats not:
Note:
Disclaimer:
I and XDA are not responsible for the Force Close. This guide was tested and working fine for 3 totoro. Take a backup first :)
Requirements:
Quote:
All lidroid features
22 Power Widgets all in all Snappy and accurate PowerWidget Consistent Wifi and Bluetooth name Widget Threshold Profile Button Integrated in your SystemUI Smart Settings |
Quote:
The Data icon isnt accurate much (Like lidroid does but working fine at dis/enabling)
Not Grid-like power widget, sarrey. |
Quote:
Let me know if there is a bug you encounter |
I and XDA are not responsible for the Force Close. This guide was tested and working fine for 3 totoro. Take a backup first :)
Requirements:
Quote:
Quote:
|
Instruction:
1. Extract the file downloaded given at the requirement
2. Decompile your SystemUI.apk using APK-Tool
3. Deploying the files
a. Put the res folder of the downloaded file to your decompiled SystemUI4. Compile your SystemUI.apk
b. Put the smali folder of the downloaded file to your decompiled SystemUI
5. After recompiling, decompile it again. (If you think Im trolling, no Im not, we just registered all the ids ;))
6. Now go to values/public.xml
Look for the following inside the public.xml because we will use it:
- Layout
Quote:
power_widget_button
power_widget_scrollview
- Drawable
Quote:
pxtoggles
- Id
Quote:
power_widget_button_custom
power_widget_button_image
power_widget_button_text
Mine was:7. Now we move to the smali,
Code:<public type="layout" name="power_widget_button" id="0x7f03000a" />
<public type="layout" name="power_widget_scrollview" id="0x7f03000b" />
<public type="drawable" name="pxtoggles" id="0x7f02009c" />
<public type="id" name="power_widget_button_custom" id="0x7f090026" />
<public type="id" name="power_widget_button_image" id="0x7f090027" />
<public type="id" name="power_widget_button_text" id="0x7f090028" />
8. Go to smali/com/pineappleowl/Powerwidget/
9. Go to res/layout/statusbar_expanded.xml and add this line to where you want the powerwidget to be located, (Bring the themer in you ;))a. Inside that folder, find PowerWidget.smali
a1. Find "0x7f03000b" (no quotation mark symbol)
a2. Replace it with the ids of the "power_widget_scrollview" registered at public.xml
a3. Find "0x7f03000a"
a4. Replace it with the ids of the "power_widget_button" registered at public.xml
a5. Save and exit.b. Go to PowerButton.smali and same thing as what we did in PowerWidget.smali
b1. Find "0x7f090027" (no quotation mark symbol)
b2. Replace it with the ids of the "power_widget_button_image" registered at public.xml
b3. Find "0x7f090028" (no quotation mark symbol)
b4. Replace it with the ids of the "power_widget_button_text" registered at public.xml
b5. Find "0x7f090026" (no quotation mark symbol)
b6. Replace it with the ids of the "power_widget_button_custom" registered at public.xml
b7. Find "0x7f02009c" (no quotation mark symbol)
b8. Replace it with the ids of the "pxtoggles" registered at public.xml
b9. Save and Exit
Code:
<com.pineappleowl.Powerwidget.PowerWidget android:layout_width="fill_parent" android:layout_height="wrap_content" />
11. Lastly, recompile again your SystemUI.
12. Of course, it wont work if it doesnt have Settings. Download the apk at the third post named " PWidget Settings Beta1.1.apk"
11. Enjoy bestfriend ;)
Credits:
Android Open Source Program
CyanogenMod
Lidroid
PotatoInc
Mariozawa
My testers (You know who you are :D)
Android Open Source Program
CyanogenMod
Lidroid
PotatoInc
Mariozawa
My testers (You know who you are :D)
Greets,
PineappleOwl
PineappleOwl