Default rr

[GUIDE]How to add lidroid 14 statusbar toggle buttons for Galaxy Y

All Credits belongs to dcsms

Please refers to lidroid original thread below
http://forum.xda-developers.com/show....php?t=1289896

Quote:
Requirements :--

1. A Computer with JAVA DEVELOPMENT KIT [JDK] installed
2. Apktool
3. Notepad++ / other UNIX editor
4. Knowledge about how to compile/decompile apk (dont ask me.. just use the search bar.. there a bunch of tuts how to do that)
firstly download this file :


Quote:
Procedure :--

1. Download LidroidSystemUI.apk and decompile it with apktool, then you get LidroidSystemUI dir.
2. Pull and Decompile your SystemUI.apk, copy LidroidSystemUI/smali/* into SystemUI/smali.
3. Open SystemUI/smali/com/android/systemui/status/StatusBarService.smali. Find(Ctrl + F) QuickSettingsView, change codes below



Code:
Select Code
.local v3, qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
    const v7, 0x7f030002

    invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .end local v3           #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
    check-cast v3, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;

    .line 352
    .restart local v3       #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
with


Code:
Select Code
const v7, 0x3030003

    invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    check-cast v3, Lcom/lidroid/systemui/quickpanel/PowerWidget;

    .line 352
    .local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
    invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
4. Compile SystemUI with apktool,
5. open up your SystemUI.apk with winrar or 7zip
6. locate to SystemUI/build/apk/ and find classes.dex onto the winrar/7zip
7. Then Push it into /system/app/
5. push lidroid-res.apk in /system/framework/, push QuickPanelSettings.apk in /system/app, reboot.
More mod :

Originally Posted by sicopat@xda
To have 6 visible toggles : edit : SystemUI/smali/com/lidroid/systemui/quickpanel/PowerWidget.smali
change :

Code:
Select Code
.field private static final LAYOUT_SCROLL_BUTTON_THRESHOLD_PORT:I = 0x5
to
Code:
Select Code
.field private static final LAYOUT_SCROLL_BUTTON_THRESHOLD_PORT:I = 0x6

Code:
Select Code
div-int/lit8 v2, v2, 0x5
to
Code:
Select Code
div-int/lit8 v2, v2, 0x6
Note: i skip editing androidmanfest.xml (cuz when we do this... we should sign all of the apk in /system/app and /system/framework. ..but if u insist.. please see the original thread above how to do that...unless if u dont do editing androidmanifest.xml u'll got FC when pressing Flashlight button. anyway i dont need it.. so its not a big deal)


DONT FORGET TO PRESS ATHANKS

Press Thanks If I Helped !!

 

DEVICE : SAMSUNG GALAXY Y [GT-S5360]
CURRENT ROM : REINCARNATION CM7.2
ROMS TESTED : JELLYBLAST V3 , NEMESIS ONE , CYANOGENMOD 9 , PUREKAT 2.0 , EVOLUTION X4 , HYPERION 8 GMREINCARNATION CM7.2
ROMS TO BE TESTED : JELLYNOID ,
SCRIPTS TESTED/USING : V6 SUPERCHARGER BLACKDOG EDITION , RT-MIXMANAGER,KICKASS KERNALISER
KERNELS TESTED : HELLS FUSION #50 , KURO KERNEL , BLACKREACTOR V5 , WHITEXP KERNEL