Procedure for altering xml files in Systemui.apk - One (M7) Themes and Apps

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

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][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 !

{HOW TO}{TEAM REJECTS}{Windows} Quick DECOMPILE/COMPILE MK4 (read the Blue Devs)

TEAM REJECTZ QUICK JB FIX
There are some xml's that are in the MK4 rom apk's with missing values. Like missing style lines in the systemUI that won't let you compile, but to fix this just go to the bottom of the xml and replace what ever line thats missing with the APKTOOLDummy line.
Example: layout/systembar --------> line 14 @style/missingline <------ go to style and change it with the @style/APKTOOLDUMMY (this is just an example)​
Since i did this for the E4GT and S3 i figured i would do the same here to get some more up in coming devs in here like in s3
went from a few devs to over 20+ rom and devs​
Works on KitKat​
1. You need to make sure you have the latest java
2. Download Notepad++ (google it) lol
3. Download the Team Rejectz Quick JB Fix (the latest one) which is linked below
Instructions Decompile/Recompile​
1. UNzip and place the JB Quick Fix Folder on your c: drive and name it apktool
2. Since this is TW/CM10/10.1/10.2 you should drag your framework-res.apk, twframework-res.apk, and systemUI.apk onto the apktool-if cmd file
3. Now time to decompile. You can actually drag your apk from where ever its located but i suggest you place them in the Quick Fix folder.
and drag and drop it on top of the Quick-Deompile cmd file
4. To get an error less decompile i prefer you to use the stock apk
5. Once the decompile process is done. you can go into the apks folder that was created and make your edits with notepad++
warning if you create to many edits that would cause an error. then begin the process over but do them one by one​
6. Now its time to recompile ^^^^^^^^^remember the warning^^^^^^^ drag and drop the apks folder on top of the Quick-Recompile cmd file
7. Now once your done go into the apks folder you should see dist folder. Your new compiled apk is located there. I prefer to just use the build folder and drag the things I need into the apk. Much easier. Also remember if any images has been added you need to make sure you drag the new arsc file because the public.xml may have been changed
8. Don't worry about signing the apk. All of your edits besides the ones in drawable folder will be in the resource.arsc file
9. Drag that file into the apk thats in the rom your editing
10. If you decide to edit the decompressed .9 images you can check my Team Rejectz Theme Cheat Sheet located >>>Here
Baksmali/Smali​
1. Grab the apk/jar file you want to edit
2. Drag the classes.dex file out of the apk/jar file
3. Drag and drop the classes.dex file onto the Quick-Baksmali cmd file
4. A smali folder will be created
5. Now you can make your smali edit inside of the smali folder and close and save them.
6. After the edits and save, drag and drop the smali folder on top of the Quick-Smali cmd file
7. You should now see a new file called new-classes.dex. rename it to classes.dex
8. Finally drag the classes.dex file into the original apk/jar you pulled it from
If this helped you in anyway just hit that thanks button thanks!!!!!!!!!!
Download:
Team Rejectz Quick JB Fix 2.5
Change Log
Quick Fix 2.5
Faster Compile times and Less errors
Updated to apktool 1.5.2, left the older ones in
Updated aapt to most recent
Updated baksmali/smali to 2.0
Just wanted to pop in and drop a thanks for all of your contributions brother!
Sent from my SPH-L900 using XDA Premium 4 mobile app
patrick_1 said:
Just wanted to pop in and drop a thanks for all of your contributions brother!
Sent from my SPH-L900 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
no problem, i added this so people who have things in a apk, the don't like. they can change it on there own and not have to keep asking a dev to change the color of something or image. Thanks for looking IN AND YOUR WELCOME
Updating my FTW Rom should be done by this week
{
"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"
}
lorjay589 said:
Updating my FTW Rom should be done by this week
Click to expand...
Click to collapse
Hell yeah! Been running this since it first dropped! Will the update be 4.3 based?
Android...A New Digital Revolution Of Incredible Developers
ianmb said:
Hell yeah! Been running this since it first dropped! Will the update be 4.3 based?
Android...A New Digital Revolution Of Incredible Developers
Click to expand...
Click to collapse
Yep MK4 4.3 based
lorjay589 said:
Yep MK4 4.3 based
Click to expand...
Click to collapse
That's F-N AWESOME! Guess I'll wait for this to drop so I don't have to do the whole un root and update stuff. Thanks for doing this!
God speed bro!
Android...A New Digital Revolution Of Incredible Developers
Lol just checking back in to see if the new rom dropped yet or maybe seeing if you need a Beta Tester lol
Sent from my SPH-L900 using xda premium
Great work !
Will all this stuff eventually be incorporated into a one zip flashable rom? I'm not experienced enough to do the instructions. I know how to back up, flash and titanium but the instructions listed in the OP are beyond me. I usually wait for a video to come around from wwjoshdew or someone and follow the steps. T.I.A. love the new update. I've done the 4.4 and "pure Google experience" etc... I have to admit I really like the TW features. There fun, funtional, makes using the phone easier and great ways to show off. This 4.3 update is very cool.
Sent from my SPH-L900 using xda app-developers app
lorjay589 said:
TEAM REJECTZ QUICK JB FIX
There are some xml's that are in the MK4 rom apk's with missing values. Like missing style lines in the systemUI that won't let you compile, but to fix this just go to the bottom of the xml and replace what ever line thats missing with the APKTOOLDummy line.
Example: layout/systembar --------> line 14 @style/missingline <------ go to style and change it with the @style/APKTOOLDUMMY (this is just an example)​​
Click to expand...
Click to collapse
The_Plattypus gets all credit for showing this to me;
Instead of replacing the lines with APK Dummies, the actual missing lines are ;
Code:
<style name="SystemBarNotificationText">
<item name="android:textSize">16sp</item>
<item name="android:textColor">#de </item>
</style>
<style name="SystemBarPanelSettingsRow">
<item name="android:paddingRight">16dp</item>
<item name="android:layout_height">64dp</item>
<item name="android:layout_width">match_parent</item>
<item name="android:orientation">horizontal</item>
<item name="android:background">?android:attr/listChoiceBackgroundIndicator</item>
</style>
<style name="SystemBarPanelSettingsIcon">
<item name="android:layout_height">match_parent</item>
<item name="android:layout_width">64dp</item>
<item name="android:scaleType">center</item>
</style>
<style name="SystemBarPanelSettingsContents">
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">0dp</item>
<item name="android:layout_weight">1</item>
<item name="android:layout_gravity">left|center_vertical</item>
<item name="android:textColor">?android:attr/textColorPrimary</item>
<item name="android:textSize">18sp</item>
</style>
<style name="SystemBarPanelSettingsPanelSeparator">
<item name="android:layout_marginRight">0dp</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item>
<item name="android:background">@android:drawable/divider_horizontal_dark</item>
</style>
Confirmed systemUI will compile without errors on Lorjays stock deodexed.
Sent from my SPH-L900 using Tapatalk​
elijahbrown said:
<item name="android:textColor">#de </item>
Click to expand...
Click to collapse
This seems to make it toss an error for me.
C:\apktool\SystemUI\res\values\styles.xml:165: error: Error: Color value not val
id -- must be #rgb, #argb, #rrggbb, or #aarrggbb (at 'android:textColor' with va
lue '#de ').
Arjohns said:
This seems to make it toss an error for me.
C:\apktool\SystemUI\res\values\styles.xml:165: error: Error: Color value not val
id -- must be #rgb, #argb, #rrggbb, or #aarrggbb (at 'android:textColor' with va
lue '#de ').
Click to expand...
Click to collapse
Thats not color value, it has to be like this #ff000000 <--- which is black
lorjay589 said:
Thats not color value, it has to be like this #ff000000 <--- which is black
Click to expand...
Click to collapse
Yeah thats what I figured lol.
Arjohns said:
This seems to make it toss an error for me.
C:\apktool\SystemUI\res\values\styles.xml:165: error: Error: Color value not val
id -- must be #rgb, #argb, #rrggbb, or #aarrggbb (at 'android:textColor' with va
lue '#de ').
Click to expand...
Click to collapse
Makes sense that it would, though I'm not sure how it ended up in there. Just need to put in a valid hex color. #ff000000 being straight black, #ffffff pure white.
The error gives you a layout for putting in whatever color you want. aa = alpha (transparency) rr=red gg=green bb=blue in values from 0-9,a-f.
Keep in my mind you will probably never see these styles in a standard rom or theme so I wouldn't fret too much about getting the color just right.
Sent from my SPH-L900 using Tapatalk
elijahbrown said:
Makes sense that it would, though I'm not sure how it ended up in there. Just need to put in a valid hex color. #ff000000 being straight black, #ffffff pure white.
The error gives you a layout for putting in whatever color you want. aa = alpha (transparency) rr=red gg=green bb=blue in values from 0-9,a-f.
Keep in my mind you will probably never see these styles in a standard rom or theme so I wouldn't fret too much about getting the color just right.
Sent from my SPH-L900 using Tapatalk
Click to expand...
Click to collapse
Thanks. I am aware of the xml edits for colors as I used to pull image files and such from Mixer theme for CM. I was pushing them back to his cm 7 theme so that people running older devices (like I was at the time) could have his updates. Eventually I started playing with making a CM10 theme for personal use...dropped that real quick like, as I dont have the patience for it lmao. So I give any themer mad props. Also Lorjay, love the quick compile/decompile you gave out here. Makes things so much easier then manually typing it out in cmd.
Arjohns said:
Thanks. I am aware of the xml edits for colors as I used to pull image files and such from Mixer theme for CM. I was pushing them back to his cm 7 theme so that people running older devices (like I was at the time) could have his updates. Eventually I started playing with making a CM10 theme for personal use...dropped that real quick like, as I dont have the patience for it lmao. So I give any themer mad props. Also Lorjay, love the quick compile/decompile you gave out here. Makes things so much easier then manually typing it out in cmd.
Click to expand...
Click to collapse
Word. Didn't mean to make it seem like you needed the crash course (you probably wouldn't have gotten that far if you did.)
The original plan was to just edit the post but Tapatalk is not letting me change anything past what I quoted from Lorjay, so I just followed it up with fix for anybody reading the thread.
Sent from my SPH-L900 using Tapatalk
elijahbrown said:
Word. Didn't mean to make it seem like you needed the crash course (you probably wouldn't have gotten that far if you did.)
The original plan was to just edit the post but Tapatalk is not letting me change anything past what I quoted from Lorjay, so I just followed it up with fix for anybody reading the thread.
Sent from my SPH-L900 using Tapatalk
Click to expand...
Click to collapse
Oh no, I didnt mean anything with my post other than i figured that was the problem. I just assumed initially that maybe #de would call something like default or something lmao. Im always learning new stuff so I figured hell who knows what it does and tried it that way first. And your post definitely helped get SystemUI to compile. So I give you some thanks as well for helping out. Its been about a year since I used apktool or even tried to decompile/recompile anything, so luckily you two were here to save my arse :good:
@lorjay589 hi guys, can someone give me a link, the one in the post is dead

