[TUT][MM-LP] Mod your SymtemUI to look like Android N - Sony Cross-Device Development Themes and Apps

This is a tutorial showing how to mod your SystemUI.apk to look like the one of android N (regarding quicksettings and notifications)
Look at screenshots at the end...
Note: in the Xperia X SystemUI, some of these modifications are already done
1- Decompile SystemUI.apk
2- Quicksettings and notifications modifications
- Go in SystemUI.apk > res > values and open color.xml with a text editor (e.g. Notepad++)
Search for the line:
Code:
<color name="system_secondary_color">#ff384248</color>
and replace it with:
Code:
<color name="system_secondary_color">#ff263238</color>
and save the file
- Go in SystemUI.apk > res > values and open dimens.xml
Search for the line:
Code:
<dimen name="qs_brightness_padding_top">6.0dip</dimen>
and replace it with:
Code:
<dimen name="qs_brightness_padding_top">-5.0dip</dimen>
Search for the line:
Code:
<dimen name="notification_side_padding">8.0dip</dimen>
and replace it with:
Code:
<dimen name="notification_side_padding">0.0dip</dimen>
Search for the line:
Code:
<dimen name="notification_material_rounded_rect_radius">2.0dip</dimen>
and replace it with:
Code:
<dimen name="notification_material_rounded_rect_radius">0.0dip</dimen>
Search for the line:
Code:
<dimen name="notification_material_rounded_rect_radius_negative">-2.0dip</dimen>
and replace it with:
Code:
<dimen name="notification_material_rounded_rect_radius_negative">0.0dip</dimen>
Search for the line:
Code:
<dimen name="notification_padding">4.0dip</dimen>
and replace it with:
Code:
<dimen name="notification_padding">0.5dip</dimen>
Search for the line:
Code:
<dimen name="notifications_top_padding">8.0dip</dimen>
and replace it with:
Code:
<dimen name="notifications_top_padding">0.5dip</dimen>
And add these lines at the end of the file:
Code:
<dimen name="notification_material_shadow_rounded_rect_radius">0.0dip</dimen>
<dimen name="status_bar_expanded_header_elevation">0.0dip</dimen>
and save the file
- Go in SystemUI.apk > res > layout and open status_bar_expanded_header.xml
Search for the string:
Code:
android:elevation="4.0dip"
and replace it with:
Code:
android:elevation="0.0dip"
and save the file
3- Recompile SystemUI.apk with original signature
It's done, enjoy
Credits: @Lars124 for his tutorial which partially helped me
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

res

Will this work on AOSP based ROMs or it'll work onlu on stock?

Sony Xperia C5 - Android 5.1.1 - Working. Thanks!

thanks

nathankaunang said:
thanks
Click to expand...
Click to collapse
Wah ada om nathan..
Well, thanks for the tutorial, I'll try it on lollipop mate..
Looks so nice..
:good:

nrokos said:
Will this work on AOSP based ROMs or it'll work onlu on stock?
Click to expand...
Click to collapse
May work on AOSP, but look at the tutorial of Lars124 too (link in credits)

Well, it's working on lollipop deodexed rom
Thanks mate.

How about lockscreen notifications ?
Sent from my C6903 using XDA-Developers mobile app

nice share bro
but for few people just like me doesn't have any much time to dc/rc some apk to change padding so easyway is using xposed module it's name Qs X tiles per row [L-M] v0.97 or Android N-ify

@nreuge - many thanks - everything is working
dstrikersZ1 said:
How about lockscreen notifications ?
Click to expand...
Click to collapse
Yes - works on lockscreen also
ryandxter said:
nice share bro
but for few people just like me doesn't have any much time to dc/rc some apk to change padding so easyway is using xposed module it's name Qs X tiles per row [L-M] v0.97 or Android N-ify
Click to expand...
Click to collapse
Thanks for this hints - But some (like me) like to stay with less Xposed modules as possible.
I like to modify the apks for myself... Only direct code adjustments gives you the best UI experience.
This mod cost me 3 minutes. But with quite good apk de-re-compling knowledge - which may not everybody has...
Therefore I really appreciate if modders share there codes

@nreuge, is it possible to have tha carrier text shown on status bar expanded and lockscreen on status bar also, i tried it but it shows on lockscreen also. Thanks for dis guide!

Hi, I use cm13 and how can I change my lock screen clock and battery icon like Sony android 6 ROMs?
sent from Xperia™ SP | Android 6.0.1

Guys, a beginner here... How can I recompile the apk with original signature? And after recompiling it says
Code:
warning string ... has no default translation
is that a problem? Thanks in advance!
PS: I installed the framework-res.apk.
EDIT: figured it out, it's working! Thanks for the amazing tutorial!!!

Working on m4 aqua 5.0
Note: I had to add this line because it was missing
Code:
<dimen name="notification_material_rounded_rect_radius_negative">0.0dip</dimen>

plz.. Mod Ui for me FW MM570
you have already done a great job! but noob like me its hard to do coding, I like yours way than xposed module, here is my System Ui.apk..if u kindly mod it for me and then I can share with other noobs! Thanks in Advance!:highfive:

dark-mew said:
Well, it's working on lollipop deodexed rom
Thanks mate.
Click to expand...
Click to collapse
Can you show me how to change the toggle icons? You mod SystemUI, or use Xposed?

