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:-
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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:
5.FOR REMOVING SIM2 CARRIER NAME SEARCH & REMOVE THE FOLLOWING LINE:
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:
Paste the Following code just below the above line:
Save the file and close it.
OPTION 2.
Search for :
and paste the following line just above the line having clear_all_button:
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
Paste this method below
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:
Copy paste this linear layout code just below the above code:
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]:
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.
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" />
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" />
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" />
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" />
OPTION 2.
Search for :
Code:
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 we can add the method settingsButton to StatusBarService.smali.
Open the file and look for the following code
Code:
# virtual methods
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
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">
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>
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 :
and paste the following line just above the line having clear_all_button:
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
Paste this method below
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.
Search for :
Code:
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 we can add the method musicButton to StatusBarService.smali.
Open the file and look for the following code
Code:
# virtual methods
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
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: