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

Search This thread

dcsms

Senior Member
Feb 19, 2012
445
751
Padang
All Credits belongs to Lidroid

Please refers to lidroid original thread below
http://xdaforums.com/showthread.php?t=1289896

Notes:

1. need a Computer which is has JDK installed
2. apktool
3. notepad++ / other text editor
4. know 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 :
1. lidroid-res
http://xdaforums.com/attachment.php?attachmentid=750399&d=1318661697
2. LidroidSystemUI
http://xdaforums.com/attachment.php?attachmentid=750756&d=1318701014
3. QuickPanelSettings
http://xdaforums.com/attachment.php?attachmentid=751238&d=1318747162

or u can visit lid thread above n download it from #1 post attachment


How to :

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, changes codes below

(this code i've got from mr. sileshnair. big thanks for him :D)
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
.field private static final LAYOUT_SCROLL_BUTTON_THRESHOLD_PORT:I = 0x6

Code:
div-int/lit8 v2, v2, 0x5
to
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. :D ..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 thanks me... please thanks too three man above for their great job
sharing is caring
 

Attachments

  • SC20120221-222803.png
    SC20120221-222803.png
    26.8 KB · Views: 13,693
Last edited:

Kousthubha Kumar

Senior Member
Feb 18, 2012
1,088
331
Nice tutorial dude just made a nice bar but a bit complicated though.

Sent from my GT-S5360 using xda premium
 

deathnotice01

Senior Member
Feb 19, 2012
8,328
3,136
Cebu
was going to modify the PNG files of this apk,
decompiled all files, recompiled and resigned APK however when i force it into the system status bar gets force close,
 

drichieboi

Senior Member
Jan 12, 2012
170
19
ow this is a nice guide ...im planning to make a ICS status bar from this i wish its not impossible
 

kimbaduds

Senior Member
May 1, 2011
202
10
im having a problem on making the notifcations work, i followed the tutorial, the notification works but the 14 toggles isnt working.. hmm. whats wrong
 

bumslayer

Senior Member
Dec 8, 2011
452
143
Near you
Oppo Reno5
guys dont forget to change the permissions to the files you will push to the phone as well. just look at the permissions of the other files under /system/apps and /system/framework.

Sent from my GT-S5360 using xda premium
 
  • Like
Reactions: dcsms

Top Liked Posts

  • There are no posts matching your filters.
  • 40
    All Credits belongs to Lidroid

    Please refers to lidroid original thread below
    http://xdaforums.com/showthread.php?t=1289896

    Notes:

    1. need a Computer which is has JDK installed
    2. apktool
    3. notepad++ / other text editor
    4. know 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 :
    1. lidroid-res
    http://xdaforums.com/attachment.php?attachmentid=750399&d=1318661697
    2. LidroidSystemUI
    http://xdaforums.com/attachment.php?attachmentid=750756&d=1318701014
    3. QuickPanelSettings
    http://xdaforums.com/attachment.php?attachmentid=751238&d=1318747162

    or u can visit lid thread above n download it from #1 post attachment


    How to :

    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, changes codes below

    (this code i've got from mr. sileshnair. big thanks for him :D)
    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
    .field private static final LAYOUT_SCROLL_BUTTON_THRESHOLD_PORT:I = 0x6

    Code:
    div-int/lit8 v2, v2, 0x5
    to
    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. :D ..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 thanks me... please thanks too three man above for their great job
    sharing is caring
    2
    it works perfectly, but i have one question. can i translate it in dutch? cause i tried to do that by modifying strings.xml in lidroid-res, but then i got no statusbar. what i want is to have the text under the toggles in dutch, the app to change the toggles doesn't have to be in dutch. can someone explain why it won't work by modifying strings.xml?

    Decompile lidroid-res.apk

    Open apktool.yml

    Under

    Ids:

    - 1
    Add
    - 2

    So it would look like

    Ids:
    - 1
    - 2

    And then install twframework-res.apk
    Make changes to lidroid and compile
    2
    14 toggle done systemUI.apk .. I have done the coding, u need to only put this file in /system/app
    2
    Here's my statusbar: I'm using Hybrid 2.1.

    SC20120302-184531.png


    Thank you very much for your wonderful tutorial bro! I am one happy camper! :D :D
    1
    Nice but its too tough for me to do it

    Sent from my GT-S5360 using XDA App