[GUIDE/MODS]Collection of Mods For SAMSUNG DUAL SIM MOBILES.

Search This thread

arnabJ

Senior Member
Dec 18, 2012
2,951
2,958
Asansol
www.proficientapps.in
THESE MODS SPECIFICALLY FOR SAMSUNG GALAXY Y DUOS LITE/SAMSUNG GALAXY POCKET DUOS. BUT THESE WILL WORK ON ANY OTHER DUAL SIM ANDROID PHONES TOO WITH LITTLE OR NO MODIFICATION.

THESE MAY ALSO WORK IN ICS N JB ROMS TOO.
PLZ TRY AND REPORT GUYS!!


YOU ALL MAY EVEN GET MORE MODS HERE : GUIDE BY LOKESHSAHINI94

CREDITS:-
Lokeshsaini94 FOR MAKING ME UNDERSTAND ABOUT FEW STATUS BAR TWEAKS.
b16h22 FOR Settings Shortcut in StatusBar.
petrukgrinder for jelly bean style time, date in status bar
evanlocked for Recent app Shortcut in StatusBar


THINGS YOU GONNA NEED DURING TRYING THESE MODS:-
1. A COMPUTER or LAPTOP[LIKE ME]
2. A ROOTED AND DEODEXED DUAL SIM ANDROID PHONE.[MINE IS SAMSUNG GT-S5302]
3. FILES MENTIONED IN EACH MOD[YOU CAN FIND TEM IN system/app OR system/framework FOLDERS OR ANY OTHER FOLDERS AS MENTIONED IN THE CONCERNED MOD.
4. KNOWLEDGE OF EDITING APK FILES WITH apktool or similar.[ YOU MAY HAVE A LOOK IN TIS GUIDE BY ME IN TIS MATTER ]
5. notepad++ TO EDIT XML AND OTHER FILES.


||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

MODS START HERE :

1]Remove Carrier Name

1.Decompile SystemUI.apk with apktool or apk multi tool.
2.Go to SystemUI.apk\res\layout\ and open status_bar_expanded_dual_sim.xml with notepad++
3.Search for these lines and remove them:

4.FOR REMOVING SIM1 CARRIER NAME SEARCH & REMOVE THE FOLLOWING LINE:
Code:
<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
5.FOR REMOVING SIM2 CARRIER NAME SEARCH & REMOVE THE FOLLOWING LINE:
Code:
<com.android.systemui.statusbar.CarrierLabel2 android:textSize="17.659973dip" android:textColor="#ffffffff" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
6.PLZ Note these codes will only remove The texts in Samsung Mobiles n not the sim icons.

7.Save the file and close it.

8.Now compile back apk file and push back to system/app.


||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

2]Add settings shortcut in status bar:

Decompile your SystemUI.apk and go to SystemUI.apk\res\layout\ n open status_bar_expanded_dual_sim.xml.
Now u have 2 different options to choose from:
The first option will put the shortcut right next to the carrier name.
The second one will put that in the center just before clear button.

OPTION 1:

SEARCH FOR THIS LINE:
Code:
<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" android:paddingBottom="1.0dip" android:layout_width="0.0dip"  android:layout_height="wrap_content" android:layout_marginLeft="5.0dip"  android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
Paste the Following code just below the above line:
Code:
                    <ImageView android:layout_gravity="center_vertical" android:layout_width="25.0px" android:layout_height="25.0px" android:src="@drawable/ic_notify_quicksettings" android:onClick="settingsButton" />
Save the file and close it.

OPTION 2.

Search for :
Code:
clear_all_button
and paste the following line just above the line having clear_all_button:
Code:
                    <ImageView  android:layout_gravity="center_vertical" android:layout_width="25.0px"  android:layout_height="25.0px"  android:src="@drawable/ic_notify_quicksettings"  android:onClick="settingsButton" />
Now comes the Harder part. Now u need to edit SMALI FILE. [THIS STEP IS SAME FOR BOTH THE OPTIONS]:

Now we can add the method settingsButton to StatusBarService.smali.
Open the file and look for the following code

Code:
# virtual methods
Paste this method below

