[MOD][TUT] Animated HOME Softkey In Nav Bar - Sony Cross-Device Development Themes and Apps

This thread made the Portal! Woo!
https://www.xda-developers.com/animated-gif-home-button-android/
{
"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"
}
(Thanks To @Tulsadiver for the above image)​
Want an animated HOME softkey in your navbar? Of course you do!
This is a relatively simple mod, which should work on any rom and any version of Android. Android P, with its gesture control navbar setup, is a different matter but I'll deal with that another time.
Follow the simple steps below to find out how to do this mod. Any problems, just let me know!
Step 1 - Decompile Your "SystemUI.apk"
The first thing you need to do is, as it says above, is to decompile your deodexed SystemUI.apk. I'm not going to tell you how to do that here, because there are already a lot of tutorials and guides for that on xda. There's also a lot of decompiling tools you can use. I personally recommend using Tickle My Android([url]https://forum.xda-developers.com/showthread.php?t=1633333[/URL]). It's fast, user-friendly, makes flashable ZIP's and rumour has it that the developer is devastatingly handsome..
If your rom isn't deodexed, this rom won't work. You have to deodex it first. By a strange coincidence, Tickle My Android can deodex roms too. What a clever developer they must be!
Once you've done this, move onto Step 2!
Step 2 - Add The Smali Files
Now we need to add the new smali files for this. However these aren't my files, somebody else made them so you'll need to get them from the attachment at the bottom of this post here: [url]https://forum.xda-developers.com/android/software-hacking/dev-custom-views-t3174519[/URL]
This code was written by @Morningstar and I can't take any credit for it. So you'll need to make sure you press the "Thanks" button at the bottom of his post. If you don't. this mod won't work!!
Extract the "SelfAnimatingImageView.smali" file from the ZIP and add it to your decompiled APK at "SystemUI.apk\smali\com\android\morningstar\". You'll need to make those folders if they're not there already.
Step 3 - Add The Image Files
In the second post in this thread, you'll find a few animations that I've put together for you to download. Just download the ZIP and add the PNG image files to the appropriate "drawable-?dpi" folder. Which folder you need to put them into depends on your particular phone.
If you don't like any of the animations on offer, you can make your own. All I've done is use Google Image Search to find some fun GIF's and online tools like EZGIF ([url]https://ezgif.com/split[/URL]) to turn the GIF into a collection of individual images.
Of course, you could always make your own images if you wanted..but I don't have the artistic ability for that!
If you are using your own animation, make sure you add the "transparent.png" file to your "drawable-?dpi" folder anyway. You'll need it in Step 5..
Step 4 - Edit The Drawable XML File
In the previous step, you put a collection of images into your decompiled APK to serve as your animation. Now you need an XML file that tells Android which files to use for your animation, as well as how quickly to cycle through them.
For this, go back to the ZIP you downloaded and copy the "frame_anim.xml" to your "res\drawable" folder. If you're using your own PNG files, you can still use this file or make your own.
The "frame_anim.xml" looks something like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="[url]http://schemas.android.com/apk/res/android">[/url]
<item android:duration="100" android:drawable="@drawable/frame_0" />
<item android:duration="100" android:drawable="@drawable/frame_1" />
<item android:duration="100" android:drawable="@drawable/frame_2" />
<item android:duration="100" android:drawable="@drawable/frame_3" />
</animation-list>
Each "item" line represents a different image. The "android:drawable" bit contains the name of the image being displayed the "android:duration" bit says how many milliseconds it's on display for."
If you're using your own animation, just add/delete/edit these lines as you need.
Don't forget to save when you're done!
Step 5 - Edit The Layout XML
We're nearly there, I promise! Just this one step left to do and we can start recompiling. This is the tricky one though - this is the part where we actually put our animation into the navbar, replacing the image for the HOME softkey.
What makes this extra difficult is that Google keep changing where the code we need to change is. In most roms, you'll find the code that controls the HOME softkey in "layout\navigation_bar.xml". In some modern roms, it might actually be in "layout\home.xml"!
So you'll need to do some detective work. You need to find which layout XML file contains a line that looks like this:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="center" android:id="@id/home_button" android:layout_width="0.0dip" android:layout_height="0.0dip" android:scaleType="center" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" />
Let me rearrange that to make it a bit easier to read..
Code:
<com.android.systemui.statusbar.policy.KeyButtonView
android:layout_gravity="center"
android:id="@id/home_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="center"
android:contentDescription="@string/accessibility_home"
systemui:keyCode="3" />
See those references to "home" and that bit about "systemui:keyCode="3""? This is the line of code that displays the HOME softkey. Your code might not look exactly like that but it'll be close.
We can't make this display an animation, Android just isn't set up for it. So what we actually need to do is hide this HOME softkey, put a new one in the same place that's the same size but invisble, then put our animation underneath that. Sounds complicated, but all we need is a FrameLayout..
Code:
<FrameLayout android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="center" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/transparent" android:scaleType="center" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" />
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="center" android:id="@id/home_button" android:layout_width="0.0dip" android:layout_height="0.0dip" android:scaleType="center" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" />
<com.android.morningstar.SelfAnimatingImageView android:layout_gravity="center" android:id="@+id/frame_animation" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/frame_anim" />
</FrameLayout>
Take a moment to look at that above code. You can see how three different things are piled on top of each other. When the app is running, you won't see that. All you'll see is your animated image where your HOME softkey is. Neat, no?
(For more about FrameLayouts and other XML tricks, you could do worse than check out my short guide here: [url]https://forum.xda-developers.com/general/xda-university/xml-101-xml-modding-easy-t2929816[/url])
So just replace your HOME softkey line of code with the code above. You may need to make some changes for your particular setup. Every rom is different.
Save and move onto the next step.
Step 6 - Recompile The Modded APK
This is it - the last stage. All you need to do now is recompile your SystemUI.apk file and put it back to your phone.
I recommend doing this in recovery as you'll need to wipe the Dalvik cache, otherwise the new smali won't be active.
I also recommend doing it in recovery because I always recommend DOING A BACKUP FIRST!!
Once you've done the above steps, you should now have an animated HOME softkey in your navbar. But, if you have any problems, just let me know and I'll see what I can do to help.

These are some of the animations that I've put together for this mod. If you like them, just download the appropriate ZIP file from the attachments and add them to your decompiled APK as I mentioned in the previous post.
If you don't like them, let me know what you would like and I'll see what I can do for you.
If you've made your own animation and you think others might enjoy it, let me know and I'll be more than happy to add it to this collection. Crediting you, of course.
If this mod proves popular, I'll see what other animations I can come up with. There aren't many right now and I hadn't really realised just how many of them are of Disney's Stitch...
BATMAN ICON -
- PIKACHU
MOVING TRIANGLE -
- UK FLAG (found at http://www.3dflagsplus.com/)
USA FLAG (found at http://www.3dflagsplus.com/) -
- INDIA FLAG (found at http://www.3dflagsplus.com/)
TABBY CAT -
- BLACK CAT
RYU (from Street Fighter) -
- STITCH EATING
STITCH WEARING A..ER..'HAT' -
- STITCH HULA DANCING​
Enjoy!

Congrats mate. . Great job as always.... [emoji106][emoji106][emoji106]
Sent from my SM-G955F using Tapatalk

Nice MOD.Keep It Up!

Awesome stuff sir

Is it possible to have oreo's animated home button in stock nougat rom?

I've added a few flag icons for people to try. There's a website that has loads of these, for lots of different countries. Definitely worth a look!
mlleemiles said:
Is it possible to have oreo's animated home button in stock nougat rom?
Click to expand...
Click to collapse
In theory, yes. We could use this mod and adjust the smali so the animation only runs when the home button is touched. That's a little beyond me, I'm more of a XML modder, but it's certainly a possibility.
Or we could take the relevant files from an Oreo rom and place them in your Nougat one. It'll involve a bit of work adjusting those files but, again, it's theoretically possible.

Amazing mod buddy..... Any idea on how to add menu key? I did add but doesnt get themed when nav bar is themed.

whalesplaho said:
Amazing mod buddy..... Any idea on how to add menu key? I did add but doesnt get themed when nav bar is themed.
Click to expand...
Click to collapse
You can manually add the menu key by adding a line with the relevant keyCode. @Rajeev did a very nice tutorial about doing this sort of thing a few years ago for the original Xperia Z.
But it's pretty unlikely that it'll be themed. Google have been moving away from the menu softkey since ICS. Apps are supposed to have a settings button in the Action Bar at the top of the screen now, or in a hamburger menu. The menu softkey doesn't really officially exist anymore.
If you've got a theme that has a resource in it for replacing the menu icon and it doesn't work, you'll need to speak to whoever created the theme to see if they have any ideas.

Ticklefish said:
I've added a few flag icons for people to try. There's a website that has loads of these, for lots of different countries. Definitely worth a look!
In theory, yes. We could use this mod and adjust the smali so the animation only runs when the home button is touched. That's a little beyond me, I'm more of a XML modder, but it's certainly a possibility.
Or we could take the relevant files from an Oreo rom and place them in your Nougat one. It'll involve a bit of work adjusting those files but, again, it's theoretically possible.
Click to expand...
Click to collapse
I tried, without success, which made me start a post in Z5 Compact forum: https://forum.xda-developers.com/z5-compact/help/request-animated-pixel-navbar-z5-compact-t3699417
Sadly no one is there to help..

Ticklefish said:
You can manually add the menu key by adding a line with the relevant keyCode. @Rajeev did a very nice tutorial about doing this sort of thing a few years ago for the original Xperia Z.
But it's pretty unlikely that it'll be themed. Google have been moving away from the menu softkey since ICS. Apps are supposed to have a settings button in the Action Bar at the top of the screen now, or in a hamburger menu. The menu softkey doesn't really officially exist anymore.
If you've got a theme that has a resource in it for replacing the menu icon and it doesn't work, you'll need to speak to whoever created the theme to see if they have any ideas.
Click to expand...
Click to collapse
Is this animation affect battery Life????

Definitely gonna attempt this on one of my throwaway phones.

Thanks mate for this awesome post. Can you please make some flashable zip or magisk module for the same for noobs like me?

CPU usage?

Hey man, the idea is awesome!!
Since you mentioned deodexed ROM is needed, I'm wondering whether Resurrection Remix Oreo(official build) lies in which category: odexed or deodexed??
Want to proceed with full knowledge, partial one is quite vulnerable...
Thanks buddy, for this amazing work!!

mlleemiles said:
I tried, without success, which made me start a post in Z5 Compact forum: https://forum.xda-developers.com/z5-compact/help/request-animated-pixel-navbar-z5-compact-t3699417
Sadly no one is there to help..
Click to expand...
Click to collapse
Looking into this, it seems you can't just take the code from the Pixel and put it into your rom as 7.0 doesn't have the required API's for this mod to work.
You could use the animated icon code from this thread but you will need to make the drawable images yourself. And work out how to edit the smali so the animation only starts when you press the icon.
Tricky but not impossible, I think.
@vjnexus said:
Is this animation affect battery Life????
Click to expand...
Click to collapse
Technically, yes. Having a moving icon will use more power than a stationary one.
It shouldn't consume much, though. The CPU isn't having to work very hard. But if you do find your battery going down too fast, just go back to your original SystemUI.apk.
dheeraj.radke said:
Thanks mate for this awesome post. Can you please make some flashable zip or magisk module for the same for noobs like me?
Click to expand...
Click to collapse
Flashable ZIP's wouldn't really work, sadly. Because every rom has a different SystemUI.apk with different XML, I would have to make a ZIP for every single one..
And Magisk is a bit beyond me, right now.
Give the mod a try. It's relatively simple and I'm always happy to help if you have trouble.
And, if you've made a backup, you always have a way to fix things if it doesn't work.
alreadyregistered said:
CPU usage?
Click to expand...
Click to collapse
A little, yes. Look at my reply a few lines up.
Sent from my Sony Xperia XA1 using XDA Labs

nishkhanna said:
Hey man, the idea is awesome!!
Since you mentioned deodexed ROM is needed, I'm wondering whether Resurrection Remix Oreo(official build) lies in which category: odexed or deodexed??
Want to proceed with full knowledge, partial one is quite vulnerable...
Thanks buddy, for this amazing work!!
Click to expand...
Click to collapse
I don't know, sorry. But I'd assume that a third-party rom, especially one made by modders for modders, would be deodexed.
If you have a SystemUI.odex or SystemUI.vdex in your SystemUI folder or subfolders then your rom is odexed and you'll need to deodex it to do this mod.
Sent from my Sony Xperia XA1 using XDA Labs

Will there be any serious probs if i messed up at one step or other in this guide?

jaspad1710 said:
Will there be any serious probs if i messed up at one step or other in this guide?
Click to expand...
Click to collapse
Nope. As long as you make a backup before putting your modified APK back on your phone, you'll be fine.

Ticklefish said:
You can manually add the menu key by adding a line with the relevant keyCode. @Rajeev did a very nice tutorial about doing this sort of thing a few years ago for the original Xperia Z.
But it's pretty unlikely that it'll be themed. Google have been moving away from the menu softkey since ICS. Apps are supposed to have a settings button in the Action Bar at the top of the screen now, or in a hamburger menu. The menu softkey doesn't really officially exist anymore.
If you've got a theme that has a resource in it for replacing the menu icon and it doesn't work, you'll need to speak to whoever created the theme to see if they have any ideas.
Click to expand...
Click to collapse
Thanks for tha clarification bro... I understand better now!

Related

Post Your Theming Problem Here

Hello guys..
seems like some people getting hard tie when doing advanced theming..
so post your problem here..
you can attach screenshoot if possible..
I'll try to help if I can
but before that you need to know about compiling and decompiling using apktool or something similar first, so this could help me easier to answer them..
note : this thread won't be long, so I need someone to continue this thread later
How to add power menu option (recovery,reboot,etc)
Univos said:
How to add power menu option (recovery,reboot,etc)
Click to expand...
Click to collapse
some roms like coderom v2 has it.
Jun Hong said:
some roms like coderom v2 has it.
Click to expand...
Click to collapse
I know, but how to do that?
Univos said:
I know, but how to do that?
Click to expand...
Click to collapse
what do u mean how to do that? just flash the rom as its preinstalled.
or try looking into this thread http://forum.xda-developers.com/showthread.php?t=1115363
Jun Hong said:
what do u mean how to do that? just flash the rom as its preinstalled.
or try looking into this thread http://forum.xda-developers.com/showthread.php?t=1115363
Click to expand...
Click to collapse
I mean, how to add power menu option? (with base firmware gingerbread xwkpn)
http://forum.xda-developers.com/showpost.php?p=16579650&postcount=44
I think he meant compiling one for himself. I for one would prefer if the power menu had a mobile network trigger, but have no idea how to do that.
seilent, how to add our remove clock from the top bar?
{
"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 was wondering how i could change this area (see pic). I know that these files are located in SystemUI.apk but i dont know which belongs to which.
I would like to know the filename for these:
Statusbar, Carrier(Tele2) area, quicksetting background.
Also, is there any way to put a clock next to the carrier text?
Thanks in advance.
edit: How do i make it flashable?
Univos said:
I mean, how to add power menu option? (with base firmware gingerbread xwkpn)
Click to expand...
Click to collapse
You can find a nice tutorial HERE
Lovetz said:
seilent, how to add our remove clock from the top bar?
Click to expand...
Click to collapse
you need to edit the \SystemUI\res\layout\status_bar.xml
then remove the line that contain this :
Code:
<com.android.systemui.statusbar.Clock
and poff, it's gone
QNBT said:
I was wondering how i could change this area (see pic). I know that these files are located in SystemUI.apk but i dont know which belongs to which.
I would like to know the filename for these:
Statusbar, Carrier(Tele2) area, quicksetting background.
Also, is there any way to put a clock next to the carrier text?
Thanks in advance.
edit: How do i make it flashable?
Click to expand...
Click to collapse
Statusbar belongs to statusbar_background.png or .9.png. Also you need to modify \SystemUI\res\layout\status_bar.xml open it with notepad++ and you'll see line like this :
Code:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="[SIZE="3"][B]#ff000000[/B][/SIZE]" android:focusable="true" android:descendantFocusability="afterDescendants"
look at the #ff000000 part, by default it shows that our statusbar background is just a color, so we need to change it to image.. so replace it with
Code:
@drawable/statusbar_background
the line would look like this :
Code:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="[SIZE="3"][B]@drawable/statusbar_background[/B][/SIZE]" android:focusable="true" android:descendantFocusability="afterDescendants"
Carrier located in status_bar_expanded.xml in line 8 that contain something like this :
Code:
<com.android.systemui.statusbar.CarrierLabel
I think it's quite possible to place clock next to it..
try to add this below that line..
Code:
<com.android.systemui.statusbar.Clock android:textSize="24.0dip" android:textColor="#ff848484" android:layout_gravity="center_vertical" android:paddingLeft="4.0dip" 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" />
It should look similar like this :
Code:
<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:paddingLeft="4.0dip" 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" />
<com.android.systemui.statusbar.Clock android:textSize="24.0dip" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:paddingLeft="4.0dip" 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" />
but I haven't tried it by myself
Quicksetting background located in \SystemUI\res\drawable-mdpi\quickpanel_quick_settings_background.png or .9.png
you can change it, but if you change the filetype from .9.png to .png and vice versa (like this) quickpanel_quick_settings_background.9.png to quickpanel_quick_settings_background.png..
you need to delete build and dist folder before compiling the file, otherwise you'll se FC in statusbar
To make it flashable I just simply take working update.zip file and change the contents that's my favorite, easiest and faster way for me
Thanks a lot! Let's see how it turns out!
seilent said:
To make it flashable I just simply take working update.zip file and change the contents that's my favorite, easiest and faster way for me
Click to expand...
Click to collapse
Lets say i want to change one image file, but it is indexed, can i change the indexed file with a non indexed one?
if not, is there any specific settings when indexing?
stranxk said:
Lets say i want to change one image file, but it is indexed, can i change the indexed file with a non indexed one?
if not, is there any specific settings when indexing?
Click to expand...
Click to collapse
indexed..
did you mean indexed in public.xml or indexed colors..?
if indexed in theme (which means public.xml) it works but you need to modify the xml where the original (indexed one) is used..
if it comes about color, that should be no problem..
seilent said:
indexed..
did you mean indexed in public.xml or indexed colors..?
if indexed in theme (which means public.xml) it works but you need to modify the xml where the original (indexed one) is used..
if it comes about color, that should be no problem..
Click to expand...
Click to collapse
colors, sorry... so, changing indexed color files with non indexed ones is fine?, sorry but i didn't understand, my english isn't very good hehe
stranxk said:
colors, sorry... so, changing indexed color files with non indexed ones is fine?, sorry but i didn't understand, my english isn't very good hehe
Click to expand...
Click to collapse
it should be fine when you compiling is success
Hi, theming master! How to make black background in any apk files transparent, just like Jun Hong's transparent TouchWiz app drawer? Thanks in advance
I guess its a compiling issue
I have this problem in my themes that the slide unlock's parts are in different colour, i know that this problem has been rectified by fla.sh as he shows it in one of his screenshots. I understand that his framework-res.apk was quite large and mine is less than 50% of it. I guess this problem has come due to compilation of the apk. The new apktoo lcompresses them i guess due to which that problem. Thanks in advance. I have also attached a file to show the problem
tr.supradeep said:
I have this problem in my themes that the slide unlock's parts are in different colour, i know that this problem has been rectified by fla.sh as he shows it in one of his screenshots. I understand that his framework-res.apk was quite large and mine is less than 50% of it. I guess this problem has come due to compilation of the apk. The new apktoo lcompresses them i guess due to which that problem. Thanks in advance. I have also attached a file to show the problem
Click to expand...
Click to collapse
Copy btn_lock_normal.9.png from the original framework-res.apk (located at /res/drawable-land-mdpi) and overwrite into your new UOT-made framework-res.apk and about my framework-res.apk is larger than you, it caused because I'm prefer to not optimize it (to reduce errors of course)
Hey Seilent
How do you make the status bar transparent?
Maybe you've seen me asking this very question before on your Meizu theme thread but Im just curious.. Is there a way to make this happen without using Meizu and that live wallpaper thingy?
Err.. Don't get me wrong; I love your Meizu theme and in fact, Im using it right now. But like I said before, Im just curious..

[HOW-TO] Random Mods for the "do-it-yourself-er"

{
"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"
}
Here is a compilation of many mods which I have been using for myself which I thought the community might be interested in. Please bare in mind that I am not the original creator of many of these and credits follow below. I am merely collecting them all together so they are handy for those who want them.
Of course I am open to new/not included ones, so please post and alert me to them and I will update as regularly as possible. Enjoy!
THANKS TO:
-Jjdoctor (XDA)
-CrushedD (RootzWiki)
-Snow02 (RootzWiki)
-PvyParts (XDA)
-ArrTooDeeToo (RootzWiki)
-He_stheone64 (XDA)
-Fergie716 (XDA)
-Altimax98 (RootzWiki)
Volume-rocker screen-wake
-decompile android.policy.jar and open KeyguardViewMediator.smali
-search for "WakeKeyWhenKeyguard"
-scroll down a bit and delete the two lines that start with "0x18" and "0x19"
-save and recompile
Faster soft-key UI
-decompile SystemUI.apk and navigate to smali>statusbar>policy and open KeyButtonView.smali
-search for "setDuration(J)" and there should be two instances
-in first instance find the line above it, starting with "const-wide/16 v1", change to "0x28" for medium fast or "0x0" for instant
-in second instance find the same line and change to "0x80" for medium or "0x0" for instant
-save and recompile
Get framework-res.apk to recompile
*this is hella time consuming, but gotta do what you gotta do*
-decompile framework-res.apk and then recompile without making any changes
-take note of every values folder which a plurals file gives an error from
-now navigate to each of those specific values folders and open the plurals.xml
-find line 79 (using Notes++) and add a 2nd "%" to the second "%d" so it looks like this: <item quantity="other">%d of %%d</item>
-save each one and recompile when all completed
Change carrier label (both notification pulldown and lockscreen)
-decompile framework-res.apk and navigate to res>XML>eri.xml
-search for line starting with "64 Verizon Wireless"
-change the "Verizon Wireless" to anything you want, max 16 characters
-it must be 16 characters, so fill in missing characters with spaces on either side
--Example: " Galaxy Nexus " needs 2 spaces on either side to be correct
-save and recompile
Adding MIUI battery bar and remove stock battery
-decompile SystemUI.apk and navigate to res>layout>status_bar.xml
-add this line to the bottom:
Code:
<com.android.systemui.statusbar.BatteryBar android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="1.0px" />
-should look like this:
Code:
</LinearLayout>
<com.android.systemui.statusbar.BatteryBar android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="1.0px" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
-now, in the same file, find the line starting with "<ImageView android:id="@id/battery"" and add "android:visibility="gone"" to the end of it
-now navigate to smali>com>android>systemui>statusbar and drop the 3 smali files in there from the attached zip from folder named "MIUI Battery Bar"
-save everything and recompile
-download the BatterBarSettings.zip, extract the apk, and install as you would any other apk to enable and customize the battery bar
Replace "recents" with "search" and add long-press recents to home button and long-press voice search to search button
-decompile SystemUI.apk and navigate to res>layout>navigation_bar.xml
-search for "android:id="@id/recent_apps"" should be 2 instances
-for first instance, replace entire line with:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_search" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" systemui:keyCode="84" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
-for second instance, replace entire line with:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_search_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" systemui:keyCode="84" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
-now search for "android:id="@id/home"" should be two instances, in both find and delete "systemui:keyRepeat="false""
-now navigate to res>values>public.xml
-search for "ic_sysbar_recent" change to "ic_sysbar_search" and right below it change "ic_sysbar_recent_land" to "ic_sysbar_search_land"
-finally find some icons you want and replace them in res>drawable-xhdpi and you can delete the recents ones too
-save everything and recompile
Center lockscreen slider and clock
-decompile framework-res.apk and navigate to res>layout
-drop in the two files from the attached zip from folder named "Center Lockscreen" overwriting old ones
-recompile
1% battery increments
-decompile SystemUI.apk and navigate to res>drawables
-drop in the two files from the attached zip from folder named "Percent Battery" overwriting old ones
-now find whatever battery images you want and place them in res>drawable-xhdpi
-recompile
Change color of statusbar clock and date
-decompile SystemUI.apk and navigate to res>values>styles.xml
-for clock, search for "
TextAppearance.StatusBar.Clock" and date search for "
TextAppearance.StatusBar.Date"
-under each, find the line starting with "
android:textColor" and change the hex value to whatever you want
--example, "fffffff" would be white
-save and recompile
Change color of soft-key background
-decompile SystemUI.apk and navigate to res>layout>navigation_bar.xml
-find the line that starts with "<com.android.systemui.statusbar.phone.NavigationBarView" (should be second one)
-fine "android:background="#ff000000" and change the hex color to whatever you want
--example, "ffffffff" would be white
-save and recompile
Launcher2 modifications
-I'm not actually going to type all of this out because a fantastic guide has already been put together to hide the search bar, increase number of rows, and increase/decrease number of screens. It can be found HERE.
Thank you thats very helpful^^
Nice one. Thanks
Sent from my A500 using Tapatalk
What programs does this require? Which are the best? (running on Mac, but I have bootcamp, so I would prefer a program that's compatible with Macs).
wonderfull howto's!!!!!+1
Huge thanks for all of this!
anton2009 said:
What programs does this require? Which are the best? (running on Mac, but I have bootcamp, so I would prefer a program that's compatible with Macs).
Click to expand...
Click to collapse
I use Apktool and Notepad++, so this guide was written assuming that. I find it to be the easiest to use, but there are plenty out there to choose from.
Just added how to color of the soft-keys background. Obviously remember that this does not change the color of the soft-keys themselves, so you will have to replace them to contrast whatever color you choose.
Thank you for this wonderful info. Do you know how to enable the menu button even when it is hidden? I know that the systemui.apk has to be decompiled and navigation_bar.XML has to be edited. But exactly what needs to be edited is what I do not know. Thanks.
Thanks for everything in this thread, very helpful.....my only question is, if I decompile SystemUI and then immediately try to recompile, I end up with a different file size.
Im guessing this is not normal.....what am I missing in my environment setup to be able to decompile/recompile successfully?
Is it not possible to use the softkey background colour mod to make it transparent (ie. see the wallpaper behind softkeys) I tried editing the alpha to 00 but it doesnt seem to have worked or is another mod required to stretch the wallpaper into this area?
i'd love a how-to on modifying the lockscreen to include SMS and Phone shortcuts
Immix said:
Thank you for this wonderful info. Do you know how to enable the menu button even when it is hidden? I know that the systemui.apk has to be decompiled and navigation_bar.XML has to be edited. But exactly what needs to be edited is what I do not know. Thanks.
Click to expand...
Click to collapse
I don't know how to do that at this time, but it is on my list because I too would like to know this. So as soon as I find out, I will update with it.
chrisexv6 said:
Thanks for everything in this thread, very helpful.....my only question is, if I decompile SystemUI and then immediately try to recompile, I end up with a different file size.
Im guessing this is not normal.....what am I missing in my environment setup to be able to decompile/recompile successfully?
Click to expand...
Click to collapse
Hmm, no I don't think so. I don't usually compare the file size (just assume everything is good lol) so I can't say for sure. Are you using apktool? The only thing I can think of is: if you are using apktool, you have to replace the META-INF folder (and android manifest too) in the new apk with the one from the old apk. So if you didn't know that, this could be your problem.
be77amy said:
Is it not possible to use the softkey background colour mod to make it transparent (ie. see the wallpaper behind softkeys) I tried editing the alpha to 00 but it doesnt seem to have worked or is another mod required to stretch the wallpaper into this area?
Click to expand...
Click to collapse
Hmm I never actually thought or tried that, it's a good idea though. So what happens when you set it to 0?
mrvirginia said:
i'd love a how-to on modifying the lockscreen to include SMS and Phone shortcuts
Click to expand...
Click to collapse
Haha join the club, I would also love to know that. Believe me if I ever find out, you guys will be the first to know.
Thanks for writing this up, I am trying to learn more about the process and how to do more mods, but I am stuck when trying to decompile .apks. I have managed to decompile android.policy.jar and framework.jar to do some simple volume wake and granularity mods, but I was trying to figure out how to remove the paging from rosie.apk and ran into a roadblock. I keep getting magic number errors everytime I try to do the decompile. I was getting the same problem when I started with the .jar files, but I was able to get past it by getting the latest smali/baksmali updates. I have been trying to use apktool and also apkbuilder but can't get past the magic number errors. Can anyone offer a suggestion to get past this please?
Thanks, for the tutorial! But editing eri.xml does not effect the carrier name. I am running CM9 on the Maguro (GSM Galaxy Nexus). Is the carrier info stored elsewhere?
And, could the app drawer icon be added to the navbar?
Sent from my Galaxy Nexus using xda premium
out of topic,can i decompile jar file using apktool?
Bump. I'm running miui v4 on toro (vzw cdma) and can't get the carrier to change either. Tried root tools also and was a no go. Anyone have any ideas where else the carrier could be stored?
aiinjylls said:
Thanks, for the tutorial! But editing eri.xml does not effect the carrier name. I am running CM9 on the Maguro (GSM Galaxy Nexus). Is the carrier info stored elsewhere?
And, could the app drawer icon be added to the navbar?
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Miui since 0.9.x
Nice.!
Sent from my PG86100 using XDA
00McD00 said:
Volume-rocker screen-wake
-decompile android.policy.jar and open KeyguardViewMediator.smali
-search for "WakeKeyWhenKeyguard"
-scroll down a bit and delete the two lines that start with "0x18" and "0x19"
-save and recompile
Click to expand...
Click to collapse
That method not working in 4.2
"KeyguardViewMediator.smali" in /com/android/internal/policy/impl/keyguard_obsolete/
modified that not changed

[Tutorial]-ICS-AOKP/CM9-UPDATED-Miscellaneous MODS[Nav bar,Notification header etc]

Hi guys!
After getting a lot of requests by various users of Resurrection Remix and RootBox,I finally decided to do a tutorial on how to make certain kinds of mods.I have been modding for Resurrection Remix for quite some time now and have learnt a lot in the process.I will keep updating this thread as and when i learn new stuff.
What this tutorial teaches and guides you to do:
-ANIMATED NOTIFICATION DROPDOWN BACKGROUND
-NAVIGATION BAR BACKGROUND MOD
-TOGGLES BACKGROUND MOD
-PULLDOWN BAR MOD
-SYSTEM+DIALER BACKGROUND MOD
-LOCKSCREEN HANDLER MOD
MORE MODS WILL BE ADDED AS AND WHEN I GET TIME AND ALSO DEPENDING ON THE INTEREST OF THE USERS.
DISCLAIMER :
> Please be careful.The methods here are totally tested so if anything goes wrong it is probably your fault that you didn't do something correctly.I will give my support but I am not responsible for anything unfortunate that may happen.Don't forget to do a BACKUP before trying anything!
>This is a tutorial to help the daily user in making mods.It might not be the most perfect way to do things,so if you are competent enough and technically sound to build from source please go ahead and read Entropy512's post here to get an idea on the same.My tutorial is aimed at helping everyone make their own mods.
Firstly,I will give the credits of my learning curve to :
GaboWinter (For his EXCELLENT tutorials and awesome FAQ)
Westcrip (For giving us an excellent ROM that changed the way i looked at things)
Yorzua (For his excellent tutorials on theming)
MyLifeRocks10 (For teaching me how to use UFT)
Vreestyle (For being one of the main inspirations and letting me use his zip files as a base whenever required!)
Bajee11 (For guiding me on how to mess around with smali files)
Tigiy (Whose first Hulk mod was the one that triggered my curiosity)
Sun90,Faseeh,LegendZenefy,Kroz,Kicker09 (For being awesome!)
Neerajganga (For forcing and encouraging me to write this tutorial)
To all the others who helped me during this transition of mine.You know who you are!Also a huge thanks to all the developers without whom this wouldn't have been possible.
I'll try to cover all the mods that I have done so far gradually and I'll start with the easier ones.
Some of the tutorials may or may not already be available on the internet but I have been getting too many requests so I'll put everything together here.Remember that i am also NEW here so please dont flame me if i do things differently.However constructive criticism is always welcome!
I would appreciate a Thanks for all this as it took a lot of my time and effort.
So let's get started.
What you need to have installed on your PC :
-Android SDK - Get it here.
-Java Runtime Environment (APKtool needs at least ver. 1.6) - Get it here.
-Notepad++ or Adobe Dreamweaver for editing XMLs.
-Draw9patch.bat [Included in the Android SDK]
-Apktool - Get it here. - I use ICS Apktool to recompile and Original Apktool to decompile.Works great with SystemUI.apk
-Photoshop or GIMP - Get GIMP here (It is a free software).
-APK Multitool v 1.0.5/APK Manager 5.0.2. Get them here. (You can use Apktool for the same functions i think,however I use them both depending on my needs)
-7zip or Winrar.
Please don't ask me questions on how to set up the above as the tutorial is not for that and you will find many tutorials/guides on XDA and elsewhere which explain the same.
What you need to know before doing some of these mods:
-Decompiling and compiling APKs-
There are many tutorials on XDA for this.And it's pretty straightforward.I will just try to explain how to decompile the tricky SystemUI.apk.
I modified TVTV's post for HTC Desire,threw in my bits and wrote the way to do this :
Step 1 (installing the tools):
- Download and install the latest Java Runtime Environment (APKtool needs at least ver. 1.6);
-Download Apk Tool(both Original and ICS Apktool.I linked you to both above.)
Step 2 (preparing to decompile):
- In order to properly decompile/compile SystemUI.apk, you need to install the framework with Apktool.
- Open your root explorer of choice and navigate to /system/framework;
- Copy "framework-res.apk" and "SystemUI.apk" to the SD card, then move them to your PC either via cable or via a software of your choosing.
- Put both "framework-res.apk" and "SystemUI.apk" into the folder where you've extracted Original Apktool;
- Open command prompt (Windows button + R then type "cmd") and navigate to the folder where you have Original Apktool and the framework apk;
- Type "apktool if framework-res.apk". Your file will be processed and the required bits will be "installed" in "C:/Users/<yourusername>/apktool/framework";
Step 3 (proper decompilation):
-For decompiling we will use the Original Apktool.
- Copy your SystemUI.apk from "/system/app" to the folder where you've installed the Original Apktool or copy the SystemUI.apk you wish to mod to the folder where you've extracted Original Apktool;
- Open a command prompt, navigate to the Original Apktool folder, type "apktool d SystemUI.apk" and wait till the original apktool has finished. You should get no errors whatsoever and your apk should now be decompiled into "readable format" in "<yourOriginalAPKtoolfolder>/SystemUI".
Step 4 (proper compilation):
- After making the desired changes in the decompiled apk, it's now time to compile it.
-For compilation we will use the ICS Apktool
-Copy the changed SystemUI folder,SystemUI.apk and framework-res.apk to the folder of ICS Apktool
- Open a command prompt, navigate to the ICS Apktool folder then type "apktool b SystemUI". Your apk will now be compiled to "<yourICS Apktoolfolder>/SystemUI/dist" (again, you should get no errors whatsoever). DON'T USE IT YET!
- Being a system app, SystemUI.apk must first be signed with the proper keys else odds are it won't work. To do that, you need to rename the SystemUI.apk you're editing (the original one) into SystemUI.zip, open it with an archive manager then extract META-INF and AndroidManifest.xml to the "<yourICS APKtoolfolder>/SystemUI/build/apk" folder, then run the "apktool b SystemUI" command again. Your APK will now be built with the proper keys included, and is now fully functional. You may "pick it up" from the "<yourICS APKtoolfolder>/SystemUI/dist" folder;
- You can now flash the resulting (modded) apk to your device either via ADB or via a way of your choosing (.ZIP from recovery etc.).
Have fun and remember to always do a nandroid backup before messing with system files!
-A general idea of what 9.PNG images are.
READ this to know what they are and how to use draw9patch.bat.
For patching 9.PNGs go to Yorzua's thread HERE.
Note: You can either follow all the steps in his tutorial for creating the image and then use the drag and drop(7zip,winrar) method OR skip step 3 of his tutorial and compile the image along with the previously decompiled apk.In other words,if you decompile the apk,then skip step 3 and if you want to use the drag and drop method,then follow the entire tutorial of Yorzua.Usually when a simple 9.PNG patch is required,Yorzua's method can be followed,but when we are editing XML files,we need to decompile the apk and then recompile it as otherswise the XMLs wont be editable as they are encrypted).
So now that we are settled with that,let's begin the real stuff starting with the easiest :
NOTE : I ATTACHED AN EMPTY FLASHABLE ZIP FOR YOU GUYS.
After you mod your framework-res.apk, SystemUI.apk etc you need to place
them(drag and drop the modded apk's) inside the flashable file using 7zip or Winrar.
SystemUI.apk and Contacts.apk goes inside /system/app
Framework-res.apk goes inside /system/framework
After flashing any mod,dont forget to fix permissions!
If you are on a kernel other than Siyah kernel do the following steps :
-Reboot to recovery
-Mounts and storage
-Mount /system
-Flash zip
-Fix permissions
-Reboot system
ANIMATED NOTIFICATION DROPDOWN BACKGROUND​
- Decompile your SystemUI.apk
- Navigate to /res/layout/ and open status_bar_tracking.XML
- Use Notepad++ to change the following lines of code.
Now add this line:
Code:
android:background="@drawable/dropanim"
to
Code:
<com.android.systemui.statusbar.phone.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
-The "dropanim" is basically the name of the XML file that you are gonna create next.So you can name it whatever you want.
-Save the XML file and navigate to /res/drawable
-Inside this drawable folder , make an XML file named "dropanim".
-This XML file will basically point to all your resources(images).The images should be PNG images.Depending on the number of images you use,the code will be accordingly written.From personal experience,i would say don't exceed 30-35 png image files.Also there are ways to make the animation play only once,to make it play once forward and then reverse infinite number of times.More on that a little later.
-The android:drawable="drawable/anim1" syntax points at the images.Here the image name is anim1.
-You can refer the code below for this XML file.Depending on the number of images you use,you will have to edit the code accordingly.
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="150" android:drawable="@drawable/anim1" />
<item android:duration="150" android:drawable="@drawable/anim2" />
<item android:duration="150" android:drawable="@drawable/anim3" />
<item android:duration="150" android:drawable="@drawable/anim4" />
<item android:duration="150" android:drawable="@drawable/anim5" />
<item android:duration="150" android:drawable="@drawable/anim6" />
<item android:duration="150" android:drawable="@drawable/anim7" />
<item android:duration="150" android:drawable="@drawable/anim8" />
</animation-list>
-Here the 'duration' part signifies the time lapse you want between frames in milliseconds.
-The above code is an example for 8 images.Thus there is anim1 to anim8.
NOTE: - If you want the animation to play for only once,then in the code above replace
Code:
<animation-list android:oneshot="false"
with
Code:
<animation-list android:oneshot="true"
.
-If you want the animation to play in reverse once it has reached the end then firstly keep
Code:
<animation-list android:oneshot="false"
set to false
and add the line :
android:repeatMode="reverse" after
Code:
<animation-list android:oneshot="false"
This line will make your animation play in reverse.
-Save this XML file.
-Now navigate to the drawable-hdpi folder and place your images there.
-Recompile your SystemUI.apk
-And then use ADB or a flashable zip to enjoy your newly modded and animated background!
Preview of one that i had done for Resurrection Remix:
NOTIFICATION DROPDOWN BACKGROUND MOD​
So this one is something that i have been getting many requests for and although i had initially implemented it as a theme , I finally learnt how to make it as a flashable zip.Pretty easy once you know what to change.So lets get on with it.
For this particular mod you will again need to know how to compile and decompile the apk.Also needs proper knowledge of 9 PNGs.The 9.PNG concept is pretty important here as unlike the other mods,the stretching of the image takes place to a large extent to cover the entire area of the notification background,so if it not done properly,then you will see white/transparent empty spaces in the area that is hidden behind the toggles.This happens because the image didn't 'stretch' out to cover the empty part.
Here we go..
-Open Photoshop or GIMP and make the image that you want to set as you dropdown background.This must be a PNG image of size roughly around 536x398 pixels.
Ensure that when you finally save the above image,you save it with a 2 pixel transparent border at the left and right and a 2 pixel transparent border at the bottom.This is because when the picture gets stretched later on,we want the transparent bit to get stretched and not the actual picture as it will result in the distortion of the edge pixels then.If the transparent bit is stretched,there is no problem with that.
So finally after saving the image with a 2 pix border everywhere except the top,we'll get an image of 540x400 pixels.This image should be saved as notification_bg.png.
Size is not a very critical issue but if you exceed you may get a clipped picture.
-Having done that, we need to now define the stretching and content parameters using draw9patch.bat tool from the android sdk.
You can use this image as a reference on how the border pixels will have to be.This is totally upto you and you will be able to see the stretching and preview of it in the draw9patch tool.
Reference image :
{
"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"
}
-Save the 9.PNG as notification_bg.9.png.
Now we need to edit the XML files to point it to our new image.
-For this first decompile SystemUI.apk using the method and tools i explained earlier.
-Navigate to res/layout/status_bar_tracking.xml
-Open it with Notepad++ and change the following code from :
Code:
<FrameLayout android:background="@drawable/notification_tracking_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<com.android.systemui.statusbar.policy.WeatherText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="40.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</FrameLayout>
to
Code:
<FrameLayout android:background="@drawable/notification_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<com.android.systemui.statusbar.policy.WeatherText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="40.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</FrameLayout>
-Save the file.
-Now navigate to res/values/drawables.xml and change the line :
Code:
<item type="drawable" name="notification_tracking_bg">#d8000000</item>
to
Code:
<item type="drawable" name="notification_tracking_bg">@drawable/notification_bg</item>
-Save it.Now both your XML files point to the the correct images.
-After this simply recompile the SystemUI.apk and you are done.To flash it you can use my attached flashable zip.
-Enjoy
NAVIGATION BAR BACKGROUND MOD​
-Open up Photoshop or GIMP and make your navigation bar background image that you want to use.It has to be a PNG image of about 540x70 pixels.You can take any image from the net: resize it,crop it,change the tint etc, but it needs to be roughly of that dimension.
-After you are done with that image,you will need to make another image so that it can be used in landcape mode.Now the dimension of the landscape image needs to be 70x540 pixels roughly.Usually once you are done with the portrait background,just rotate it by 90 degrees to get the landscape image.Remember that both need to be PNGs.
-Save the portrait and landscape images with any name.For example i will use "raja_nav_bg.png" for the portrait image and "raja_nav_bg_land" for the landscape image.
-Now,it's time to use those images in our SystemUI.apk.
-To do this first decompile SystemUI.apk using apktool.You will now find a SystemUI folder in your apktool path.
-Copy the two images that you made earlier and paste them in this path:
SystemUI\res\drawable-hdpi
-Now the thing is that we need to edit 3 XML files.All these XML files are located in the layout folder of SystemUI and are related to the navigation bar background.Each of them point to a hexadecimal colour code.We need to change that and make them point to a drawable resource,which in our case are the 2 images that we made.
-To do this first go to SystemUI/res/layout and open the file navigation_bar.xml with Notepad++.
-Change this line :
Code:
<com.android.systemui.statusbar.phone.NavigationBarView android:background="@drawable/nav_bar_bg" android:layout_width="fill_parent"
to
Code:
<com.android.systemui.statusbar.phone.NavigationBarView android:background="@drawable/your_portrait_image" android:layout_width="fill_parent"
Remember that in the @drawable part,we do not have to give the extension of the file.Just the file name.
-Now navigate below in the page near the Frame Layout section that says android:[email protected]/rot90 and add this to the existing code :
Code:
android:background="@drawable/your_landscape_image"
So the existing part becomes something like this after the addition :
Code:
FrameLayout android:id="@id/rot90" android:paddingTop="0.0dip" android:background="@drawable/your_landscape_image" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
-Now save the XML file and close it.
-In a similar and identical manner we need to edit the navigation_bar_naked.xml and navigation_bar_search.xml.
2 edits in each of them.One near the FrameLayout for landscape and the other one at the top for the portrait image.
-After editing all the files,save them and exit.
-Now copy this changed SystemUI folder to ICS apktool folder and recompile it.Follow the steps that i stated earlier on how to recompile and you will have your modded SystemUI.apk
Then either use ADB or a flashable zip file to use the new SystemUI.apk on your phone!
A screenshot of a navigation background mod that i did for Resurrection Remix :
TOGGLES BACKGROUND MOD​
Many users had requested me to put a jet black background behind the toggles instead of the zigzag lines.So here is the way to change them..
- Open up Photoshop or GIMP and make a PNG image/background of 960x180 pixels resolution.If you want it transparent then you can keep it so using Photoshop.Name this image as notify_panel_notification_icon_bg.png.
-Save it somewhere on your desktop
-Now use 7zip or Winrar to open framework-res.apk in view mode.Don't extract it.
-Navigate to framework-res.apk/res/drawable-hdpi and drag and drop the image that you made here, and by doing that you will replace the existing notify_panel_notification_icon_bg.png image of size 14x14.
-Keep the framework-res.apk somewhere safe as we shall be using this one while flashing the mod or with Adb.
So the original image was a 'tile' image of 14x14 pixels and we just replaced it with another image having a dimension of 960x180 pixels.Initially,the tile image was 'repeated' several times using a code in one of the xml files in SystemUI.apk and thus it appeared to be spread out over the area behind the toggles.We need to now disable that as we are using a background of 960x180.
-To do this we need to first decompile SystemUI.apk
-After doing so navigate to the SystemUI\res\drawable folder.
-Open status_bar_ticker_background.xml with Notepad++.
-Change the existing code from :
Code:
<?xml version="1.0" encoding="utf-8"?>
<bitmap android:src="@android:drawable/notify_panel_notification_icon_bg" android:tileMode="repeat"
xmlns:android="http://schemas.android.com/apk/res/android" />
to
Code:
<?xml version="1.0" encoding="utf-8"?>
<bitmap android:src="@android:drawable/notify_panel_notification_icon_bg" android:tileMode="disabled"
xmlns:android="http://schemas.android.com/apk/res/android" />
-Save the XML file.
Note: Incase you want to use a transparent background,then you dont have to edit the XML file as a transparent image of 14x14 pixels in the drawable-hdpi folder of framework-res.apk will give you transparent toggle background.
-After editing the above XML file , recompile SystemUI.apk.
-Now,both your framework-res.apk and SystemUI.apk have been modded and you can use them on your phone and get whatever background you desire.
A screenshot of a purely black toggle background that i made for Resurrection Remix :
PULLDOWN BAR MOD​
This mod is for the bar that we get when we pull down the notification dropdown.This has been done many times before but I will share it nevertheless as some users cannot find what they want.
It is a simple mod that doesn't require editing any XML files.It does however require the patching of a 9.PNG image.
We shall be using Yorzua's method here which will help us in optimizing the 9.PNG image so that the 7zip drag-and-drop method can be used here,rather than going into the lengthy process of decompiling the SystemUI.apk,pasting the unoptimized 9.png in it and recompiling it again). 9.PNG images get optimized on recompiling,but Yorzua's link lets us use a tool which will optimize the image beforehand so that we can just drag and drop it there).
-Firstly open up SystemUI.apk with 7zip or Winrar.
-Navigate inside the drawable-hdpi folder and find the file status_bar_close_on.9.
-Drag it and drop it on the desktop.We will use this file for reference purpose while patching the 9.PNG image.
-Now open up Photoshop or GIMP and make your bar image.It should be a PNG image of around 476x42 pixels(This is variable and the width can be anything within 480 pixels and the height can be within 48 pixels).Save it as status_bar_close_on.png.
-So now we have your PNG ready and we need to make it a 9.png using the draw9patch.bat file in the Android-SDK.Many people prefer to do it with Eclipse but that's just complicated and a miserable way of doing it.
-At this stage,I expect you to have read enough about 9.PNG images from the links i gave at the start of this thread.If you haven't then go and read it as it might be a bouncer otherwise.
-Now open draw9patch.bat and drag the ORIGINAL status_bar_close_on.9.png image that you had taken from the SystemUI.apk and drop it in the tool.
-Observe how the borders of the image are and how the pixels have been drawn at all the borders.Each pixel is important and changing even one of them can result in a big visual difference.These pixels contain the stretching information and changing them can change the whole behaviour of these images.Remember the pattern and the coordinates of these pixels as you will have to need to do the same thing while patching your status_bar_close_on.png.You can change one or two pixels in the left and top border just to see how the image stretches in the right viewing pane of draw9patch tool.
-After you got an idea of these 9.png files,you have to do make the same border so that it stretches properly with your status_bar_close_on.png image.
For reference,you can use this 9.PNG file of mine also :
-After you are done patching the image properly save it as status_bar_close_on.9.png
-Open SystemUI.apk again with 7zip or Winrar and navigate to the drawable-hdpi folder.
-Drag and drop your new 9.png image that you made and overwrite the existing one.
-Close the apk.
-Your modded SystemUI.apk is now ready.
-Use ADB or a flashable zip for getting it on your phone.
A screenshot of the pulldown mod i had made for Rootbox :
SYSTEM+DIALER BACKGROUND MOD​
Most people know this.It is very easy and no XML editing or 9.PNG is required.However you need Contacts.apk for changing the dialer background.
-Simply take your favourite pics of 480x800 resolution.They must be PNG images.
-For the picture that you want to use as the dialer background,name it as
background_dial_holo_dark.png.
-For the picture you want to use as System background(for example Settings background) name it as background_holo_dark.png
-You will need framework-res.apk and contacts.apk for this.
-Using 7zip or winrar open framework-res.apk and navigate to :
framework-res.apk\res\drawable-nodpi
-Drag the background_holo_dark.png that you made and drop it inside this and in doing so you will replace the existing one.
-Close the apk.
-Now open Contacts.apk with 7zip or Winrar and navigate to
Contacts.apk\res\drawable-nodpi
-Drag the background_dial_holo_dark.png that you made and drop it here and replace the existing one.
-Done.Your contacts.apk and framework-res.apk files are now modded and you backgrounds will also change.Simple,isn't it?
Some screenshots of the system+dialer background that i had made for Resurrection Remix :
LOCKSCREEN HANDLER MOD​
This is again an easy mod and no skill required.
-For this mod you will need framework-res.apk
-Make 2 handler icons,one that will be normally be displayed on the lockscreen and the other that it will change to when pressed for unlocking.
-Name the 1st icon as ic_lockscreen_handle_normal.png and the second icon
as ic_lockscreen_handle_pressed.png.
-Remember that both the images need to be PNG images of 162x162 pixels.
-Now open up framework-res.apk with 7zip or Winrar.
-Navigate to framework-res.apk\res\drawable-hdpi and drag and drop the two images above inside this and replace the existing ones.
-Done,you can now close the apk and use your modded framework-res.apk.
You can find some amazing lockrings icon here.Be sure to use the HDPI ones.
A screenshot of these mods :
Nice, great work, mate!
Reserved
Haha thanks legend..forgot to reserve a post there..
SilencerOfLambs said:
Reserved
Haha thanks legend..forgot to reserve a post there..
Click to expand...
Click to collapse
he can actually delete his post
edit: whoopps. mistaken xda for another forum. dont mind me! heh
very well compiled one dude, gr8 work keep it up
Great work mate. Keep it up. :thumbup:
Sent from my GT-I9100 using Tapatalk 2
Thanks all!
You guys were solely responsible for whatever I have learnt!
SilencerOfLambs said:
Reserved
Haha thanks legend..forgot to reserve a post there..
Click to expand...
Click to collapse
Oops, sry about that.. :silly:
When's Part 2 coming?
finally the wait is over .... thanx man
LegendZenify said:
Oops, sry about that.. :silly:
When's Part 2 coming?
Click to expand...
Click to collapse
Weekend mostly
vegeta1 said:
finally the wait is over .... thanx man
Click to expand...
Click to collapse
Thanks mate!
Great tutorial! Keep it up!
I know that a lot of users will use this!
Second, I get less messages to make mods as well. Lol
Now I got more time to explore the rest of XDA
Send from the godfather of smartphones to your face!!
Vreestyle said:
Great tutorial! Keep it up!
I know that a lot of users will use this!
Second, I get less messages to make mods as well. Lol
Now I got more time to explore the rest of XDA
Send from the godfather of smartphones to your face!!
Click to expand...
Click to collapse
Haha honestly..It's much easier to guide people to a tutorial than make mods for everyone as it gets tedious..
And thanks
Fantastic tutorial...exactly what I need and very well explained...this along with Kros tutorial will hopefully help me to theme whatever I see fit! Can't wait for part 2!
Sent from my GT-I9100 using xda app-developers app
somepepe**** said:
Fantastic tutorial...exactly what I need and very well explained...this along with Kros tutorial will hopefully help me to theme whatever I see fit! Can't wait for part 2!
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Pleasure mate
Sent from my GT-I9100 using xda premium
Hi!
I have installed just 4fun a batman's theme. To be honest i dont like it very much. Especially because of that silly bat type icon instead of normal one on lockscreen. How can I turn the default theme back on? I am using RootBox ROM.
Sent from my GT-I9100 using xda app-developers app
Dioktis said:
Hi!
I have installed just 4fun a batman's theme. To be honest i dont like it very much. Especially because of that silly bat type icon instead of normal one on lockscreen. How can I turn the default theme back on? I am using RootBox ROM.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
To get your original look back,you will need to copy your original framework-res.apk,SystemUI.apk and Contacts.apk to the proper places in a flashable zip file and then flash it in CWM recovery.You can get the original files from your ROM zip.You can use the empty flashable zip file i attached in the OP.
framework-res.apk will go in /system/framework
contacts.apk and SystemUI.apk will go in /system/app
Alternatively if you only want to change the lockscreen icons,follow the steps in the OP for the lockscreen mods.
I have attached the default lock rings for you.(Just click on them and you will be able to see it.It's white so it appears invisible..)
Phew Finally
Nice work
Sorry for noob question. How can I run ICS and Original apk tool ?
Arnadel said:
Sorry for noob question. How can I run ICS and Original apk tool ?
Click to expand...
Click to collapse
Ask that question here :
http://forum.xda-developers.com/showthread.php?t=1558171
dude that's great.
could you please make a tutorial about "theme chooser" themes? you know they are really easy to implement and change.

[MOD] MA7 base, DEODEX, 1x/3g icon, no clock, no charged notice, 1% battery mods

[MOD] MA7 base, DEODEX, 1x/3g icon, no clock, no charged notice, 1% battery mods, themed in Smurfy blue with a few other themed icons.
You can use it as is, or you can rip it apart and replace the icons with whatever you prefer.
I removed the clock, converted it to 1% capable, removed the charge completed notice, and, obviously I like blue.
I rarely share my mods but the Note II area is pretty bare.
https://dl.dropbox.com/u/9946170/Smurfy.zip
{
"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"
}
Standard disclaimer applies.... I can't guarantee my work won't "blow up" your Note II, always have a backup. Obviously it didn't blow mine up.
Compusmurf said:
[MOD] MA7 base, DEODEX, 1x/3g icon, no clock, no charged notice, 1% battery mods, themed in Smurfy blue with a few other themed icons.
You can use it as is, or you can rip it apart and replace the icons with whatever you prefer.
I removed the clock, converted it to 1% capable, removed the charge completed notice, and, obviously I like blue.
I rarely share my mods but the Note II area is pretty bare.
https://dl.dropbox.com/u/9946170/Smurfy.zip
Standard disclaimer applies.... I can't guarantee my work won't "blow up" your Note II, always have a backup. Obviously it didn't blow mine up.
Click to expand...
Click to collapse
Looks awesome! You will hate me for this - any chance we could also have a version with the clock? :angel: Some of us don't keep a clock widget on the home screen and use the status bar clock instead.
Not really, but I can tell you how to modify your own so you can make any changes you want. Self service is the absolute best.
Compusmurf said:
Not really, but I can tell you how to modify your own so you can make any changes you want. Self service is the absolute best.
Click to expand...
Click to collapse
Do tell, I'm actually itching to be free of waiting for people to mod **** for me, I'd rather just do it myself and do it exactly the way I want.
You need to follow most of the steps in this thread:
http://forum.xda-developers.com/showpost.php?p=37273338&postcount=13
However, the apktool package there is missing some parts.
So if you use my apktool package it should work:
https://dl.dropbox.com/u/9946170/APKtool.rar
Also, they say JRE/JDK. you really want the JDK only.
You should also put the c:\apktool folder in your system path.
That should get you to the point that you can compile and decompile your SystemUI.apk.
When modifying these, always take one from YOUR rom or one that's compatible.
And this is for DEODEX only.
When you get to the point that you can compile and decompile, then you need to know the things to change.
I'd suggest Notepad ++ as an editor and paint.net as an icon editor.
notepad: http://notepad-plus-plus.org/
Paint.net: http://www.getpaint.net/
When you get that all working and setup and have decompiled and recompiled a systemui.apk successfully without making changes, let me know and I'll point you to the next step of goodies to play with.
Compusmurf said:
When you get that all working and setup and have decompiled and recompiled a systemui.apk successfully without making changes, let me know and I'll point you to the next step of goodies to play with.
Click to expand...
Click to collapse
OK all done and working. What do I change? What I want most is to re-enable the 1X connection icon that Sprint disabled. Thank you for guiding me through this.
Darn, you work fast!!!!!
Ok, use my download as an example, extract it and rename it something like system1.apk, then decompile it..
Keep the zip file because you'll need it for flashing. Just replace the file in it.
First thing you want to do is make a backup flashable file called orig.zip or something. Again, use my zip file in the first post, and put your systemui.apk in it.
KEEP IT ON YOUR DEVICE because when you screw something up, you'll need it for repair.
Also, VERY important, update your darn nandroid backup. TRUST ME, you will break something and eventually will need to use it. KEEP THIS CURRENT!!!!!!!!!! <--- I know from experience!!!!!
Compusmurf said:
Darn, you work fast!!!!!
Ok, use my download as an example, extract it and rename it something like system1.apk, then decompile it..
Keep the zip file because you'll need it for flashing. Just replace the file in it.
First thing you want to do is make a backup flashable file called orig.zip or something. Again, use my zip file in the first post, and put your systemui.apk in it.
KEEP IT ON YOUR DEVICE because when you screw something up, you'll need it for repair.
Also, VERY important, update your darn nandroid backup. TRUST ME, you will break something and eventually will need to use it. KEEP THIS CURRENT!!!!!!!!!! <--- I know from experience!!!!!
Click to expand...
Click to collapse
Way ahead of you, I nandroid religiously.
I have my SystemUI.apk decompiled and ready. Lay it on me.
now for the fun part, since you're backed up and have a backup of the SystemUI.apk file....
To put the clock back, you'll want to replace MY file here with a copy from the original:
SystemUI/res/layout and find tw_status_bar.xml
or if you want to jack with the actual data...
Original line will look something like this
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff33b5e5" android:gravity="left|center" android:id="@id/clock" androidpaddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
Change that entire line to this below:
<com.android.systemui.statusbar.policy.Clock android:textSize="0.0dip" android:textColor="#ff959595" android:gravity="left|center" android:id="@id/clock" androidpaddingLeft="0.0dip" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:includeFontPadding="false" />
That's the CLOCK stuff....
If all you're doing is changing the clock, after you've replaced my file recompile and go....
These 2 files control the 1% stuff. Make sure you have the 1% matching icons added as well before compiling.
stat_sys_battery.xml and stat_sys_battery_charge.xml from \res\drawable and make sure you have matching battery files for it before compiling.
You can grab working versions from mine.
icons are mostly located in \res\drawable\drawable_xhdpi.
Power features like to NOT display the charge complete are located:
powerui$1.smali file. Easier to just grab my edits.
You might want to take this out of your update script
delete("/system/app/SecEmail.apk","/system/app/SecExchange.apk");
digiblur said:
You might want to take this out of your update script
delete("/system/app/SecEmail.apk","/system/app/SecExchange.apk");
Click to expand...
Click to collapse
LOL, as you can see, I reuse my zip files and crap I took it from my big "cleanup" one. eh. sorry.
digiblur said:
delete("/system/app/SecEmail.apk","/system/app/SecExchange.apk");
Click to expand...
Click to collapse
Reminds me.
You can use the updater script to do things like DELETE unused garbage and push other files and such.
I take the rooted, stock rom and make me a zip installer with things like this, init.d files, deletes and other tweaks I like on my rom and end up with a 1 zip installer to precustomize everything.
Makes setup a breeze.
Again, this just shows why one should ALWAYS ALWAYS have a valid and updated NANDROID backup!!!!!!!!
Any other DEV's with some great tweaks and knowledge, feel free to step in and add things. Sadly I've run out of the "easiest" things to tweak here.
The 1x/3G stuff is located in:
\res\values\bools.xml
<bool name="config_showMin3G">false</bool>
The default is TRUE, change it to false and that should fix that.
Compusmurf said:
now for the fun part, since you're backed up and have a backup of the SystemUI.apk file....
To put the clock back, you'll want to replace MY file here with a copy from the original:
SystemUI/res/layout and find tw_status_bar.xml
or if you want to jack with the actual data...
Original line will look something like this
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff33b5e5" android:gravity="left|center" android:id="@id/clock" androidpaddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
Change that entire line to this below:
<com.android.systemui.statusbar.policy.Clock android:textSize="0.0dip" android:textColor="#ff959595" android:gravity="left|center" android:id="@id/clock" androidpaddingLeft="0.0dip" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:includeFontPadding="false" />
That's the CLOCK stuff....
If all you're doing is changing the clock, after you've replaced my file recompile and go....
Click to expand...
Click to collapse
You got the two data lines reversed... the second line is what's in your tw_status_bar.xml and you should replace it with the first line which is from stock tw_status_bar.xml.
Just replaced it, recompiled, rezipped, flashed, and it worked. I now have your mod with the clock visible. Thank you for the walkthrough, now I know how to modify APKs on my own!
Here it is in case you want to post it to your OP - let me know when you've grabbed it so I can delete it from my Dropbox.
http://dl.dropbox.com/u/66752204/Smurfy-with-Clock.zip
Now, if all I want to do is take the stock SystemUI.apk and re-enable the 1X signal icon so I know when I'm on 1X-RTT and not EVDO (3G), what do I change and where? Thank you!
---------- Post added at 02:22 PM ---------- Previous post was at 02:17 PM ----------
digiblur said:
You might want to take this out of your update script
delete("/system/app/SecEmail.apk","/system/app/SecExchange.apk");
Click to expand...
Click to collapse
FFFFUUUUUUUUU... just realized my Email app is gone. Damnit. Restoring Nandroid now.
---------- Post added at 02:23 PM ---------- Previous post was at 02:22 PM ----------
Compusmurf said:
The 1x/3G stuff is located in:
\res\values\bools.xml
<bool name="config_showMin3G">false</bool>
The default is TRUE, change it to false and that should fix that.
Click to expand...
Click to collapse
Doing this now. Thank you.
siraltus said:
FFFFUUUUUUUUU... just realized my Email app is gone. Damnit. Restoring Nandroid now.
Doing this now. Thank you.
Click to expand...
Click to collapse
Ooops, sorry. I edited my zip file.
It's one of those things I never use so I wipe it off. I use gmail so don't bother keeping the other on there. Now you see why I re-iterated that you have a current NANDROID? People make mistakes, and I'm no professional DEV!!!!!
However, this is a GREAT LESSON for everyone. When you d/l someone's stuff, instead of blindly flashing it, glance at the script to see what it's going to do BEHIND the scenes. This was accidental but someone COULD wipe everything off or install something else that you weren't expecting.
A quick fix in this case instead of restore would have been to put the 2 files back into the zip, remove the updater line and reflash just the zip.
Again, soo sorry about that.
Compusmurf said:
Ooops, sorry. I edited my zip file.
It's one of those things I never use so I wipe it off. I use gmail so don't bother keeping the other on there. Now you see why I re-iterated that you have a current NANDROID? People make mistakes, and I'm no professional DEV!!!!!
However, this is a GREAT LESSON for everyone. When you d/l someone's stuff, instead of blindly flashing it, glance at the script to see what it's going to do BEHIND the scenes. This was accidental but someone COULD wipe everything off or install something else that you weren't expecting.
A quick fix in this case instead of restore would have been to put the 2 files back into the zip, remove the updater line and reflash just the zip.
Again, soo sorry about that.
Click to expand...
Click to collapse
Hey no worries man. I always always make Nandroids whenever I'm about to do something that might bork the system.
I didn't even know what an updater script was until this, and anything that I can learn something new from I regard as a positive experience. And I learned a lot today - now I can modify my own APKs and that's so awesome, so thank you.
Do you know how to decompile jars? I want to fix the 4-in-1 reboot mod now, need to replace the command that the Quick Reboot option launches because the currently posted one sends the phone into a bootloop.

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

Categories

Resources