[guide][how to get kitkat/jb/ics title bar on gb devices]

HOW TO GET KITKAT/JB/ICS TITLE BAR ON GINGERBREAD DEVICES​
THIS GUIDE IS TOTALLY MADE BY 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"
}
I KNOW THERE'S ALREADY A GUIDE FOR THIS BY SIR SPACECAKER. BUT THIS ONE IS TOTALLY DIFFERENT FROM THAT ONE. AND IN THIS GUIDE, THE TITLE BAR DOESN'T SCROLL WITH SCROLLING WINDOWS CONTENT
REQUIREMENTS:
1. APKTOOL
2. PC WITH JDK Installed.
3. framework-res.apk,twframework-res.apk, Services.jar,Settings.apk or any other apk you want to apply Kitkat/JB/ICS title bar to.
4. KNOWLEDGE ABOUT DECOMPILING, RECOMPILING, EDITING ETC(Don’t ask me how to do that. Use xda search options instead)
5. PATIENCE​IF YOU’VE ACCESS TO ALL THE REQUIRED STUFF, YOU CAN PROCEED WITH PROCEDURE.
HOW TO APPLY KITKAT/JB/ICS TITLE BAR IN SETTINGS
1. First decide which type of title bar you want in your Rom. Then download its zip from below(ICS, JB, OR KITKAT TITLE BAR).
2. Now decompile framework-res.apk.
3. Now extract the content of downloaded zip in decompiled framework-res.apk.
4. Now open /decompiled_framework-res.apk/res/values/styles.xml and add this above this line "</resources>"
Code:
<style name="Theme.sett" parent="@style/Theme">
<item name="windowTitleSize">@dimen/akrtb</item>
<item name="windowTitleStyle">@style/WindowTitlesettt</item>
<item name="windowTitleBackgroundStyle">@style/settt</item>
</style>
<style name="settt">
<item name="background">@drawable/djbtitle</item>
</style>
<style name="WindowTitlesettt">
<item name="textAppearance">@style/TextAppearance.WindowTitle.sett</item>
<item name="singleLine">true</item>
<item name="drawableLeft">@drawable/set_akr_m</item>
</style>
<style name="TextAppearance.WindowTitle.sett" parent="@style/TextAppearance">
<item name="textSize">19.0sp</item>
<item name="textStyle">normal</item>
<item name="textColor">#ffffffff</item>
</style>
<style name="Theme.sett_i" parent="@style/Theme">
<item name="windowTitleSize">@dimen/akrtb</item>
<item name="windowTitleStyle">@style/WindowTitlesettt_i</item>
<item name="windowTitleBackgroundStyle">@style/settt</item>
</style>
<style name="WindowTitlesettt_i">
<item name="textAppearance">@style/TextAppearance.WindowTitle.sett</item>
<item name="singleLine">true</item>
<item name="drawableLeft">@drawable/set_akr_i</item>
</style>
Now open /decompiled_framework-res.apk/res/values/dimens.xml and add this above this line "</resources>"
Code:
<dimen name="akrtb">50.0dip</dimen>
5. Now recompile framework-res.apk and install the new framework-res.apk again using "apktool if framework-res.apk" command in command prompt. and do same with "twframework-res.apk" using this "apktool if twframework-res.apk" command.
6. Now decompile Settings.apk and open /decompiled_Settings.apk/AndroidManifest.xml. after uses-permission codes, it looks like this (see pic below).
You have to add these highlightes codes in your AndroidManifest.xml in same place
Code:
android:theme="@android:style/Theme.sett_i"
android:theme="@android:style/Theme.sett"
7. Now recompile your Settings.apk and don’t forget to sign it because we have changed AndroidManifest.xml. Now you need to disable Signature verifications in your Services.jar otherwise Settings.apk will not work.
HOW TO DISABLE SIGNATURE VERIFICATIONS IN SERVICES.JAR
a. Decompile Services.jar and open /decompiled_Services.jar/smali/com/android/server/packagemanagerservice.smali and look for this code :
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)]
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1922
and modify it like this :
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)]
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1922
const/4 v6, 0x0
8. Now push all the three files(Settings.apk, framework-res.apk and Services.jar) in your Phone using adb, or by making flashable zip or by any means.
HOW TO APPLY KITKAT/JB/ICS TITLE BAR IN USER APPS
1. First Decompile the apk you want to have this title bar. Lets say “xyz.apk”
2. Now extract the downloaded folder in your decompiled apk.
3. Now open /decompiled_xyz.apk/res/values/Styles.xml and add this above this line
"</resources>"
Code:
<style name="Theme.akr.xyz" parent="@android:style/Theme">
<item name="android:windowTitleSize">50.0dip</item>
<item name="android:windowTitleStyle">@style/WindowTitleakr_xyz</item>
<item name="android:windowTitleBackgroundStyle">@style/akr_xyz</item>
</style>
<style name="akr_xyz">
<item name="android:background">@drawable/djbtitle</item>
</style>
<style name="WindowTitleakr_xyz">
<item name="android:textAppearance">@style/TextAppearance.WindowTitle.akr</item>
<item name="android:singleLine">true</item>
<item name="android:drawableLeft">@drawable/set_akr_m</item>
</style>
<style name="TextAppearance.WindowTitle.akr" parent="@android:style/TextAppearance">
<item name="android:textSize">19.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
4. Now open directory /decompiled_xyz.apk/res/drawable-ldpi/ and change "set_akr_m.png" with the png you want to be shown on title bar and make sure that your png size doesn’t exceed 40x36 pixels.
5. Now open /decompiled_xyz.apk/AndroidManifest.xml and add this code after <application as you did in case of Settings.apk.
Code:
android:theme="@style/Theme.akr.xyz"
6. Recompile and sign it now. And install it
waw look like actionbar sherlock
nice +1
EDIT Need Help
after recompile framework-res.apk
i have a little problem
framework.apk\res\values\styles.xml:1075: error: Error: No resource found that matches the given name (at 'windowTitleSize' with value '@dimens/arktb
i have add dimens in values but cannot recompile
and settings.apk too
i has instaling framework-res.apk and twframework also
and in service jar has different smali..
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1946
this is in my service jar
attachement added if u want to help me
thanks a lot
great going
plsss tell... how to change the title bar color..
Minions_Army said:
waw look like actionbar sherlock
nice +1
Click to expand...
Click to collapse
hi Minions_Army,
don't forget to share screenshot after it is done.
Edit : Minions_Army, kindly attatch twframework-res.apk too from your phone.
qromwel said:
great going
Click to expand...
Click to collapse
Thanks bro
kartik verma said:
plsss tell... how to change the title bar color..
Click to expand...
Click to collapse
Hi Kartik Verma,
Edit this .9.png to change title bar background --> akrtbld.9.png(placed in drawable-ldpi)
Akshay Kumar Raheja said:
hi Minions_Army,
don't forget to share screenshot after it is done.
Edit : Minions_Army, kindly attatch twframework-res.apk too from your phone.
Thanks bro
Hi Kartik Verma,
Edit this .9.png to change title bar background --> akrtbld.9.png(placed in drawable-ldpi)
Click to expand...
Click to collapse
ure using galaxy pocket?
Minions_Army said:
ure using galaxy pocket?
Click to expand...
Click to collapse
No its pocket duos.(s5302). Just upload your twframework-res.apk. I'll do it for you
EDIT : one more thing btw, check your framework-res.apk again. because in guide i've written to add "<item name="windowTitleSize">@dimens/akrtb</item>" but in your previous reply, you wrote "<item name="windowTitleSize">@dimens/arktb</item>". i think this is where the problem is. anyways, just try it and if it doesn't work, send me twframework-res.apk, i'll do it for you
Akshay Kumar Raheja said:
No its pocket duos.(s5302). Just upload your twframework-res.apk. I'll do it for you
EDIT : one more thing btw, check your framework-res.apk again. because in guide i've written to add "<item name="windowTitleSize">@dimens/akrtb</item>" but in your previous reply, you wrote "<item name="windowTitleSize">@dimens/arktb</item>". i think this is where the problem is. anyways, just try it and if it doesn't work, send me twframework-res.apk, i'll do it for you
Click to expand...
Click to collapse
thanks man
tw framework added
does the back function work?
Minions_Army said:
thanks man
tw framework added
Click to expand...
Click to collapse
Hi Minions_Army, please check your twframework-res.apk again because i think you've attached wrong twframework-res.apk. i tried 3 times to decompile Settings.apk with framework-res.apk and twframework-res.apk(given by you ofcourse) installed but it always shows resources problems with twframework-res.apk. kindly check again and upload correct twframework-res.apk.
AuliaYF said:
does the back function work?
Click to expand...
Click to collapse
hi AuliaYF,
no it doesn't support back button function on title bar.
good bro:laugh::good:
hi AuliaYF,
no it doesn't support back button function on title bar.
Click to expand...
Click to collapse
okay then nice guide btw :good:
Akshay Kumar Raheja said:
Hi Minions_Army, please check your twframework-res.apk again because i think you've attached wrong twframework-res.apk. i tried 3 times to decompile Settings.apk with framework-res.apk and twframework-res.apk(given by you ofcourse) installed but it always shows resources problems with twframework-res.apk. kindly check again and upload correct twframework-res.apk.
hi AuliaYF,
no it doesn't support back button function on title bar.
Click to expand...
Click to collapse
oh sorry
i forget about this...u must install framework res.apk ics/jb/kk before decompile settings
Minions_Army said:
oh sorry
i forget about this...u must install framework res.apk ics/jb/kk before decompile settings
Click to expand...
Click to collapse
here it is. hope it works
if it works, great and if not then inform me along with logcat. but i'm sure that i'll work
EDIT : and one more thing, i've removed framework-res.apk. just don't worry about. make a flashable zip with these files (Settings.apk and Services.jar) and flash it.
Akshay Kumar Raheja said:
here it is. hope it works
if it works, great and if not then inform me along with logcat. but i'm sure that i'll work
EDIT : and one more thing, i've removed framework-res.apk. just don't worry about. make a flashable zip with these files (Settings.apk and Services.jar) and flash it.
Click to expand...
Click to collapse
thanks
ure cool man
Minions_Army said:
thanks
ure cool man
Click to expand...
Click to collapse
Yeah. Working but one problem seems like i reversed the pngs lol
Anyways no need to worry. Just follow these steps.
1. Decompile your current Settings.apk
2. Go to /Decompiled_Settings.apk/res/drawable-ldpi/ and search for these two pngs (set_akr_i.png and set_akr_m.png)
3. Now rename set_akr_m.png to set_akr_i.png.
And rename set_akr_i.png to set_akr_m.png
4. Recompile again and push in /system/app/here.
Sorry for the trouble actually i was doing some other work too while modding your Settings.apk and i probably mixed it up. Lol
AuliaYF said:
okay then nice guide btw :good:
Click to expand...
Click to collapse
back button support would be easy to add though, we can modify the Activity title layout in framework and make new imagebutton code in java with a Back button intent inside and then it would be working on almost 99% of all apps.
Sent from my Acer S500 CloudMobile
SpaceCaker said:
back button support would be easy to add though, we can modify the Activity title layout in framework and make new imagebutton code in java with a Back button intent inside and then it would be working on almost 99% of all apps.
Sent from my Acer S500 CloudMobile
Click to expand...
Click to collapse
oh you're right! but do we need to put this to the activity?
Code:
<activity
android:name=".B"
android:label="B"
android:launchMode="singleTop">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.app_name.A" />
</activity>
SpaceCaker said:
back button support would be easy to add though, we can modify the Activity title layout in framework and make new imagebutton code in java with a Back button intent inside and then it would be working on almost 99% of all apps.
Sent from my Acer S500 CloudMobile
Click to expand...
Click to collapse
that's great sir. if it works, we can have original like action bar on gingerbread devices too :good:
btw sir sorry but i don't know what you're talking about. i'm just a kid and have enough knowledge about structures of apks, xmls, layouts and how it works etc but don't have much idea about smali coding. hope you can help me to make the guide more better
EDIT : one more question sir, if we edit the activity title layout in framework-res.apk to have a back button image with a java code with a back button intend inside. it will be shown on all apps activities(including main activity too). will it not create problems? i mean main activity will also have a back button title bar and if we press it, it'll close the app? isn't it like that?
so i was thinking if there's a way to make two activity title bar layouts. one which will work for main activity of apps and another one which will work for other activities of apps.
Akshay Kumar Raheja said:
that's great sir. if it works, we can have original like action bar on gingerbread devices too :good:
btw sir sorry but i don't know what you're talking about. i'm just a kid and have enough knowledge about structures of apks, xmls, layouts and how it works etc but have no idea about smali coding. hope you can help me to make the guide more better
EDIT : one more question sir, if we edit the activity title layout in framework-res.apk to have a back button image with an java code with a back button intend inside. it will be shown on all apps activities(including main activity too). will it not create problems? i mean main activity will also have a back button title bar and if we press it, it'll close the app? isn't it like that?
so i was thinking if there's a way to make two activity title bar layouts. one which will work for main activity of apps and another one which will work for other activities of apps.
Click to expand...
Click to collapse
the only way to do the 'back' thing is using NavUtils(), and if we put inside framework the context becomes framework's context, not the application's context, the activity title layout created by framework, not the application, i tried

Categories

Resources