Code:
.method public settingsButton(Landroid/view/View;)V
    .locals 3
    .parameter "v"

    .prologue
    .line 1717
    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.settings.SETTINGS"

    invoke-direct {v1, v2}, Landroid/content/Intent;->(Ljava/lang/String;)V

    const/high16 v2, 0x1000

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/android/systemui/statusbar/StatusBarService;->animateCollapse()V
    
    .line 1720
    return-void
.end method
Note: You must leave a blank line below # virtual methods
n also one line after .end method

Now save the file n close it.

Now download and extract this Settings_shortcut_drawables.zip from this thread. Move the ic_notify_quicksettings.xml and the other two pngs inside your drawable folder. Ignore StatusBarService$8.smali. Its of no use for us.

Now recompile, sign the apk n move to system/app.

jane3amy.jpg


sc20120923104322.png


||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

3]Jelly bean style Date, Time and Day on Status Bar

ehe2yqag.jpg


Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar_expanded_dual_sim.xml with notepad++
Search for this line:
Code:
            <com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
Copy paste this linear layout code just below the above code:
Code:
<LinearLayout android:orientation="horizontal" android:background="@drawable/jb_date_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
                        <com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
                </LinearLayout>
Save the file and close it.
Download Jelly.zip from attachments of this post
Download jb_date_background.zip from here.
Extract jelly.zip and copy two files from jelly.zip to SystemUI.apk/smali/com/android/systemui/statusbar/(here)
Extract jb_date_background.zip and Move jb_date_background.9.png to SystemUI.apk\res\drawables\here
Now compile back apk file and push back to system/app.

PICTURE TUTORIAL:

jbdateguide.png


||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

4]Add music shortcut in status bar[ NOTE: THIS GUIDE IS ONLY FOR STOCK GB MUSIC.APK & NOT FOR CUSTOM MUSIC PLAYERS]:
Decompile your SystemUI.apk and go to SystemUI.apk\res\layout\ n open status_bar_expanded_dual_sim.xml.
Search for :
Code:
clear_all_button
and paste the following line just above the line having clear_all_button:
Code:
<ImageView android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quickmusic"[COLOR=Red] android:onClick="musicButton"[/COLOR] />
Now comes the Harder part. Now u need to edit SMALI FILE:

Now we can add the method musicButton to StatusBarService.smali.
Open the file and look for the following code

Code:
# virtual methods
Paste this method below

Code:
.method public musicButton(Landroid/view/View;)V
    .locals 3
    .parameter "v"

    .prologue
    .line 1717
    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.MUSIC_PLAYER"

    invoke-direct {v1, v2}, Landroid/content/Intent;->(Ljava/lang/String;)V

    const/high16 v2, 0x1000

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/android/systemui/statusbar/StatusBarService;->animateCollapse()V
    
    .line 1720
    return-void
.end method
Note: You must leave a blank line below # virtual methods
n also one line after .end method

Now save the file n close it.

Now download and extract this Music_shortcut_drawables.zip from here. Put the ic_notify_quickmusic.xml and the other two pngs inside your drawable folder.

Now recompile, sign the apk n move to system/app.
 
Last edited:

InMesh

Member
Feb 21, 2013
22
7
Melilla
Thanks friend. Can you provide mods for Jelly Bean? I have a dual sim with mt6577 and I am starting to develop it jeje, thanks :)
 
  • Like
Reactions: arnabJ

arnabJ

Senior Member
Dec 18, 2012
2,951
2,958
Asansol
www.proficientapps.in
No jeje. Mods and tweaks for a jelly bean device. I have a phone with 4.1.1 and I want to try mods and tweaks on it, and it is dual sim with mtk6577 jeje

You can try n report here if these mods work in your jb or not.

The about section mod is for every phone.

I will update more soon.

Tryin new mods now.

Sent from my GT-S5302 using Tapatalk 2
 
  • Like
