Or Continue to Thread: Statusbar mods collection gala…
Find Your Device:
16th March 2014, 07:45 AM   |  #4  
abhishekr700's Avatar
OP Senior Member
Flag New Delhi
Thanks Meter: 141
 
441 posts
Join Date:Joined: Mar 2013
More
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:
.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:
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:
.field private static final LAYOUT_SCROLL_BUTTON_THRESHOLD_PORT:I = 0x5
to
Code:
.field private static final LAYOUT_SCROLL_BUTTON_THRESHOLD_PORT:I = 0x6

Code:
div-int/lit8 v2, v2, 0x5
to
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
Last edited by abhishekr700; 16th March 2014 at 07:50 AM.
The Following 2 Users Say Thank You to abhishekr700 For This Useful Post: [ View ]