Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,619 Members 52,366 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
SArnab©®
Old
(Last edited by SArnab©®; 17th April 2013 at 03:36 AM.) Reason: ADDED GUIDE TO SET MUSIC SHORTCUT IN STATUSBAR
#1  
SArnab©®'s Avatar
Senior Member - OP
Thanks Meter 1596
Posts: 1,862
Join Date: Dec 2012
Location: Asansol

 
DONATE TO ME
Angry [GUIDE/MODS]Collection of Mods For SAMSUNG DUAL SIM MOBILES.

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.





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

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



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:
 



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

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" android:onClick="musicButton" />
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.
Mobile Phone : Sony Xperia™ M Dual C2004 | Android 4.3 Stock Rooted | Locked Bootloader | Xposed Framework.
Tablet : Samsung Galaxy Tab 3 8.0 SM-T311 | Android 4.2.2 Stock

Xposed Modules : Android Theme Engine a.k.a. ExThemer | Android Apps Theme Engine a.k.a. ExThemer 2


Android Apps : Google Play Link

Guides :
Guide To Re-Lock The Boot-Loader Of Any Sony Xperia Device If Ta Partition Backup Done Before Unlocking
[Guide/Tutorial][JB 4.3+]Create Your Own Xperia Theme

The Following 13 Users Say Thank You to SArnab©® For This Useful Post: [ Click to Expand ]
 
SArnab©®
Old
(Last edited by SArnab©®; 17th April 2013 at 03:34 AM.) Reason: a
#2  
SArnab©®'s Avatar
Senior Member - OP
Thanks Meter 1596
Posts: 1,862
Join Date: Dec 2012
Location: Asansol

 
DONATE TO ME
Angry Guides n mods for ALL PHONES

reserved
Mobile Phone : Sony Xperia™ M Dual C2004 | Android 4.3 Stock Rooted | Locked Bootloader | Xposed Framework.
Tablet : Samsung Galaxy Tab 3 8.0 SM-T311 | Android 4.2.2 Stock

Xposed Modules : Android Theme Engine a.k.a. ExThemer | Android Apps Theme Engine a.k.a. ExThemer 2


Android Apps : Google Play Link

Guides :
Guide To Re-Lock The Boot-Loader Of Any Sony Xperia Device If Ta Partition Backup Done Before Unlocking
[Guide/Tutorial][JB 4.3+]Create Your Own Xperia Theme

The Following User Says Thank You to SArnab©® For This Useful Post: [ Click to Expand ]
 
SArnab©®
Old
#3  
SArnab©®'s Avatar
Senior Member - OP
Thanks Meter 1596
Posts: 1,862
Join Date: Dec 2012
Location: Asansol

 
DONATE TO ME
rrrrr
Mobile Phone : Sony Xperia™ M Dual C2004 | Android 4.3 Stock Rooted | Locked Bootloader | Xposed Framework.
Tablet : Samsung Galaxy Tab 3 8.0 SM-T311 | Android 4.2.2 Stock

Xposed Modules : Android Theme Engine a.k.a. ExThemer | Android Apps Theme Engine a.k.a. ExThemer 2


Android Apps : Google Play Link

Guides :
Guide To Re-Lock The Boot-Loader Of Any Sony Xperia Device If Ta Partition Backup Done Before Unlocking
[Guide/Tutorial][JB 4.3+]Create Your Own Xperia Theme

The Following User Says Thank You to SArnab©® For This Useful Post: [ Click to Expand ]
 
SArnab©®
Old
#4  
SArnab©®'s Avatar
Senior Member - OP
Thanks Meter 1596
Posts: 1,862
Join Date: Dec 2012
Location: Asansol

 
DONATE TO ME
rrrrrrrrrrrrr
Mobile Phone : Sony Xperia™ M Dual C2004 | Android 4.3 Stock Rooted | Locked Bootloader | Xposed Framework.
Tablet : Samsung Galaxy Tab 3 8.0 SM-T311 | Android 4.2.2 Stock

Xposed Modules : Android Theme Engine a.k.a. ExThemer | Android Apps Theme Engine a.k.a. ExThemer 2


Android Apps : Google Play Link

Guides :
Guide To Re-Lock The Boot-Loader Of Any Sony Xperia Device If Ta Partition Backup Done Before Unlocking
[Guide/Tutorial][JB 4.3+]Create Your Own Xperia Theme

The Following User Says Thank You to SArnab©® For This Useful Post: [ Click to Expand ]
 
SArnab©®
Old
#5  
SArnab©®'s Avatar
Senior Member - OP
Thanks Meter 1596
Posts: 1,862
Join Date: Dec 2012
Location: Asansol

 
DONATE TO ME
rrrrrrrrrrrrrrrrrrrrrrrrrrrr
Mobile Phone : Sony Xperia™ M Dual C2004 | Android 4.3 Stock Rooted | Locked Bootloader | Xposed Framework.
Tablet : Samsung Galaxy Tab 3 8.0 SM-T311 | Android 4.2.2 Stock