Reactions: InMesh
Dec 23, 2012
36
5
Gwalior
I'm trying to add jellybean style date and time in status bar. I decompile SystemUI.apk using Apk multi tool, then change the code as per the instructions, then compile it and sign it. But i'm getting status bar force closed. Help me out.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    THESE MODS SPECIFICALLY FOR SAMSUNG GALAXY Y DUOS LITE/SAMSUNG GALAXY POCKET DUOS. BUT THESE WILL WORK ON ANY OTHER DUAL SIM ANDROID PHONES TOO WITH LITTLE OR NO MODIFICATION.

    THESE MAY ALSO WORK IN ICS N JB ROMS TOO.
    PLZ TRY AND REPORT GUYS!!


    YOU ALL MAY EVEN GET MORE MODS HERE : GUIDE BY LOKESHSAHINI94

    CREDITS:-
    Lokeshsaini94 FOR MAKING ME UNDERSTAND ABOUT FEW STATUS BAR TWEAKS.
    b16h22 FOR Settings Shortcut in StatusBar.
    petrukgrinder for jelly bean style time, date in status bar
    evanlocked for Recent app Shortcut in StatusBar


    THINGS YOU GONNA NEED DURING TRYING THESE MODS:-
    1. A COMPUTER or LAPTOP[LIKE ME]
    2. A ROOTED AND DEODEXED DUAL SIM ANDROID PHONE.[MINE IS SAMSUNG GT-S5302]
    3. FILES MENTIONED IN EACH MOD[YOU CAN FIND TEM IN system/app OR system/framework FOLDERS OR ANY OTHER FOLDERS AS MENTIONED IN THE CONCERNED MOD.
    4. KNOWLEDGE OF EDITING APK FILES WITH apktool or similar.[ YOU MAY HAVE A LOOK IN TIS GUIDE BY ME IN TIS MATTER ]
    5. notepad++ TO EDIT XML AND OTHER FILES.


    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    MODS START HERE :

    1]Remove Carrier Name

    1.Decompile SystemUI.apk with apktool or apk multi tool.
    2.Go to SystemUI.apk\res\layout\ and open status_bar_expanded_dual_sim.xml with notepad++
    3.Search for these lines and remove them:

    4.FOR REMOVING SIM1 CARRIER NAME SEARCH & REMOVE THE FOLLOWING LINE:
    Code:
    <com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
    5.FOR REMOVING SIM2 CARRIER NAME SEARCH & REMOVE THE FOLLOWING LINE:
    Code:
    <com.android.systemui.statusbar.CarrierLabel2 android:textSize="17.659973dip" android:textColor="#ffffffff" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
    6.PLZ Note these codes will only remove The texts in Samsung Mobiles n not the sim icons.

    7.Save the file and close it.

    8.Now compile back apk file and push back to system/app.


    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    2]Add settings shortcut in status bar:

    Decompile your SystemUI.apk and go to SystemUI.apk\res\layout\ n open status_bar_expanded_dual_sim.xml.
    Now u have 2 different options to choose from:
    The first option will put the shortcut right next to the carrier name.
    The second one will put that in the center just before clear button.

    OPTION 1:

    SEARCH FOR THIS LINE:
    Code:
    <com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" android:paddingBottom="1.0dip" android:layout_width="0.0dip"  android:layout_height="wrap_content" android:layout_marginLeft="5.0dip"  android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
    Paste the Following code just below the above line:
    Code:
                        <ImageView android:layout_gravity="center_vertical" android:layout_width="25.0px" android:layout_height="25.0px" android:src="@drawable/ic_notify_quicksettings" android:onClick="settingsButton" />
    Save the file and close it.

    OPTION 2.

    Search for :
    Code:
    clear_all_button
    and paste the following line just above the line having clear_all_button:
    Code:
                        <ImageView  android:layout_gravity="center_vertical" android:layout_width="25.0px"  android:layout_height="25.0px"  android:src="@drawable/ic_notify_quicksettings"  android:onClick="settingsButton" />
    Now comes the Harder part. Now u need to edit SMALI FILE. [THIS STEP IS SAME FOR BOTH THE OPTIONS]:

    Now we can add the method settingsButton to StatusBarService.smali.
    Open the file and look for the following code

    Code:
    # virtual methods
    Paste this method below

    Code:
    .method public settingsButton(Landroid/view/View;)V
        .locals 3
        .parameter "v"
    
        .prologue
        .line 1717
        invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v0
    
        new-instance v1, Landroid/content/Intent;
    
        const-string v2, "android.settings.SETTINGS"
    
        invoke-direct {v1, v2}, Landroid/content/Intent;->(Ljava/lang/String;)V
    
        const/high16 v2, 0x1000
    
        invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
    
        move-result-object v1
    
        invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    
        invoke-virtual {p0}, Lcom/android/systemui/statusbar/StatusBarService;->animateCollapse()V
        
        .line 1720
        return-void
    .end method
    Note: You must leave a blank line below # virtual methods
    n also one line after .end method

    Now save the file n close it.

    Now download and extract this Settings_shortcut_drawables.zip from this thread. Move the ic_notify_quicksettings.xml and the other two pngs inside your drawable folder. Ignore StatusBarService$8.smali. Its of no use for us.

    Now recompile, sign the apk n move to system/app.

    jane3amy.jpg


    sc20120923104322.png


    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    3]Jelly bean style Date, Time and Day on Status Bar

    ehe2yqag.jpg


    Decompile systemui.apk with apktool or similar.
    Go to SystemUI.apk\res\layout\ and open status_bar_expanded_dual_sim.xml with notepad++
    Search for this line:
    Code:
                <com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
    Copy paste this linear layout code just below the above code:
    Code:
    <LinearLayout android:orientation="horizontal" android:background="@drawable/jb_date_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
                            <com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
                    </LinearLayout>
    Save the file and close it.
    Download Jelly.zip from attachments of this post
    Download jb_date_background.zip from here.
    Extract jelly.zip and copy two files from jelly.zip to SystemUI.apk/smali/com/android/systemui/statusbar/(here)
    Extract jb_date_background.zip and Move jb_date_background.9.png to SystemUI.apk\res\drawables\here
    Now compile back apk file and push back to system/app.

    PICTURE TUTORIAL:

    jbdateguide.png


    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    4]Add music shortcut in status bar[ NOTE: THIS GUIDE IS ONLY FOR STOCK GB MUSIC.APK & NOT FOR CUSTOM MUSIC PLAYERS]:
    Decompile your SystemUI.apk and go to SystemUI.apk\res\layout\ n open status_bar_expanded_dual_sim.xml.
    Search for :
    Code:
    clear_all_button
    and paste the following line just above the line having clear_all_button:
    Code:
    <ImageView android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quickmusic"[COLOR=Red] android:onClick="musicButton"[/COLOR] />
    Now comes the Harder part. Now u need to edit SMALI FILE:

    Now we can add the method musicButton to StatusBarService.smali.
    Open the file and look for the following code

    Code:
    # virtual methods
    Paste this method below

    Code:
    .method public musicButton(Landroid/view/View;)V
        .locals 3
        .parameter "v"
    
        .prologue
        .line 1717
        invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v0
    
        new-instance v1, Landroid/content/Intent;
    
        const-string v2, "android.intent.action.MUSIC_PLAYER"
    
        invoke-direct {v1, v2}, Landroid/content/Intent;->(Ljava/lang/String;)V
    
        const/high16 v2, 0x1000
    
        invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
    
        move-result-object v1
    
        invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    
        invoke-virtual {p0}, Lcom/android/systemui/statusbar/StatusBarService;->animateCollapse()V
        
        .line 1720
        return-void
    .end method
    Note: You must leave a blank line below # virtual methods
    n also one line after .end method

    Now save the file n close it.

    Now download and extract this Music_shortcut_drawables.zip from here. Put the ic_notify_quickmusic.xml and the other two pngs inside your drawable folder.

    Now recompile, sign the apk n move to system/app.
    2
    Re: [GUIDE] [MODS] Collection of Mods For All Dual Sim Gingerbread[2.3] Phones

    Guide updated guys....
    3 mods in total now...

    Don't be lazy.
    Lift your hand n press the Thanxxx Button.=)
    1
    Guides n mods for ALL PHONES

    reserved
    1
    rrrrrrrrrrrrr