Could you please do it for me
Xperia z2 D6502 MM .570 odexed
Thanks in advance...

xperiafath said:
you have already done a great job! but noob like me its hard to do coding, I like yours way than xposed module, here is my System Ui.apk..if u kindly mod it for me and then I can share with other noobs! Thanks in Advance!:highfive:
Click to expand...
Click to collapse
cosmicfajr said:
Could you please do it for me
Xperia z2 D6502 MM .570 odexed
Thanks in advance...
Click to expand...
Click to collapse
Guys, I'm sorry but I do mods only for the Z5...
I've not so much free time, and doing a mod means update it at every firmware update. It's why I've done this tutorial. I think there are enough people in the Z2 forum to do it and share it.
Hope you understand...

thanhtuan1611 said:
Can you show me how to change the toggle icons? You mod SystemUI, or use Xposed?
Click to expand...
Click to collapse
Actually, it's pretty easy mate.
Just replace the stock icons with the AOSP icons.
And if you don't want to decompile your systemui, you can use root explorer to extract your systemui and then go to res/drawable-xhdpi-v4 and replace the icons.
And after that, just compress the files inside systemui folder as a zip and then rename it to change the extension to be apk.
Push it to your system and give the right permission, reboot.

Related

[THEME][MOD] Clean TouchWiz Lockscreen Mod + CRT animation for JVR/JVS/JVT/JVZ

