Quantcast
Channel: xda-developers - Android Themes
Viewing all articles
Browse latest Browse all 4090

[2.3x+][GUIDE][MOD][DEV]PO PowerWidget V1.1

$
0
0
Power Widget
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:
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

Whats not:
Quote:

The Data icon isnt accurate much (Like lidroid does but working fine at dis/enabling)
Not Grid-like power widget, sarrey.

Note:
Quote:

Let me know if there is a bug you encounter
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:

Quote:

Notepad++
Basic Android Modding Skills
The file in this third post named "powerwidget_v1.zip"
Your SystemUI
Apktool
Patience
And a lot of understading because my english is poor


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 SystemUI
b. Put the smali folder of the downloaded file to your decompiled SystemUI
4. Compile your SystemUI.apk
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:
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" />

7. Now we move to the smali,
8. Go to smali/com/pineappleowl/Powerwidget/
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
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 ;))
Code:

<com.pineappleowl.Powerwidget.PowerWidget android:layout_width="fill_parent" android:layout_height="wrap_content" />
10. Save and exit
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)



Greets,
PineappleOwl

Viewing all articles
Browse latest Browse all 4090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>