[Galaxy Y GT-S5360 General] PineappleOwl:
Power Widget

POTech Works

NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE!

UPDATES will be transfered HERE. Update is so easy now SWEAR :)​

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:

​

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

Drawable

Id

Mine was:

<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 ;))

<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​