Xposed Modules : Android Theme Engine a.k.a. ExThemer | Android Apps Theme Engine a.k.a. ExThemer 2


Android Apps : Google Play Link

Guides :
Guide To Re-Lock The Boot-Loader Of Any Sony Xperia Device If Ta Partition Backup Done Before Unlocking
[Guide/Tutorial][JB 4.3+]Create Your Own Xperia Theme

The Following User Says Thank You to SArnab©® For This Useful Post: [ Click to Expand ]
 
SArnab©®
Old
#6  
SArnab©®'s Avatar
Senior Member - OP
Thanks Meter 1596
Posts: 1,862
Join Date: Dec 2012
Location: Asansol

 
DONATE TO ME
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Mobile Phone : Sony Xperia™ M Dual C2004 | Android 4.3 Stock Rooted | Locked Bootloader | Xposed Framework.
Tablet : Samsung Galaxy Tab 3 8.0 SM-T311 | Android 4.2.2 Stock

Xposed Modules : Android Theme Engine a.k.a. ExThemer | Android Apps Theme Engine a.k.a. ExThemer 2


Android Apps : Google Play Link

Guides :
Guide To Re-Lock The Boot-Loader Of Any Sony Xperia Device If Ta Partition Backup Done Before Unlocking
[Guide/Tutorial][JB 4.3+]Create Your Own Xperia Theme

 
SArnab©®
Old
#7  
SArnab©®'s Avatar
Senior Member - OP
Thanks Meter 1596
Posts: 1,862
Join Date: Dec 2012
Location: Asansol

 
DONATE TO ME
Default 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.=)
Mobile Phone : Sony Xperia™ M Dual C2004 | Android 4.3 Stock Rooted | Locked Bootloader | Xposed Framework.
Tablet : Samsung Galaxy Tab 3 8.0 SM-T311 | Android 4.2.2 Stock

Xposed Modules : Android Theme Engine a.k.a. ExThemer | Android Apps Theme Engine a.k.a. ExThemer 2


Android Apps : Google Play Link

Guides :
Guide To Re-Lock The Boot-Loader Of Any Sony Xperia Device If Ta Partition Backup Done Before Unlocking
[Guide/Tutorial][JB 4.3+]Create Your Own Xperia Theme

The Following User Says Thank You to SArnab©® For This Useful Post: [ Click to Expand ]
 
SArnab©®
Old
#8  
SArnab©®'s Avatar
Senior Member - OP
Thanks Meter 1596
Posts: 1,862
Join Date: Dec 2012
Location: Asansol

 
DONATE TO ME
Guys updated the guide...

Now you can also add music shortcut in statusbar through my guide.
Mobile Phone : Sony Xperia™ M Dual C2004 | Android 4.3 Stock Rooted | Locked Bootloader | Xposed Framework.
Tablet : Samsung Galaxy Tab 3 8.0 SM-T311 | Android 4.2.2 Stock

Xposed Modules : Android Theme Engine a.k.a. ExThemer | Android Apps Theme Engine a.k.a. ExThemer 2


Android Apps : Google Play Link

Guides :
Guide To Re-Lock The Boot-Loader Of Any Sony Xperia Device If Ta Partition Backup Done Before Unlocking
[Guide/Tutorial][JB 4.3+]Create Your Own Xperia Theme

 
InMesh
Old
#9  
InMesh's Avatar
Junior Member
Thanks Meter 6
Posts: 21
Join Date: Feb 2013
Location: 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
The Following User Says Thank You to InMesh For This Useful Post: [ Click to Expand ]
 
SArnab©®
Old
#10  
SArnab©®'s Avatar
Senior Member - OP
Thanks Meter 1596
Posts: 1,862
Join Date: Dec 2012
Location: Asansol

 
DONATE TO ME
Quote:
Originally Posted by inmesh View Post
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
what do you mean by mods for jelly bean?

For jelly bean or for a ginger bread mobile to mod it like jelly bean?
Mobile Phone : Sony Xperia™ M Dual C2004 | Android 4.3 Stock Rooted | Locked Bootloader | Xposed Framework.
Tablet : Samsung Galaxy Tab 3 8.0 SM-T311 | Android 4.2.2 Stock

Xposed Modules : Android Theme Engine a.k.a. ExThemer | Android Apps Theme Engine a.k.a. ExThemer 2


Android Apps : Google Play Link

Guides :
Guide To Re-Lock The Boot-Loader Of Any Sony Xperia Device If Ta Partition Backup Done Before Unlocking
[Guide/Tutorial][JB 4.3+]Create Your Own Xperia Theme


Tags
galaxy, gingerbread 2.3, guide, mod, status bar
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes