I have been trying to edit the systemUI.apk I have got as far as adb pushing the edited apk but after reboot and all the wipes it just stops the status bar from ever loading. I have tried the apktool apkmanager and droid explorer. I' think im doing the decompiling and compiling correct. I just cant seem to find what im doing wrong. Can this apk be edited? I just cant seem to find whats causing a issue or whats missing.
PLease HELP!!!!
michael
emjaycee30 said:
I have been trying to edit the systemUI.apk I have got as far as adb pushing the edited apk but after reboot and all the wipes it just stops the status bar from ever loading. I have tried the apktool apkmanager and droid explorer. I' think im doing the decompiling and compiling correct. I just cant seem to find what im doing wrong. Can this apk be edited? I just cant seem to find whats causing a issue or whats missing.
PLease HELP!!!!
michael
Click to expand...
Click to collapse
is it a 9.png ? are you resizing? are you changing the color mode?
its in a smali file. The whole thing i'm trying to do is hide the am/pm on the clock, hide the gps icon, hide the HAC icon, and the alarm clock. They all show 24/7 and i dont need to see them.
emjaycee30 said:
its in a smali file. The whole thing i'm trying to do is hide the am/pm on the clock, hide the gps icon, hide the HAC icon, and the alarm clock. They all show 24/7 and i dont need to see them.
Click to expand...
Click to collapse
What ROM are you using? If you can compare the mods by steelh on stock roms should give you an idea if the edit was bad. I know this might not be the answer you are looking for, but that's the best I could come up with without looking at your edits.
Lets say i decompile it with apktool, make no edits, recompile and then still it will not load
---------- Post added at 05:55 PM ---------- Previous post was at 05:44 PM ----------
when the apk is decompiled the smali files are from the classes.dex file right?
so if i compile the apk and then change to a zip and take the new edited dex file out and put it in the original apk over the dex file it should be a adb push then clear cache and dalvik cache and reboot and if it takes the edits it will work?
i have tried that and it just gets a force close on status bar and then never loads or gives anymore messages. just no status bar at all.
my edits im sure are right, but even if they were the problem if i make no edits and try to decompile and recompile, still no worky..... its sad really, once i get this done i will be complete with my phone and we can have babys....... come on some one help me i need phone babies!!!
---------- Post added at 06:10 PM ---------- Previous post was at 05:55 PM ----------
the rom is 2.3.3 4.24.651.1 cl61076 release-keys its the stock sprint rom from rom manager that was rooted zipaligned blah blah.......
What version of apkmanager r u using. In some versions the apktool is messed up
free the dirk
no resolution?
I pulled my systemui.apk, decompiled it, edited to show 1x vs 3g, compiled it, repackaged it, and pushed it and now my notification its gone.
I also need to know where i made the mistake
I just did that this morning. Just the alarm hiding for me. I use apk manager 4.9. I noticed that I got an error sometimes when I decompile, so I use option 10 to decompile with the framework-res as a dependency. The other difference is I put it in a zipped theme instead of adb pushing, but I don't think that would make a difference. Finally, I have been slowly making mods over a few weeks, so I am not sure if I started with a stock SystemUI or someone elses.
When you decode systemui you need com.htc.resources.apk for the additional resources. You won't need framework-res as apktool has those resources built in (for decoding systemui).
From all your posts I see you're missing one crucial step....you need to transfer the signature. With system/apps you don't resign, but rather transfer the signature. In 7zip or betterzip, open the original apk. Take out the directory called META-INF. That is the Sig. Place that in your new recompiled apk. Then push.
And when pushing apks that deal with the basic framework, here is what you need to do.
adb remount
adb shell stop
adb push SystemUI.apk /system/app/
adb sync (optional)
adb shell start
Technically SystemUI is system/app not a framework file....but it controls things related to the framework (ie the statusbar).
tapatalk signature here. lovely.
Related
This is my first "guide" so bare over with me
In order to change your status bar color along with the Background color, do this:
First we need the framework-res.apk from the phone
- adb remount
- adb pull /system/framework/framework-res.apk framework-res.apk
Take a backup of this file in case you failed and wants to go back.
Rename your local framework-res.apk to: framework-res.apk.zip
Open the Zip file and go here:
/res/drawable/
Locate these files and unzip them:
statusbar_background.png
status_bar_background.png
status_bar_close_on.9.png
status_bar_header_background.9.png
status_bar_item_background_normal.9.png
These are the files you want.
I sugest that you use Photoshop to do what you want with the colors, if you are using Photoshop, be carefull editing status_bar_close_on.0.png, it might look weird if you are doing it wrong.
After your done editing these pictures go here:
/res/drawable_land/
Locate and unzip:
statusbar_background.png
Do the same here as you done with the first pictures.
After you are done editing the png's, save them in your zip file.
Rename framework-res.apk.zip to framework-res.apk.
- adb push framework-res.apk /system/framework/framework-res.apk
Now restart your phone, and your Notification bar has been fixed
I'm using Open Home along with HTC Hero skin and this just looks PERFECT!
This doesn't change the Text's on your Notification Screen, that you will have to find out for yourself, or post a solution here.
Can't wait to try that out I want mine to be changed..
Update:
For changing the color of the clock, take a look at this topic:
http://forum.xda-developers.com/showthread.php?t=535630
Solution will be there during the week.
It's already available for Rogers ROM's.
WebghostDK said:
Update:
For changing the color of the clock, take a look at this topic:
http://forum.xda-developers.com/showthread.php?t=535630
Solution will be there during the week.
It's already available for Rogers ROM's.
Click to expand...
Click to collapse
Yeah i have tried to push a heap of different G1 services.jar files over to my Magic (ion rom) but was in boot loop city for every one. Oshaka has said he will modify a sapphire services.jar for me... still waiting on that- will post my results as soon as he has it for me.....
TBH though, having a status bar background black with green behind the black clock is actually probably easier for me to read than the white one......will test it out when i get the correct services.jar
got green notifications but for some reason the services.jar doesn't change....
working on it... maybe oshaka can come up with a reason for me...
I cant seem to get the services.jar to change either. I have asked Oshaka to fix it for me, and he said he would do it like 3-4 days ago.
Waiting
WebghostDK said:
I cant seem to get the services.jar to change either. I have asked Oshaka to fix it for me, and he said he would do it like 3-4 days ago.
Waiting
Click to expand...
Click to collapse
services.jar will work on hofo rom or any rom without .odex files. The problem with hero and ion roms are that they dont have the classes.dex files within services.jar. I am assuming they are in the services.odex file, which so far i have been unable to open and read to find the correct smali files.
I have called it quits trying to figure it out for now...... until the colorchanger app includes support for this i am putting it in the too hard basket.
Let us know if ohsaka gets back to you. If we get this we can theme anything we want- i made a theme template for ion which worked......
***edit*** just got a reply from Ohsaka, he said there is no way he knows of to open .odex files to edit colour inside of them. that kind of means those of us running ION or hero are **** out of luck. Until someone starts modding the HTC build a bit more (kind of like how cyanogen mods the standard 1.5 and also pulls from donut etc) then we are stuck with what we have got
Hofo rom has some potential.... maybe we should all chip in and buy cyanogen a Magic (32A of course )?
Is it possible to edit the png's in the framework zip to a translucent opacity, and push the entire zip back in to make the notification bar have some transparency?
Edit: Nm, tried it and it is more complicated than I thought lol. Screenshots of a 50% status bar png to come
I have adb etc set up and willing to try ,would be my first action on editing my phone.
Does my phone need to be rooted/re-rommed for this to work ?
I own a original out of the box T-Mobile G1 , and I really would like to change the colouring of the notification bar to match the colour of my background picture, but not at the expense of giving up my warranty ( not yet ) , depends on future updates of G1 which is doubtfull at the moment I believe
jinglebinkie said:
I have adb etc set up and willing to try ,would be my first action on editing my phone.
Does my phone need to be rooted/re-rommed for this to work ?
I own a original out of the box T-Mobile G1 , and I really would like to change the colouring of the notification bar to match the colour of my background picture, but not at the expense of giving up my warranty ( not yet ) , depends on future updates of G1 which is doubtfull at the moment I believe
Click to expand...
Click to collapse
I haven't tried this out at a non-rooted phone, but yes, it will work on a non-rooted phone, so just go ahead.
Don't be affraid about the warrenty, you can always say you downloaded a skin on market
MontAlbert said:
services.jar .......
Click to expand...
Click to collapse
Totally noob to this crazy world, what does the services.jar do?
What effects does it have? I'm trying to edit the notification bar/icons.
Am I limited to what can be done because of this "services.jar" ?
I keep getting "remount failed: Operation not permitted" when i try to remount
can you do this on the droid eris
should work on eris,just do a nandroid backup first just in case you need to roll back
I just wanted to let people know, i ran into a problem with force closing constantly.
Solution i came up with is if you have the custom OC kernel, you must edit the
pictures and stuff for your UI and then flash the kernel. If the kernel is already in place
it will conflict with the 'adb push framework-res.apk /system/framework/framework-res.apk'
And a data value will change, causing force closes.
~
So, is there any way I can grab the smileys aswell and change them? I want the SonyEricsson smileys instead of those android ones.
I also get force close (of the market app) after modifying images in a custom ROM, on a T-Mobile Pulse. jamsk8er1994, could you explain in more detail what you mean by "edit pictures and flash your kernel"?
The same goes for those of you who want to change the smileys that you see on your phone. If you're tired of those robots you go into
- framework-res.apk\res\drawable-mdpi-v4
and find the files called "emo_im_"
There is 17 files, png's. open photoshop and make the smileys you'd like in a 20x20 canvas (pixels). save for web and devices -png 24, with the same name. In example: (The grinning smiley :-D) is emo_im_laughing.png
Then you drag the new png you've made into the apk file and choose replace existing.
Note: this is only for your viewing, others will not see the smileys you have on your phone unless they got the same on theirs. If they have the droid ones that is what they see when you send. But if they send you a droid smiley you see the custom one you've put in yourself.
i changed all the colors to black on PS. dragged them back into the zip file, renamed it to "framework-res.apk" and typed in the command in the cmd. I got a message saying "failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk' : No space left on device".
what do i do?
Awesome thingy, I'll make everything non-glossy.
Does anyone have a Mail.apk that will decompile and recompile with out an error? I am trying to invert the Mail apk and when I try to recompile it, it errors out. I think it is something in Smali that is making it error out. If I go ahead and push it to the phone, I get a force close. I have tried several different roms to see if I can get one that will work including the stock Froyo that rmk40 posted back in October.
Devildog8791 said:
Does anyone have a Mail.apk that will decompile and recompile with out an error? I am trying to invert the Mail apk and when I try to recompile it, it errors out. I think it is something in Smali that is making it error out. If I go ahead and push it to the phone, I get a force close. I have tried several different roms to see if I can get one that will work including the stock Froyo that rmk40 posted back in October.
Click to expand...
Click to collapse
If you don't need to decompile the smali, you can use apktool d -s mail.apk, this will decompile resources.arsc, but not devompile the smali.
Also, you may need to change all of the *dpi folders (drawable-hdpi, mdpi, and such) to drawable-hdpi-v4. If you can get a logcat of *:E when it's crashing, I can try to help you out.
WoZZeR999 said:
If you don't need to decompile the smali, you can use apktool d -s mail.apk, this will decompile resources.arsc, but not devompile the smali.
Also, you may need to change all of the *dpi folders (drawable-hdpi, mdpi, and such) to drawable-hdpi-v4. If you can get a logcat of *:E when it's crashing, I can try to help you out.
Click to expand...
Click to collapse
I use APK Manager. Is there a way to exclude smali in there?
I'll see what I can do about the logcat and get back with you. Thanks
Devildog8791 said:
I use APK Manager. Is there a way to exclude smali in there?
I'll see what I can do about the logcat and get back with you. Thanks
Click to expand...
Click to collapse
If you want, you can post the mail.apk, and I can take a look at it.
If you just want to change the graphics, you could just extract the drawable files as if it were a zip file. Just don't edit the 9.png files.
Hello
I changed some png images with 7zip and copied back to system/framework/ but i got boot loop.
I would like to know how to modify and replace .apk that will work normal?
Thanks
How exactly did you replace the png's? Because the 'normal' proces of unzip-replace-rezip doesn't work.
The most easy way to changes png's:
1. Open framework-res.apk in 7-zip
2. Search for the files you want to change and copy them to your hard disk (do not unzip!!)
3. change the files. Make sure the name stays EXACT the same.
4. Open framework-res.apk and copy your new files in the desired place. By doing so, the original files will be replaced by your files. DO NOT USE ANY COMPRESSION (if asked select 'store').
5. Go into recovery, mount /system and replace the framework-res.apk by the new one. Reboot phone.
Take home message: never unzip
Hope it works now!
Erwin
i went to recovery and hit mount/system. But how can i replace it?
Thanks
urkotheone said:
i went to recovery and hit mount/system. But how can i replace it?
Thanks
Click to expand...
Click to collapse
You have to use adb to do is. I assume you know how to work with it. If not, you have to search for a little tutorial (can't link you right now because I'm using the xda app)
Put the new framework-res.apk in the same folder as adb.exe. Open the command prompt and brows to that same folder. Type in your command prompt:
Code:
adb shell mv system/framework/framework-res.apk system/framework/framework-res.old
adb push framework-res.apk system/framework
adb reboot
Due to the first command, you have a backup of your original framework-res.apk. To restore it, you have to boot in recovery, mount /system and again by the use of the command prompt, type:
Code:
adb shell rm system/framework/framework-res.apk
adb shell mv system/framework/framework-res.old system/framework/framework-res.apk
adb reboot
Erwin
Yeeeeey i did it
Thank you
One more problem
When discharging it's working, but when I charge phone i don't get no battery icon. I believe it's because in original framework i had 100 png animations for charging and now i have only 20. Is there a way to fix this?
urkotheone said:
One more problem
When discharging it's working, but when I charge phone i don't get no battery icon. I believe it's because in original framework i had 100 png animations for charging and now i have only 20. Is there a way to fix this?
Click to expand...
Click to collapse
Then it is going to be much more complicated than that. Perhaps I can explain you in more detail tomorrow, but you will have to look up some things for yourself.
First, you should decompile the framework-res.apk first using apktool. You will notice that it almost looks like it just dezips your apk, but when you look closely, you will see now that you can open and read the xml files.
Second, you have to open res\drawable\stat_sys_battery.xml (or something similar, perhaps it depends on your ROM). Try to understand what is written and make some changes (it is really not that hard) so that your system shows only 20 different images, in stead of 100.
Third, you have to recompile your modified framework-res.apk. Then pull stat_sys_battery.xml out of "your" framework-res.apk into the original framework-res.apk, but again, without unzipping one of them. Do, of course, the same thing with your images.
I must admit, I've been busy with the battery icons myself. It was my plan to do something similar like you did, but I didn't do it yet. So all the things I've written above where the things I was planing to do, but I don't know if it will work, as I never tried it myself. So please, keep me/us informed ;-)
Good luck!
EDIT: I used this site to know how to decompile apk's.
This is an old thread but I wanted to edit my systemUI.apk file with changing out a couple images... if I was to upload the file I edited (by just swapping out the images) to the UOT kitchen and use a mod, say the battery mod, would it make the file usable on my phone or would I get a bootloop or worse?
Basically what I did was opened up the SystemUI.apk file using 7zip and just swapped out the images I wanted (making sure I saved the original ones of course). I didn't unzip/zip anything.. I just opened it using 7zip and then closed it. It didn't ask me if I wanted to save anything though??
Sorry for the stupid question... but I thought it would be an idea as I want to use the UOT to make a mod to the theme I have anyways.
crazy_dragonlady said:
This is an old thread but I wanted to edit my systemUI.apk file with changing out a couple images... if I was to upload the file I edited (by just swapping out the images) to the UOT kitchen and use a mod, say the battery mod, would it make the file usable on my phone or would I get a bootloop or worse?
Basically what I did was opened up the SystemUI.apk file using 7zip and just swapped out the images I wanted (making sure I saved the original ones of course). I didn't unzip/zip anything.. I just opened it using 7zip and then closed it. It didn't ask me if I wanted to save anything though??
Sorry for the stupid question... but I thought it would be an idea as I want to use the UOT to make a mod to the theme I have anyways.
Click to expand...
Click to collapse
I don't know if I understand you fully, but I believe it would: only if the UOT changed the images that you have changed, you will not see the things you have changed.
What I did some time ago was upload my framework en systemui to the UOT, apply the battery mod and than change the battery images with my own. I did that just by opening the apk in WinRAR and adding my images, just like you did.
But if you only want to swapp some images, there is no need for uploading it to the UTO. Just continue as you did. Just make sure that you keep the original systemui.apk on your hdd. In case of a bootloop, you can easely revert.
Is that een answer to your question?
Erwin
Yes, it does.. and thanks. I ended up following the instructions on another thread I found on here... don't remember exactly which one but it basically omitted uploading the files to the UOT. It was a guide on how to theme your phone... sorry but I didn't save the link.
thanks again!
CDL.
urkotheone said:
Hello
I changed some png images with 7zip and copied back to system/framework/ but i got boot loop.
I would like to know how to modify and replace .apk that will work normal?
Thanks
Click to expand...
Click to collapse
Same thing happened to me!
I Wiped Cache, Dalvik Cache, but nothing happened!
I had to flash 2.3.6 Stock ROM via Odin, to make my phone work!
I always work with Winrar, and in there you have the option for compression, which is selected at "medium compression" by default, and that causes bootloops.
So make sure that you don't compress your apk when adding your new png, or it will not work.
Erwin
I change my framework-res.apk from another rom. the problem is when I push long power button, my device going to BOOTANIMATION with out I choose shutdown, restart n etc.. what's wrong with my device??
sorry for my bad eng..
The problem is its another roms framework so things are in different places and some things will be missing, put the framework-res.apk from your rom back and things should go back to normal, mind me asking what tweak or mod you are after using?
Sent from my HTC Wildfire using xda premium
first time I must say sorry, I know this not my device place on XDA, I use MB525.. but I see the same problem here..
I use Ms3ginger mod rom by walter, n I take framework-res.apk from 2.3.6_4.5.2-109 DHT25_themed MultiLanguage, I try to change battery sys-stat but I get bootloop..
once again sorry for my bad eng
If not possible try
Adb remount
First
hello all. I've been reading threads about pulling, pushing, editing, unpacking, signing, and all that for days now, but I still can't get my edited framework-res.apk to actually take effect .
I'm just trying to change some of the system notification icons, but when I replace the .apk, and reboot, the changes never take place. what am I doing wrong?
also apk tool CANNOT recompile my framework-res.apk, and since I'm only doing .png changes (not a 9.png mind you) I just open the original framework apk and overide the pngs that I want... at that point, I dont resign or anything...
I am rinning Swagged out Stock based on 2.3.5
kernel: 2.6.35.10-g4b48446
build: SOS N
software: 2.0.9\4.67\ODEX
and using clockworkMod 5.0.2.2
-I've tried just using root explorer to overide the original and permissions, and after I reboot no changes took place.
-I've tried adb pushing to the framework folder (but with not fancy permission commands, could that be the issue?) and then wiping dalvik(sp?) cache but no changes took place.
-I've also tried using an update.zip file but i can't figure out the actual code that needs to go into the "update-script" file.
Anyway, is there an obvious reason why I'm failing? I had success with editing and updating other .apk files (my music.apk for example works fine when I decompile ... compile.... and sign)
thanx for any help!
Guide – Change Navbar D.P.I. in Android Jelly Bean (4.1.1)
•Thanks to Vomer for helping me learn this and answering my questions when I had them… Also for persuading me to write this guide for others users to hopefully use to learn a small bit of Android modding, which will hopefully create more publically used mods for the benefit and growth of the community. Let’s get it…
First thing is first… This guide is created with the Galaxy Nexus in mind. Even though other phone brands (Samsung, H.T.C., LG, Sony, etc.) are now upgrading their handsets to Android Jelly Bean, this guide is created with my experience with the pure Google experience in mind and pure Google O.S. *If you are using a rom with Samsung Touch Wiz, H.T.C. Sense or anything else produced/provided by another company, this isn’t for you, although it may answer some questions and get you started in the right direction…
THE TOOLS:
I’m using an ApkTool package, which were obtained from a thread created by monstaX < Credit to him!
First off, go to this webpage http://www.mediafire.com/?acrgcd0w850q0gj and download the file. File name should be “apktoolsJB.zip”. Once you have the tools downloaded, unzip them to your desktop.
Inside the unzipped file, you will locate the following files; aapt.exe; apktool.bat; apktool149.jar; apktool142.jar; apktool144.jar and baksmali.jar.
After confirming that the above listed files are present, rename “apktool149.jar” to “apktool.jar”.
That’s it for the tools, leave the file on your desktop, as this will ultimately be your workspace along with a command prompt.
I would also download 7-Zip and Notepad++ from the internet. You can Google those two programs and download them if you don’t already have them….
GETTING WINDOWS READY:
The next thing we need to do is remove the “Environmental Values”. If you have attempted to edit/mod any apks in the past, you probably set up “Environmental Values” in “Path” under “System Variables”. If you have done this, simply navigate back to “System Variables>Path” and delete the added non-sense that you added before. An example would be something like “Android\SDK\platform-tools\;” Make sure that after you’re done deleting, you leave a “;” at the end of the “Path Variable” line of text.
Now for the fun part:
DECOMPILE/COMPILE
Once you have done the above steps, you’re now ready to have some fun.
First off, you need to download a copy of the .zip file of the ROM you’re using onto your computer OR transfer a copy of the framework-res.apk and SystemUI.apk to your computer from your G-Nex. Once you have located these files, you need to place both files into the JBapktool folder that we unzipped onto the desktop earlier.
Once you have placed both files into the JBapktool folder, open the folder and shift+right-click somewhere inside the folder (NOT ON A FILE). Once you have done that and a menu has popped up, select “Open Command Window Here”.
Once the command window has opened; you need to install the framework-res.apk… Now there is a bunch of technical jargon for this but simply and easily type the following command;
java –jar apktool.jar if framework-res.apk
You will see a line that reads “ Framework installed to: C:\Users\yournamehere\apktool\framework\1.apk”
After the above line appears, you will now decompile the framework-res.apk file. To do this, type the following command;
java –jar apktool.jar d framework-res.apk
You will now see something like:
I: Loading resource table…
I: Loaded
I: Decoding file-resources…
I: Decoding values*/* XMLs…
I: Done
I: Copying assets and libs…
*DON’T CLOSE THE COMMAND PROMPT*
After you see that, you should notice that a new file has been added to the JBapktool folder, which should be named “framework-res”. Inside that folder, you will observe the following folders/files; assets; build; dist; res; AndroidManifest.xml; apktool.yml. The file that we are worried about is the “res” file. Open the “res” folder and then navigate to the “values” folder and look for a file named “dimens.xml”. The “dimens.xml” is where the magic happens. Right click on this file and open as “Edit with Notepad++”.
Once Notepad++ is open with the “dimens.xml” file open, you want to focus on three strings in the file. The strings are: 36.0dip
36.0dip
32.0dip
*For a 32 DPI nav bar, I personally use 32 for the height and 28 for the width.*
Now here, the parts of the string that we want to change are highlighted in yellow and represent the “DPI” of the nav bar. The above lines are from a “dimens.xml” file that I changed to make a “36 DPI” nav bar. Once you have made the changes to the above dimensions, just click file and save in Notepad++ and close the program.
Now to compile the “framework-res” folder back into an .apk.
Simply go back to the command prompt that we opened earlier (you shouldn’t have closed it, but if you did follow steps above to open a new one, reinstall the framework-res.apk (STEPS ABOVE) and then continue).
Type the following command;
Java –jar apktool.jar b framework-res
You will see the following (hopefully);
W:Could not find sources
I:Checking wheter resources has changed…
I:Building resources…
I:Building apk file…
After this, you should revert back to the “JBapktool” folder and navigate to “framework-res” folder>”build”>”apk”… Look for the “resources.arsc” file. THAT’S THE MONEY SHOT…
Using 7-zip, you want to open the “framework-res.apk” file that we originally began with (I would make a copy of it and put it on my desktop). Right-click on the “framework-res.apk” file, click 7-Zip and then open archive. A new window will open, showing the visible files inside the framework-res.apk. Look for the file “resources.arsc”. Delete it, locate the “resources.arsc” from the framework-res folder (framework-res>build>apk) in the JBapktool folder. Click and drag it to the unzipped original framework-res.apk file and drop it. WE’RE DONE WITH THE FRAMEWORK-RES.APK FILE.
Now simply place that file in a CWM flashable .zip file and hold tight.
Now we need to decompile the SystemUI.apk that we placed in the JBapktool folder earlier. Follow the above listed instructions to complete this, same as we did with the framework-res.apk.
Once you have the SystemUI.apk file decompiled, look for a folder in JBapktools named “SystemUI”. Inside the “SystemUI” folder, navigate to res>layout>navigation_bar.xml. We now want to open the navigation_bar.xml file with Notepadd++, so that we can delete two lines in it that would cause a larger back button on the nav bar if left intact.
Inside the navigation_bar.xml file look for the following two lines:
"@drawable/ic_sysbar_back" android:scaleType="center"
"@drawable/ic_sysbar_back_land" android:scaleType="center"
Now, we want to delete the following from both lines:
android:scaleType="center"
After deleting that line from both lines, save the file by clicking file>save and close Notepad++. Now back go back to JBapktools and to the already opened command prompt window (it should still be open).
We are now going to compile the SystemUI. To do this type the following command;
java –jar apktool.jar b SystemUI
You will see some text in the command prompt and will ultimately see I:Building APK file…
Once this is complete, navigate back to the JBapktool folder and to the SystemUI file. Once you have the SystemUI folder open, we need to navigate to build>apk and look for the following file; AndroidManifest.xml. Now this is important, we need to replace this file with the AndroidManifest.xml file from the original unzipped SystemUI.apk. So open the original SystemUI.apk with 7-zip, and copy “META-INF” and “AndroidManifest.xml”. Once you have those copied from the original unzipped SystemUI.apk, relocate back to the JBapktool folder>SystemUI>build>apk and paste both of them. If asked to replace, CLICK YES OR REPLACE ON ALL WARNINGS THAT POP UP!!!!
Now we need to back out to the SystemUI folder in JBapktool and click on the folder that is named “dist” (the “dist” folder is where the freshly compiled SystemUI.apk is located once we type in the compile command in the command prompt). Once inside the “dist” folder, you will see a SystemUI.apk file. DELETE IT… We never use the first SystemUI.apk that we compile, because we needed to added the META-INF and AndroidManifest.xml files for signing purposes. Once you have the 1st compiled SystemUI.apk deleted, return to the command prompt and enter the compile command again and compile a 2nd SystemUI.apk.
The 2nd SystemUI.apk will appear in the “dist” folder and is the usable SystemUI.apk.
Now that you have your new SystemUI.apk compiled, place it in the same CWM flashable .zip file, boot into recovery, wipe cache and dalvik cache and VOILA, you have just pimped your nav bar’s DPI.
•Remember when placing the SystemUI.apk file into your CWM .zip file to place it under /system/App. And when placing your framework-res.apk into your CWM .zip file it goes under /system/framework…
The mods and this guide take time for us to put together for your enjoyment/the improvement of the community. If I or anyone else has helped you, please hit the “Thank You” button. Thanks.
Great tutorial
Sent from my Galaxy Nexus using Tapatalk 2
Thank's man.....................
APatte111: could you upload your 32 height 28 landscape framework-res for v4 rom ?
Great guide.
If you dont want to waste time uploading....its all good anyway mate :good:
bs android said:
APatte111: could you upload your 32 height 28 landscape framework-res for v4 rom ?
Great guide.
If you dont want to waste time uploading....its all good anyway mate :good:
Click to expand...
Click to collapse
This is not the mods thread
Great job bud!
Also, remember guys - if you make a MiNCO Mod - share with other's in the MiNCO Plus+ Thread. Chances are someone else would want it too
bs android said:
APatte111: could you upload your 32 height 28 landscape framework-res for v4 rom ?
Great guide.
If you dont want to waste time uploading....its all good anyway mate :good:
Click to expand...
Click to collapse
This framework-res.apk is in place in several of the mods in the MiNCO Plus+ mods and enhancements thread that vomer began... Just download one of the mods and extract the framework-res.apk from one of the .zip files... Probably the easiest way to get it...
Sent from my Galaxy Nexus using xda premium
vomer said:
This is not the mods thread
Great job bud!
Click to expand...
Click to collapse
OK sorry for asking OP if that annoys you
APatte111 said:
This framework-res.apk is in place in several of the mods in the MiNCO Plus+ mods and enhancements thread that vomer began... Just download one of the mods and extract the framework-res.apk from on of the .zip files... Probably the easiest way to get it...
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Nice APatte, I saw it now, downloaded and tried your framework with vomers standard white for minco rom. Got the failure in back button so guess I have to wait till I get home to a computer to fix it. Thanks for the guide anyway, love different and smaller navbars.
bs android said:
Got the failure in back button so guess I have to wait till I get home to a computer to fix it. Thanks for the guide anyway, love different and smaller navbars.
Click to expand...
Click to collapse
Yeah, if by "failure" you mean the larger back key then that is being caused by the un-edited navigation_bar.xml file which is located in SystemUI.apk>res>layout... You need to delete the two lines mentioned above, re-compile the SystemUI.apk and everything should be golden. Let me know if it doesn't work and I will help ya... Good Luck
Good guide!
Great job man!! Great tutorial!
:good::good::good::good::good:
MAN CHANGE THIS IS WRONG!! Java –jar apktool.jar b frame-work
IT IS java -jar apktool.jar b framework-res
masterchif92 said:
MAN CHANGE THIS IS WRONG!! Java –jar apktool.jar b frame-work
IT IS java -jar apktool.jar b framework-res
Click to expand...
Click to collapse
Thanks, you found a typo and the one mistake in the whole guide... Appreciate that...
Sent from my Galaxy Nexus using xda premium
After looking at 5 or 6 other guides. This one is BY FAR the easiest to understand & includes everything you need to get the job done.
Thanks a ton OP!
i cant seem to find the "@drawable/ic_sysbar_back" & "@drawable/ic_sysbar_back_land" in the navigation_bar.xml file. Any help please? I must mention that i am on AndroidME CM10 1.7.0 and took both files from the cwm zip.
Only repeating line i can find is "@drawable/ic_sysbar_lights_out_dot_large" . Dont know if it is the same.
I ve done some android developing in the past. every linear_layout represents a button, right?
angelossssss said:
i cant seem to find the "@drawable/ic_sysbar_back" & "@drawable/ic_sysbar_back_land" in the navigation_bar.xml file. Any help please? I must mention that i am on AndroidME CM10 1.7.0 and took both files from the cwm zip.
Only repeating line i can find is "@drawable/ic_sysbar_lights_out_dot_large" . Dont know if it is the same.
I ve done some android developing in the past. every linear_layout represents a button, right?
Click to expand...
Click to collapse
Can you upload the navigation_bar.xml file for me so I could have a look...
*** Nice signature by the way *** LOL
Sent from my Galaxy Nexus using xda premium
APatte111 said:
Can you upload the navigation_bar.xml file for me so I could have a look...
*** Nice signature by the way *** LOL
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
here. i uploaded in my dropbox.
https://www.dropbox.com/s/7331l8fqs7a99yg/navigation_bar.xml
Thanks for the signature
---------- Post added at 08:25 PM ---------- Previous post was at 08:17 PM ----------
angelossssss said:
here. i uploaded in my dropbox.
https://www.dropbox.com/s/7331l8fqs7a99yg/navigation_bar.xml
Thanks for the signature
Click to expand...
Click to collapse
actually nevermind that... i just flashed the cwm without the systemui.apk and it seems to be working fine. lol
angelossssss said:
here. i uploaded in my dropbox.
https://www.dropbox.com/s/7331l8fqs7a99yg/navigation_bar.xml
Thanks for the signature
---------- Post added at 08:25 PM ---------- Previous post was at 08:17 PM ----------
actually nevermind that... i just flashed the cwm without the systemui.apk and it seems to be working fine. lol
Click to expand...
Click to collapse
I was going to say, it looks like they have already removed that from the navigation_bar.xml file... The description of the ROM shows that Nav Bar Options are included... You could change the DPI size, compile and see if the back button is larger (which is what deleting those two lines fix)... If it's not (which you stated it's working) then skip that step....
APatte111 said:
I was going to say, it looks like they have already removed that from the navigation_bar.xml file... The description of the ROM shows that Nav Bar Options are included... You could change the DPI size, compile and see if the back button is larger (which is what deleting those two lines fix)... If it's not (which you stated it's working) then skip that step....
Click to expand...
Click to collapse
y i only compiled the framework-res.apk but i thing now my phone became a little laggy. especially when swipping between screens and opening apps.
i'll check it out if i did anything wrong.
angelossssss said:
y i only compiled the framework-res.apk but i thing now my phone became a little laggy. especially when swipping between screens and opening apps.
i'll check it out if i did anything wrong.
Click to expand...
Click to collapse
Check in the ROM and see if there is already a built in option to change the nav bar DPI size... if not, make the changes to the dimens.XML file and then recompile/replace the .apk and re-flash... that should work and everything should be normal...
Sent from my Galaxy Nexus using xda premium
APatte111 said:
Check in the ROM and see if there is already a built in option to change the nav bar DPI size... if not, make the changes to the dimens.XML file and then recompile/replace the .apk and re-flash... that should work and everything should be normal...
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
unfortunately there is not. it only has options to change the buttons order.