CLEAN TouchWiz Lockscreen Mod for odexed (stock) and deodexed ROM's. If you have custom ROM or mods with ex. power menu, custom lockscreens or something like that you phone will probably bootloop after applying this mod.
This lockscreen is similar to stock TouchWiz lockscreen but it has removed "Swipe to unlock" text, unlock arrows and grey/glass backgrounds. It works with stock music player lockscreen controls.
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Features:
- resources.arsc file isn't compressed (like in stock Samsung ROM's)
- all files are zipaligned (like in stock Samsung ROM's)
- enabled CRT screen off animation in /framework-res.apk/res/values/bools.xml for versions with CRT animation
- Clean TouchWiz Lockscreen Mod
Download and apply via CWM:
For XWJVZ - with CRT animation enabled: Clean_lockscreen-CRT-JVZ-CWM3.zip (5.31 MB) (choose this if you want Clean Lockscreen and CRT off animation)
For XWJVZ - without CRT animation: Clean_lockscreen-JVZ-CWM3.zip (5.31 MB) (choose this if you only want Clean Lockscreen)
For XXJVT - with CRT animation enabled: Clean_lockscreen-CRT-JVT-CWM3.zip (5.42 MB) (choose this if you want Clean Lockscreen and CRT off animation)
For XXJVT - without CRT animation: Clean_lockscreen-JVT-CWM3.zip (5.42 MB) (choose this if you only want Clean Lockscreen)
For JVR: Clean_TW_lockscreen-CRT_off_anim-JVR-CWM3.zip (5.7 MB)
For JVS: Clean_lockscreen-CRT-JVS-CWM3.zip (5.47 MB)
To enable CRT screen off animation you have to enable animations in display settings. CRT screen off animation won't work if you have changed speed of animations (with Spare Parts or nitrality app).
If you want to remove this mod use this CWM update.zip:
For XWJVZ: REMOVE_Clean_lockscreen-CRT-JVZ-CWM3.zip (5.32 MB)
For XXJVT: REMOVE_Clean_lockscreen-CRT-JVT-CWM3.zip (5.43 MB)
For JVR: REMOVE_Clean_TW_lockscreen-CRT_off_anim-JVR-CWM3.zip (5.8 MB)
For JVS: REMOVE_Clean_lockscreen-CRT-JVS-CWM3.zip (5.49 MB)
Thanks to ock for posted tips.
JVR STOCK+ v1.41 glass/stock lockscreen with not working!!!!
Bo$s said:
If you have custom ROM or mods with ex. power menu, custom lockscreens or something like that you phone will probably bootloop after applying this mod.
Click to expand...
Click to collapse
10 char....
Works perfectly on stock JVR and semaphore 1.5.0
Thanks
If i flash this mod- http://forum.xda-developers.com/showthread.php?t=1196391
will i lose Clean Lockscreen ?!
dani_z said:
If i flash this mod- http://forum.xda-developers.com/showthread.php?t=1196391
will i lose Clean Lockscreen ?!
Click to expand...
Click to collapse
Yes.
10char.
update :
I sorted it out. Simply replace the android.policy.jar and android.policy.odex in framework folder and it works now.
Just a little suggestion, you may want to include the mentioned files for user like me, who is not on TW lockscreen originally.
The files I attached are created by d0ggy. Credits to him.
--------------------------------------------------------------------------
I am on JVR odexed rom with AOSP lockscreen. Flashed this and it is still giving me the AOSP lockscreen.
Do I need to flash to a theme with TW lockscreen before apply your mod?
Bo$s, I like your mod but I want to keep my own theme icons.
I am nearly completed integrating your transparent LS with my own theme.
But I have no clues of what to do to get rid of the "Sweep glass to unlock" text. Are you kind enough to tell me how to do it? Is it simply replacing a png file or what?
thanks
rickylcp said:
Bo$s, I like your mod but I want to keep my own theme icons.
I am nearly completed integrating your transparent LS with my own theme.
But I have no clues of what to do to get rid of the "Sweep glass to unlock" text. Are you kind enough to tell me how to do it? Is it simply replacing a png file or what?
thanks
Click to expand...
Click to collapse
You have to edit strings.xml in \framework-res.apk/res/values*/ folders. As you can see every language has it's own values folder. Open strings.xml for your language, find line
Code:
<string name="zzz_glass_lock_help_text_2">Sweep glass to unlock</string>
and replace it with
Code:
<string name="zzz_glass_lock_help_text_2" />
In my mod I've replaced this tag in all strings.xml files (for every language)
PS: If you want to replace them automatically (by regex) this can be useful to find them:
Code:
<string name="zzz_glass_lock_help_text_2" *[^/]*?/string>
Bo$s said:
You have to edit strings.xml in \framework-res.apk/res/values*/ folders. As you can see every language has it's own values folder. Open strings.xml for your language, find line
Code:
<string name="zzz_glass_lock_help_text_2">Sweep glass to unlock</string>
and replace it with
Code:
<string name="zzz_glass_lock_help_text_2" />
In my mod I've replaced this tag in all strings.xml files (for every language)
PS: If you want to replace them automatically (by regex) this can be useful to find them:
Code:
<string name="zzz_glass_lock_help_text_1" *[^/]*?>
Click to expand...
Click to collapse
thanks but I cannot find the location you mentioned.
there are no such location and file in the framework-res.apk
"strings.xml in \framework-res.apk/res/values*/ folders"
Please see the attachment.
rickylcp said:
thanks but I cannot find the location you mentioned.
there are no such location and file in the framework-res.apk
"strings.xml in \framework-res.apk/res/values*/ folders"
Please see the attachment.
Click to expand...
Click to collapse
Decompile framework-res.apk to see those folders. Use Apk_manager 5.0 beta or apktool.
Bo$s said:
You have to edit strings.xml in \framework-res.apk/res/values*/ folders. As you can see every language has it's own values folder. Open strings.xml for your language, find line
Code:
<string name="zzz_glass_lock_help_text_2">Sweep glass to unlock</string>
and replace it with
Code:
<string name="zzz_glass_lock_help_text_2" />
In my mod I've replaced this tag in all strings.xml files (for every language)
PS: If you want to replace them automatically (by regex) this can be useful to find them:
Code:
<string name="zzz_glass_lock_help_text_2" *[^/]*?>
Click to expand...
Click to collapse
are this the only changes you made for this clear lockscreen or have you done something else? I found your work real nice and thinking about integrate this in my mods.. Can you tell me what other changes you made?
regards
sphinx02 said:
are this the only changes you made for this clear lockscreen or have you done something else? I found your work real nice and thinking about integrate this in my mods.. Can you tell me what other changes you made?
regards
Click to expand...
Click to collapse
In framework-res.apk/res/drawable-hdpi/
Code:
zzz_unlock_arrow_*.png
zzz_unlock_blackbg.9.png
zzz_unlock_clockbg.9.png
are transparent (watch out for correct 9patch images).
Hey Bo$s,
thanks for your tips.. I've made a MOD but with still grey Background I think that is a little bit better for recognizing that you have to throw away the lockscreen..
I hope its ok for you that I used your png's!
Thank you ver much!
Regards..
Added JVS version, DL link in first post.
Can you integrate extended powermenu?
Can you intgrated extended power menu ...
Sent from my GT-I9000 using XDA Premium App
Can u share wallpaper
Thx..now it look nice..
Sent from my GT-I9000 using xda premium
wonsky21 said:
Can you integrate extended powermenu?
Click to expand...
Click to collapse
Sorry but no, smali/baksmali tools aren't fully compatible with Sammy framework and I don't want to modify .odex files.
djdeeles said:
Can u share wallpaper
Click to expand...
Click to collapse
Sure:

[HOW TO] ☆ Transparent homescreen statusbar on JellyBean ☆ for themers and everyone

[HOW TO] ☆ Transparent homescreen statusbar on JellyBean ☆ for themers and everyone
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
SGNII JB THEMES ☆ SGSIII JB THEMES ☆ SGSIII ICS THEMES ☆ NEXUS PRIME JB THEME ☆ NEW CENTER CLOCK GUIDE ☆ JB TRANSPARENT STATUSBAR GUIDE
- - - - - - - - - - - -
​
Hi everyone!
Because it looks like we have practically ready for official release sammy JellyBean seems to me it's time to make our themes better
Here's a simple guide how to make homescreen statusbar transparent:
1. You should decompile SystemUI.apk
2. Open /SystemUI/res/layout/tw_super_status_bar.xml and change android:background to 100% transparent:
Code:
<com.android.systemui.statusbar.phone.StatusBarWindowView [B]android:background="#[COLOR="Red"]00000000[/COLOR]"[/B] android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
3. Save /SystemUI/res/layout/tw_super_status_bar.xml
4. Open /SystemUI/res/values/drawables.xml and edit this line to get transparency you need, for example, 100% transparent:
Code:
<item type="drawable" name="status_bar_background">[B]#[COLOR="red"]00000000[/COLOR][/B]</item>
5. Save /SystemUI/res/values/drawables.xml
6. Recompile SystemUI.apk
Done... Now you have 100% transparent homescreen statusbar
A short hint:
#00000000 - 100% transparency
#3F000000 - 75% transparency
#7F000000 - 50% transparency
#BF000000 - 25% transparency
If you only need a ready-made statusbar you can find it here - [THEME][JB] 15 Toggle Buttons☆NEW Center Clock☆Transparent Statusbar☆and more
Enjoy! And if you have any questions, you can always ask me
If you like it you can always Rate (★★★★★) this Thread, Press Thanks button or simply buy me a beer! :good: and don't forget about credits
Maybe a stupi q, but the status bar is transparent only in home screen and not in apps?
Thx for a great guide.
Perka said:
Maybe a stupi q, but the status bar is transparent only in home screen and not in apps?
Thx for a great guide.
Click to expand...
Click to collapse
Yes in this case but to be honest it's better on my opinion because it was very ugly on ICS.
Nice! Will try to do this when (if ) I have time .
raubkatze said:
Yes in this case but to be honest it's better on my opinion because it was very ugly on ICS.
Click to expand...
Click to collapse
Yea looks kinda crappy in some apps, but in home screen its really nice
Thx for this, might use it in my jb rom later on if that is ok? Ofc credit and link to this thread will be posted.
Perka said:
Yea looks kinda crappy in some apps, but in home screen its really nice
Thx for this, might use it in my jb rom later on if that is ok? Ofc credit and link to this thread will be posted.
Click to expand...
Click to collapse
Of course It was shared for everyone
What about transparent notification pull down background? I cannot find the code to do this.
David Dee said:
What about transparent notification pull down background? I cannot find the code to do this.
Click to expand...
Click to collapse
You should change background source in tw_status_bar_expanded.xml, it could be android:background="@drawable/new_bg" for example, then add new_bg.png in /SystemUI/res/drawable-xhdpi and recompile SystemUI.apk
raubkatze said:
You should change background source in tw_status_bar_expanded.xml, it could be android:background="@drawable/new_bg" for example, then add new_bg.png in /SystemUI/res/drawable-xhdpi and recompile SystemUI.apk
Click to expand...
Click to collapse
Perfect, thanks! I was thrown off with the removal of tw_status_bar_tracking.xml in JB.
David Dee said:
Perfect, thanks! I was thrown off with the removal of tw_status_bar_tracking.xml in JB.
Click to expand...
Click to collapse
You're welcome! And in this case you can change background on the fly like in my MODs - http://forum.xda-developers.com/showthread.php?t=1840290
As always, perfect work my friend! :highfive:
Gesendet von meinem GT-I9300 mit Tapatalk 2
lichti1901 said:
As always, perfect work my friend! :highfive:
Gesendet von meinem GT-I9300 mit Tapatalk 2
Click to expand...
Click to collapse
Thanks my friend for your opinion!
Thanks for 100% trick transparent trick.
OK,
I've decomplied the systemui from cm10 (jellybean) and do not have the tw_super_status_bar.xml file. There is a super_status_bar.xml
There is no /SystemUI/res/values/drawables.xml ...there isn't even the values directory.
What are you guys using to edit these .xml's? I've got like wordpad++ and an actual .xml editor but its still all garbled.
Or is getting a transparent statusbar on CM10 just not happening?
btw I have a USCC S3, I understand this thread is for the international model.
If this solution isn't going to work for me, any where I can look to figure out how to do this?
Thanks everyone for your patience and help.
Am I wrong in saying that CM10 is jellybean?
apristel said:
OK,
I've decomplied the systemui from cm10 (jellybean) and do not have the tw_super_status_bar.xml file. There is a super_status_bar.xml
There is no /SystemUI/res/values/drawables.xml ...there isn't even the values directory.
What are you guys using to edit these .xml's? I've got like wordpad++ and an actual .xml editor but its still all garbled.
Or is getting a transparent statusbar on CM10 just not happening?
btw I have a USCC S3, I understand this thread is for the international model.
If this solution isn't going to work for me, any where I can look to figure out how to do this?
Thanks everyone for your patience and help.
Am I wrong in saying that CM10 is jellybean?
Click to expand...
Click to collapse
Yes, there is no tw_super_status_bar.xml in CM10 because it is not sammy based rom. You can try to edit super_status_bar.xml.
Do you quite understand what "decompile" means? You should use apktool to decompile .apk file.
raubkatze said:
Yes, there is no tw_super_status_bar.xml in CM10 because it is not sammy based rom. You can try to edit super_status_bar.xml.
Do you quite understand what "decompile" means? You should use apktool to decompile .apk file.
Click to expand...
Click to collapse
Well I can't get it apktool to work properly. This is really irritating. Can you tell me which java verison(s) I need to make apktool work?
OR I could just send you the .apk and you can give it a shot for me. Probably would take you 10 seconds!
Please help a brother out!
I've uploaded the systemui.apk to my server
http://www.asecomputerrepair.com/s3/SystemUI.apk
THANKS.
apristel said:
Well I can't get it apktool to work properly. This is really irritating. Can you tell me which java verison(s) I need to make apktool work?
OR I could just send you the .apk and you can give it a shot for me. Probably would take you 10 seconds!
Please help a brother out!
I've uploaded the systemui.apk to my server
http://www.asecomputerrepair.com/s3/SystemUI.apk
THANKS.
Click to expand...
Click to collapse
I can't help you because I'm not near my Mac now.
There are a lot of guides on XDA how apktool use. What about requirements - http://code.google.com/p/android-apktool/
raubkatze said:
I can't help you because I'm not near my Mac now.
There are a lot of guides on XDA how apktool use. What about requirements - http://code.google.com/p/android-apktool/
Click to expand...
Click to collapse
Weird, I have all the stuff installed already.
I just can't get apktool to work. fml.
Thanks for your help.
apristel said:
Weird, I have all the stuff installed already.
I just can't get apktool to work. fml.
Thanks for your help.
Click to expand...
Click to collapse
Btw have a look at this - http://forum.xda-developers.com/showthread.php?p=28366939
raubkatze said:
Btw have a look at this - http://forum.xda-developers.com/showthread.php?p=28366939
Click to expand...
Click to collapse
Yeah I saw that...
Code:
C:\a>apktool d framework-res.apk
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR0
W: Config flags size > 32. Exceeding bytes: -3FFD0000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR1
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01050001 dimen/thumbnail_height, config=-v13
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
is what I get.
I'm done for the night. Thanks for your help.
If you ever get a chance to look at the one i sent you let me know. its from the 9.15.12 cm nightly for the USCC s3
adampristel @ gmail.com on gtalk if you can get a look at it.
thanks

[TUTORIAL][SAMMY][JB] Theme Your Statusbar On Your Own

CREDITS ARE NECESSARY
A GUIDE TO THEME STATUSBAR IN A REALLY GOOD WAY (FOR SAMSUNG PHONES)
NOTE I WONT PROVIDE ANY SCREENIES FOR EVERY LINE!! -IT WOULD BE A GOOD CHALLENGE TO THEMERS
FIRSTLY BEFORE ANYTHING REMEMBER THIS IS AN ARGB FORMATTING FOR HEX CODING OF COLOURS
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I won’t show you HOW to do it I’ll just navigate WHAT files BELONG to WHAT
A Simple Example What I have themed
LET'S START
So List of Things you need
- SystemUI.apk (of your desired ROM)
- Framework-res.apk (of your desired ROM)
- Creativity (of your OWN MIND)
- APKTOOL (Apkmanager, ApkMulti-tool etc)
- Patience and Understanding
Copy your framework-res.apk and SystemUI.apk to your APKTOOL folder
Open cmd change directory (CD) to APKTOOL folder
Write this in cmd now
Code:
apktool if framework-res.apk
Decompile SystemUI.apk
Code:
apktool d SystemUI.apk
Navigate yourself to the Folder in APKTOOL folder … i.e. SystemUI
Go to /res/drawable-hdpi
We’ll start with editing the PULLDOWN BAR – NORMAL and PRESSED
This belongs to
tw_status_bar_close_off (NORMAL)
and
tw_status_bar_close_on” (PRESSED)
Click to expand...
Click to collapse
Then if you have a dual-Sim phone (just like my Grand)
You may change the SIM Switcher Backgrounds
“quick_panel_btn_default_normal.9.png”
and
“quick_panel_btn_default_press.9.png”
Click to expand...
Click to collapse
Now let’s come to Notification Expanded Background
There’s a notification_panel_bg.9.png IMG… just delete it and paste the image you want to put in background
AS
notification_panel_bg.png (Height and width should be by your phone’s resolution)
Click to expand...
Click to collapse
Now moving on to the BRIGHTNESS SLIDER ICON & BACKGROUND
This is the icon name
ic_sysbar_brightness.png
Click to expand...
Click to collapse
CONTINUED ON NEXT POST ​
For Background Navigate to – /res/layout
Open this file with notepad++
tw_status_bar_expanded.xml
Click to expand...
Click to collapse
(For dual phones)
tw_status_bar_expanded_dual.xml
Click to expand...
Click to collapse
Find (ctrl+f)
Code:
android:id="@id/brightness_controller"
Now you have to options … you can use directly COLOR (#argb)
USE HEX COLOR CODE TO SIMPLY CHANGE the BACKGROUND COLOUR
Edit
Code:
android:background=”#FF1e1e1e”
to ANY HEX COLOR CODE YOU WANT
OR Redirect it to an image by changing the HEX COLOR code to
Code:
android:background="@drawable/brightness_slider"
and paste your brightness_slider background of 480x56px (varies on different resolution – divide 480 by 1.5 and 56 by 1.5 for MDPI)
To drawable-hdpi
NEXT IS HEADER of the NOTIFICATION BAR (Might be the most wanted Editing)
Navigate to res/layout
tw_statusbar_expanded_header.xml
Click to expand...
Click to collapse
Probably the SECOND line of the XML would be for background (MAY VARY TO OTHER XMLS)
Change the
Code:
android:background="#ff000000"
to a color code of your choice or simply redirect it to an image
by changing the HEX code to
Code:
android:background="@drawable/notification_header_bg_exp"
and put your image file of 407x52 with the name
notification_header_bg_exp.png in drawable-hdpi
Now LETS move on to Some Small Changes
Navigate to res/Values
Open Colors.xml
Change HEX CODE for CLEAR BUTTON TEXT
Code:
<color name="tw_status_bar_clear_btn_text">#ff000000</color>
Open drawables.xml
Change the HEX CODE for HEADER OF STATUSBAR BACKGROUND
Code:
<item type="drawable" name="status_bar_background">#ffffffff</item>
Change the HEX CODE for NOTIFICATIONs BACKGROUND
Code:
<item type="drawable" name="tw_notification_background_null">#ffffffff</item>
<item type="drawable" name="tw_notification_background_pressed">#ff6b6b6b</item>
THAT'S ALL FOR SYSTEMUI.APK
Compile SystemUI.apk
Code:
apktool b SystemUI
then
Copy the META-INF folder and AndroidManifest.xml from original to the new APK using WINRAR/7-zip
​​Lets go to framework ... CONT on NEXT POST
Decompile framework-res.apk
Code:
apktool d framework-res.apk
Navigate to res/values/styles.xml
FIND
Code:
<style name="TextAppearance.StatusBar.EventContent" parent="@style/TextAppearance.StatusBar.EventContent">
Change the HEX code of <item name="android:textColor">#ffffffff</item> to your CHOICE Color
Probably the next line would be
Code:
<style name="TextAppearance.StatusBar.EventContent.Title" parent="@style/TextAppearance.StatusBar.EventContent.Title">
Change the HEX code of <item name="android:textColor">#ffffffff to your CHOICE Color
Okay so, let’s move on the Notification bar COMMON icons ( missed calls etc)
you would find some files related
Code:
stat_notify_*.png
change them for their respective icons
Recompile the framework-res.apk
Code:
apktool b framework-res
Copy the META-INF folder and AndroidManifest.xml from original to the new APK using WINRAR/7-zip
So That's It for now .... Thanks and Regards ​
Great guide bro, but should be in themes n apps section
Chotudevil says
chotu222 said:
Great guide bro, but should be in themes n apps section
Chotudevil says
Click to expand...
Click to collapse
Oops my mistake. .. let the MOD Move the Thread
This is preety good concept
But I am confused with how should I start... I hav downloaded apkmultitool
Sent from my GT-I9082 using Tapatalk 2
awesome tutorial.
Resonance28295 said:
This is preety good concept
But I am confused with how should I start... I hav downloaded apkmultitool
Sent from my GT-I9082 using Tapatalk 2
Click to expand...
Click to collapse
Open multi tool ... install framework-res.apk
decompile system ui.apk
decompile framework-res.apk
start your work
very very good tutorial ...
Sent from my GT-I9082 using xda premium
Can anyone make a sony xperia theme for galaxy grand (I mean original same as xperia z or sl) Thnx in advance!
:fingers-crossed:
Thanks !

Procedure for altering xml files in Systemui.apk

I've been attempting to get into theming, one thing i'd like to do is make the notification background transparent like I've seen in some roms. However, I haven't been able to edit the xml files necessary. I've tried notepad++ and some xml editors but I'm just seeing garbled stuff. Would someone give me some pointers?
Thanks
Sent from my HTC One using Tapatalk 2
You need to decompile the apk before you can edit xml files. There are many ways to do this, APK Manager etc.
sensationfan623 said:
I've been attempting to get into theming, one thing i'd like to do is make the notification background transparent like I've seen in some roms. However, I haven't been able to edit the xml files necessary. I've tried notepad++ and some xml editors but I'm just seeing garbled stuff. Would someone give me some pointers?
Thanks
Sent from my HTC One using Tapatalk 2
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?p=39289948
Thanks for the replies! This was great. Now I just need to figure out what to change to get what I want
sensationfan623 said:
Thanks for the replies! This was great. Now I just need to figure out what to change to get what I want
Click to expand...
Click to collapse
If your wanting the notification shade transparent you need to look in systemui/res/layout/statusbar_expanded.xml. Top line in the file just look for this
Code:
android:background="@*android:color/black"
replace it with
Code:
android:background="#88000000"
of course you need to change the code to what you want 88000000 is just a semi transparent color as an example. the 4.2.2 eqs is another story. I can tell you how to do that too if you want.
rayford85 said:
If your wanting the notification shade transparent you need to look in systemui/res/layout/statusbar_expanded.xml. Top line in the file just look for this
Code:
android:background="@*android:color/black"
replace it with
Code:
android:background="#88000000"
of course you need to change the code to what you want 88000000 is just a semi transparent color as an example. the 4.2.2 eqs is another story. I can tell you how to do that too if you want.
Click to expand...
Click to collapse
Thanks for this, always wanted to try that.
Hey Rayford,
Would it be possible to change the 'status_bar_close_on' on SystemUI to look
like the one on the GE roms, where it turns blue when pressed?
I know how to decompile and change stuff inside the apk.
Just not sure what to look for
Thanks
nightrainbow said:
Thanks for this, always wanted to try that.
Hey Rayford,
Would it be possible to change the 'status_bar_close_on' on SystemUI to look
like the one on the GE roms, where it turns blue when pressed?
I know how to decompile and change stuff inside the apk.
Just not sure what to look for
Thanks
Click to expand...
Click to collapse
I'm sure you could, but I've never tried it. Wouldn't know where to look
rayford85 said:
If your wanting the notification shade transparent you need to look in systemui/res/layout/statusbar_expanded.xml. Top line in the file just look for this
Code:
android:background="@*android:color/black"
replace it with
Code:
android:background="#88000000"
of course you need to change the code to what you want 88000000 is just a semi transparent color as an example. the 4.2.2 eqs is another story. I can tell you how to do that too if you want.
Click to expand...
Click to collapse
If you're offering sure! That would look cool
Sent from my HTC One using Tapatalk 2
Thanks for offering some advice.
Sent from my HTC One using Tapatalk 2
No problem I was lucky enough to have guys like @he_stheone64 putting out tutorials when I started theming
4.2.2 eqs go to layouts folder in systemui find quick_settings.xml & quick_settings_tile.xml & find the background tag like this
Code:
android:background="@drawable/notification_panel_bg"
change it to a transparent color like....
Code:
android:background="#99000000"
do the same thing in both xml's for the background tag.
last go to res/values/drawables.xml & find this
Code:
<item type="drawable" name="quick_settings_tile_background">#ff161616</item>
change to...
Code:
<item type="drawable" name="quick_settings_tile_background">#99000000</item>
that's it for transparent quicksettings.
This is a lot easier than the process of elimination I've been going through. I've always liked you Viper guys, had it on my One S.
Sent from my HTC One using Tapatalk 2
rayford85 said:
No problem I was lucky enough to have guys like @he_stheone64 putting out tutorials when I started theming
4.2.2 eqs go to layouts folder in systemui find quick_settings.xml & quick_settings_tile.xml & find the background tag like this
Code:
android:background="@drawable/notification_panel_bg"
change it to a transparent color like....
Code:
android:background="#99000000"
do the same thing in both xml's for the background tag.
last go to res/values/drawables.xml & find this
Code:
<item type="drawable" name="quick_settings_tile_background">#ff161616</item>
change to...
Code:
<item type="drawable" name="quick_settings_tile_background">#99000000</item>
that's it for transparent quicksettings.
Click to expand...
Click to collapse
For someone who is just starting this whole theming business, do your have any recommendations on where to start? I could just poke around like I have been, but some direction would speed up the learning process
Sent from my HTC One using Tapatalk 2
nightrainbow said:
Thanks for this, always wanted to try that.
Hey Rayford,
Would it be possible to change the 'status_bar_close_on' on SystemUI to look
like the one on the GE roms, where it turns blue when pressed?
I know how to decompile and change stuff inside the apk.
Just not sure what to look for
Thanks
Click to expand...
Click to collapse
Replace the .9 images and that should work. If not then you need to decompile both systemui.apk and put in the raw .9.png's of the GE one into the Sense one and compile it.. I would suggest Removing the carrier on the pulldown, should be located in the statusbarexpanded.xml I did a similar mod to my old Note II.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
nightrainbow said:
Thanks for this, always wanted to try that.
Hey Rayford,
Would it be possible to change the 'status_bar_close_on' on SystemUI to look
like the one on the GE roms, where it turns blue when pressed?
I know how to decompile and change stuff inside the apk.
Just not sure what to look for
Thanks
Click to expand...
Click to collapse
Just had a very quick look, but you can try the following:
Look for status_bar_expanded.xml in layout
Search for
PHP:
android:id="@id/handle" android:background="@drawable/status_bar_close_on"
The reference for the bg here is to the png in xxhdpi folder. What you need to try is changing that bg reference to the status_bar_close.xml in drawables folder, which is still there in Sense version. The code in status_bar_close.xml in drawables folder will help you, since it will choose the resources based on the state, see the following code snippet. I`m just explaining this, so you understand what you are doing here. So no need to change anything in that xml.
PHP:
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/status_bar_close_on" />
<item android:drawable="@drawable/status_bar_close_off" />
</selector>
So change the code in status_bar_expanded.xml to:
PHP:
android:id="@id/handle" android:background="@drawable/status_bar_close"
Now also add a status_bar_close_off.9.png to xxhdpi folder and amend the status_bar_close_on.9.png how you want to see it (or grab both pngs from GE SystemUI, those are in xhdpi folder there). This makes sure you have both the resources for on and off state available, which are pulled now by status_bar_close.xml, since you refered to that xml as background in your layout file. I did not test it, since I`m out traveling since nearly 2 weeks now, so no time atm.
can the guide linked be used to hide the statusbar clock ?
he_stheone64 said:
Just had a very quick look, but you can try the following:
Look for status_bar_expanded.xml in layout
Search for
PHP:
android:id="@id/handle" android:background="@drawable/status_bar_close_on"
The reference for the bg here is to the png in xxhdpi folder. What you need to try is changing that bg reference to the status_bar_close.xml in drawables folder, which is still there in Sense version. The code in status_bar_close.xml in drawables folder will help you, since it will choose the resources based on the state, see the following code snippet. I`m just explaining this, so you understand what you are doing here. So no need to change anything in that xml.
PHP:
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/status_bar_close_on" />
<item android:drawable="@drawable/status_bar_close_off" />
</selector>
So change the code in status_bar_expanded.xml to:
PHP:
android:id="@id/handle" android:background="@drawable/status_bar_close"
Now also add a status_bar_close_off.9.png to xxhdpi folder and amend the status_bar_close_on.9.png how you want to see it (or grab both pngs from GE SystemUI, those are in xhdpi folder there). This makes sure you have both the resources for on and off state available, which are pulled now by status_bar_close.xml, since you refered to that xml as background in your layout file. I did not test it, since I`m out traveling since nearly 2 weeks now, so no time atm.
Click to expand...
Click to collapse
I'm going to try it
I'll let you know
Appreciate it

[GUIDE] KitKat Style Gradient StatusBar

Hi Guys, Today I am going to show you how to make KitKat Style Gradient StatusBar.
Preview:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Disclaimer: I and XDA are not responsible for the damage of your phone. Take necessary backup if you are indoubt.
Requirements:
SystemUI.apk from you ROM
SystemUI.zip from here
Know how to Decompile/Recompile
Let's start:
1. Download and extract SystemUI.zip
2. Decompile SystemUI.apk
3. Go to res/drawable
4. Copy gradient_bg.xml from SystemUI.zip there
5. Open res/layout/status_bar.xml
6. In the second line find this code
Code:
android:background="#ff000000"
and change it to
Code:
android:background="@drawable/gradient_bg"
7. Recompile SystemUI.apk
Push it into system/app
Set proper permissions(rw-r--r--)
Credits:
CarlDeanCatabay
Reserved 01
Reserved 01
Awesome! nice work @MuSaddiq
Making GFX Devs Proud :good::good::good:
DC07 said:
Awesome! nice work @MuSaddiq
Making GFX Bandits & Devs Proud :good::good::good:
Click to expand...
Click to collapse
Thanks
cool mod frnd!!!!!
Nice mod mate. Though when I get notifications statusbar goes to the same black background. I tried modding status_bar_latest_event.xml but still the same. Any idea of what may be the problem?
Uchooseme said:
Nice mod mate. Though when I get notifications statusbar goes to the same black background. I tried modding status_bar_latest_event.xml but still the same. Any idea of what may be the problem?
Click to expand...
Click to collapse
Can u show me your status_bar.xml ?
MuSaddiq said:
Can u show me your status_bar.xml ?
Click to expand...
Click to collapse
No need, I just forgot to change the background in line 11 of my status_bar.xml. Turns out the status bar notifications and the normal status bar had different backgrounds.
Thanks anyway :good:
Good job, Bro:good:
CM7 on this method does not work?
Statusbar disappears..
Fantom001 said:
CM7 on this method does not work?
Statusbar disappears..
Click to expand...
Click to collapse
Sorry, But I don't know that this will work on cm or not.
Sent from my GT-S5360 using xda app-developers app
Fantom001 said:
CM7 on this method does not work?
Statusbar disappears..
Click to expand...
Click to collapse
There is no problem in this guide.
This will even work on any device.
You have done something wrong.
Sent from my GT-S5360 using Tapatalk 2
Fantom001 said:
CM7 on this method does not work?
Statusbar disappears..
Click to expand...
Click to collapse
san122 said:
There is no problem in this guide.
This will even work on any device.
You have done something wrong.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
I dont think this will work on cm7 as you need to hack the systemui and then you need to build a theme with a transparent statusbar to apply in theme chooser
I wrote a guide all about this quite some time ago
you can find it
http://forum.xda-developers.com/showthread.php?t=2204389
Why dont you use tinted status bar of xposed modules
i tried ur method...but how to remove that line???
vishal1404 said:
i tried ur method...but how to remove that line???
Click to expand...
Click to collapse
I think its come from other xml file like me in first try
G S c u l e r l o r
vishal1404 said:
i tried ur method...but how to remove that line???
Click to expand...
Click to collapse
Check in dimens.xml of framework
About status bar hieght
vishal1404 said:
i tried ur method...but how to remove that line???
Click to expand...
Click to collapse
That is divider for statusbar and launcher.
To remove that, install any other stock launcher which supports transparency.
Or
Decompile your launcher
open res/values/styles.xml
add this style
Code:
<style name="My.Theme" parent="@*android:style/Theme.Wallpaper.NoTitleBar">
<item name="android:windowContentOverlay">@null</item>
</style>
now open AndroidManifest.xml
find this line (this line may be different in your rom)
Code:
<application android:label="@string/application_name" android:icon="@drawable/ic_launcher_home" android:name="LauncherApplication">
add this code in that line
Code:
android:theme="@style/My.Theme"
Now that line will look like this
Code:
<application [COLOR="Red"]android:theme="@style/My.Theme"[/COLOR] android:label="@string/application_name" android:icon="@drawable/ic_launcher_home" android:name="LauncherApplication">
Recompile
Push it in to system/app
Set proper permissions(rw-r--r--)
Sent from my GT-S5360 using xda app-developers app
MuSaddiq said:
That is divider for statusbar and launcher.
To remove that, install any other stock launcher which supports transparency.
Or
Decompile your launcher
open res/values/styles.xml
add this style
Code:
<style name="My.Theme" parent="@*android:style/Theme.Wallpaper.NoTitleBar">
<item name="android:windowContentOverlay">@null</item>
</style>
now open AndroidManifest.xml
find this line (this line may be different in your rom)
Code:
<application android:label="@string/application_name" android:icon="@drawable/ic_launcher_home" android:name="LauncherApplication">
add this code in that line
Code:
android:theme="@style/My.Theme"
Now that line will look like this
Code:
<application [COLOR="Red"]android:theme="@style/My.Theme"[/COLOR] android:label="@string/application_name" android:icon="@drawable/ic_launcher_home" android:name="LauncherApplication">
Recompile
Push it in to system/app
Set proper permissions(rw-r--r--)
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
kk...thanks for the reply....and i would try.....but i am doing it with my phone so it takes lot of time.....anyways changed the framework with the semi transparent mod provided by zionnear for lenox.....AND yes it removed the divider line
The gradient isn't perfect on my ICS Xperia Ray. It doesn't blend in 100% (see attachment).

Categories

Resources