Use adb from Android SDK, the tools directory
(http://developer.android.com/sdk/index.html)
1) Pull framework-res.apk from /system/framework/ by command:
> adb pull /system/framework/framework-res.apk .
2) Make a copy of the original framework-res.apk to framework-res-original.apk in your tools folder (in case you screw things up )
3) Rename framework-res.apk in your tools folder to framework-res.zip
4) Open framework-res.zip
5) Replace the "circular battery" files I have attached to res/drawable-mdpi directory in the zip file
6) Use normal compression when replacing the files
7) Rename the zip file back to apk extension
8) Push framework-res.apk back to /system/framework by commands:
> adb remount
> adb push framework-res.apk /system/framework/
> adb shell reboot
Credit to giant_rider, I pulled the files out from his SuperEclair ROM
If anyone wants to create an signed apk for easy update, be my guest
awesome, will definitely use!
Need Help
I have tried this twice & it always reverts back to the standard battery icons. I push the new file with the circular battery files you uploaded. However, when I pull the framework file again to check the icons(after I reboot my phone & see that it hasn't changed) it its back to normal with the standard ones. I can't imagine why Any ideas ? ? ?
( M3GA ) said:
I have tried this twice & it always reverts back to the standard battery icons. I push the new file with the circular battery files you uploaded. However, when I pull the framework file again to check the icons(after I reboot my phone & see that it hasn't changed) it its back to normal with the standard ones. I can't imagine why Any ideas ? ? ?
Click to expand...
Click to collapse
Ready for Stericson's Metamorph apk
http://www.ansemreport.com/Kspec/KspecBattery.zip
raspdeep said:
5) Replace the "circular battery" files I have attached to res/drawable-mdpi directory in the zip file
Click to expand...
Click to collapse
i am confuse with this step, my original file only has "drawable" & "drawable-land" folders, so do i add a new folder containing your circular battery png called "drawable-mdpi"
my Magic just stay on the splash screen when i do this
----------------------
so i restore and try replace the circular battery png to the original battery png in my "drawable" (copy n paste)
my Magic still stay on the splash screen.
pls help
I have tried this twice & it always reverts back to the standard battery icons. I push the new file with the circular battery files you uploaded. Howe
Click to expand...
Click to collapse
Ready for Stericson's Metamorph apk
http://www.ansemreport.com/Kspec/KspecBattery.zip
Click to expand...
Click to collapse
Thanks. Can it be applyed to any rom?
-------------------------------------
Sent via the XDA Tapatalk App
Evil-Monkey said:
Thanks. Can it be applyed to any rom?
-------------------------------------
Sent via the XDA Tapatalk App
Click to expand...
Click to collapse
it worked for me on CM4.x.x.x donut and CM5
its actually very simple, just follow step (1) and pull the file, look for your original battery png files and replace it with the circular battery files, both original and circular battery status should have the same png file names
kakyoin said:
it worked for me on CM4.x.x.x donut and CM5
its actually very simple, just follow step (1) and pull the file, look for your original battery png files and replace it with the circular battery files, both original and circular battery status should have the same png file names
Click to expand...
Click to collapse
sweet. Im currently running pays 1.6 and i want to try to run an eclair but theyre all ugly as hell and i dont want a fully themed rom, i just want specific icons ect.
ive been looking into this for a while So i have some noob questions if you will.
1: do i need to "re-sign" the apk?
2: can i apply this method to all the icons on a rom.
for example, i like the "dowloading" icon from my current rom but would like it on an the eclair.
same goes for the text icon on the notifications bar, i like the green one but clair normally uses a black one
could i switch them out?
rgawenda said:
Ready for Stericson's Metamorph apk
http://www.ansemreport.com/Kspec/KspecBattery.zip
Click to expand...
Click to collapse
i tried this and metamorph wouldnt do it.
issues with cm6
i am consistantly getting an error message when trying to push the file onto the device stating that the device does not have room has this been addressed?
C:\androidSDK\tools>adb push framework-res.apk /system/framework
failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk': No
space left on device
Click to expand...
Click to collapse
Keep on pushing it? I did that until it finally got transferred ..
Alternatively, you can delete the previous framework apk and push the updated one.
Sent from my HTC Magic using XDA App
Tried the original method on Fresh 1.0.1, Pulled file, edited, re-pushed, got stuck at white boot screen, the one that says HTC EVO 4G or something like that.
just get metamorph from market and dr.cloverdale black bar metamorph. replace necessary battery images in black bar zip and no need to sign or push via adb.
This battery is awsome, I'm busy with my own notification bar so I can really use this!
What really is Missing is an step right before remounting the ADB.
Try the Following Steps:
1) Pull framework-res.apk from /system/framework/ by command:
> adb pull /system/framework/framework-res.apk .
2) Make a copy of the original framework-res.apk to framework-res-original.apk in your tools folder (in case you screw things up )
3) Rename framework-res.apk in your tools folder to framework-res.zip
4) Open framework-res.zip
5) Replace the "circular battery" files I have attached to res/drawable-mdpi directory in the zip file
6) Use normal compression when replacing the files
7) Rename the zip file back to apk extension
8) Restart the phone till you get to the End of the "Boot Loop" and be able to reconnect to phone again with using ADB and Entering Following command:
> adb shell reboot
9) Then push framework-res.apk back to /system/framework by commands:
> adb remount
> adb push framework-res.apk /system/framework/
> adb shell reboot
Have Fun...
Amir.
Thanks.
Followed Amir's steps and now I have circular battery .
ROM: CursorSence
Hi guys
made this small app might help, no need to root / install new ROM / Alter framework-res.apk
it gives you circular battery indicator with percentages (up to 1% if your device supports it)
just download and install the app to your device
it works with Desire and Droid X perfectly, not sure about other devices
http://forum.xda-developers.com/showthread.php?t=809553
let me know if it worked for you
cheers
Irkan, love the app. Works perfect on my MT3g 32b with CM6, and I really like the temp stats in notification bar too. Nice work
I am on the CM nightlies and trying to replace files in the framework-res.apk and putting it back messes with my phone for some odd reason. Is there anyway someone who knows their stuff make it flashable?
root?
Hello.
Must I have root-rights to do it?
Cause, when I adb Shell it and use the first command from step 1, it says:
adb pull: permission denied.
Thx
Related
Modify Your Fonts
This works with any font, even if you don't have two versions of it (Regular and Bold). Just make a duplicate of the font you want to use and rename the files to DroidSans.ttf and DroidSans-Bold.ttf. The fonts must be True Type (.ttf)!!!
Basically you need to replace the original DroidSans.ttf and DroidSans-Bold.ttf fonts from the Samsung's /system/fonts folder. There are two ways for doing this. Both of them need a rooted phone and yes, both of them can mess up your phone:
1. The mobile way (no PC needed)
- Copy the renamed DroidSans.ttf and DroidSans-Bold.ttf to the SD Card, copy them to the Samsung's /system/fonts folder and replace the original ones, using a file manager like Root Explorer mounted in R/W
2. The noob way
You must have the Android SDK Components installed.
- Go to Settings > Applications > Development and check the USB Debugging box
- Connect your SGS via USB to your computer. Do not mount in Mass Storage Mode!
- Copy a Command Prompt Window (for Windows 7 go to Start > Search > Type CMD and right click - copy it) in the android-sdk-windows\tools folder so you don't have to type all those "cd" commands and open it. Else type cd android-sdk-windows (or whatever the folder is named) and cd tools to get there
- Type adb pull /system/fonts/DroidSans.ttf and adb pull /system/fonts/DroidSans-Bold.ttf. You will see that the original fonts were copied to the \tools folder. Make a backup of them!!!
- Copy the renamed fonts you want to use (I have attached the renamed Confortaa.ttf) and replace the pulled ones in the MS Windows's adb\tools folder (again, make sure you've made a backup of the original fonts)
- Type adb push DroidSans.ttf /system/fonts/ and adb push DroidSans-Bold.ttf /system/fonts/
- Type adb reboot
I have attached the default fonts too, just in case
Later today I will make a video so all these instructions can be clear for everybody. I really don't have enough time for that right now, sry
Thanks sochet84 for the original idea
3. Thanks to SLX69's finding, there are some Flip Fonts that you just need to install and apply them from Settings > Display > Font style. Some of them are attached here.
Modify Your Notification Bar
Follow the tutorial posted here. The credits go to MacaronyMax. Thanks!
I'm currently working on moding other things like icons, menu, keyboard and I'll keep you posted.
how did you change the taskbar ? exactly the transparent like this
Modify Your Dock
Modify Your Dock
- Type adb pull /system/app/TouchWiz30Launcher.apk You will find the TouchWiz30Launcher.apk copied to the \tools folder. Make a backup!!! Maybe you'll need to put it back later.
- Open TouchWiz30Launcher.apk using WinRAR or an equivalent application and browse to the \res\drawable-hdpi folder, within WinRAR. Do not extract it!
- Drag and drop homescreen_menu_mainmenu_bg.png from the attached WhiteDock.zip in the \res\drawable-hdpi folder and close WinRAR
- Go back to the CMD window and type adb push TouchWiz30Launcher.apk /system/app
- Type adb reboot
The result is posted below. You can modify the homescreen_menu_mainmenu_bg.png image in any way you want and please post your results here. Of course, all those repetitive steps can be automated, but for the moment I don't have time to study how to. If you have any ideas, please post them, just don't brick anyone's phones
Edit: I have attached my TouchWiz30Launcher.apk files as well, in the .zip files. Can someone please try to push them to /system/app using adb, to see if they work, even if they're not extracted from their own phone? Note that I'm using an European SGS. Not working.
Post Reserved
Post reserved
Thank you man! This is handy!
How did you get the little moon and time like that? Is it in beautiful widgets?
Yes, it's Beautiful Widgets.
Sent from my GT-I9000 using XDA App
Great tutorial man! Very handy!
great tutorial! thanks!!!
Really nice, thanks!
Hi, i have a little problem.
I can pull the framework_res.apk onto my computer, but i cant push it back to the sgs, because i get an "permission denied" error.
Last login: Fri Aug 13 17:02:34 on ttys001
lukas-mac:tools lukasborek$ ./adb pull /system/framework/framework-res.apk
4476 KB/s (7174697 bytes in 1.565s)
lukas-mac:tools lukasborek$ ./adb push framework-res.apk /system/framework/
failed to copy 'framework-res.apk' to '/system/framework//framework-res.apk': Permission denied
Click to expand...
Click to collapse
Any suggestions?
thx
I have a problem with it...
I get the message:
failed to copy 'TouchWiz30Launcher.apk' to ' /system/app/TouchWiz30Launcher.apk'ermission denied
I run JM5 and on Win7 64bit if that's any help
Google for the Root Explorer app, instal and open it, press "Mount R/W".
Go to the system folder and long-press on it. Select "Permissions" and check all the boxes.
Do the same with the "framework" file.
Tell me if it works.
Sent from my GT-I9000 using XDA App
loinenavant said:
Google for the Root Explorer app, instal and open it, press "Mount R/W".
Go to the system folder and long-press on it. Select "Permissions" and check all the boxes.
Do the same with the "framework" file.
Tell me if it works.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Like a charm. Well I only tested the dock so far but I think I'll have a look to see what else is in that apk before I go to framework
Thx a lot
it works for the font. but how to undo it? i use the 1st method copy and paste. but somehow the font seems too small for me, how to switch back the original's?
If you didn't made a backup to put them back, you'll need to reflash. Or wait a few hours for me to post them here
Sent from my GT-I9000 using XDA App
i didnt know it was refering to the back up of the original font. blur me. i shall wait for u to post it here. really thanks alot!! actually this font is nice but seems abit small. haha if possible post more variety of fonts for us to choose from. hehe.
kindaichi24 said:
i didnt know it was refering to the back up of the original font. blur me. i shall wait for u to post it here. really thanks alot!! actually this font is nice but seems abit small. haha if possible post more variety of fonts for us to choose from. hehe.
Click to expand...
Click to collapse
Just Google for *.ttf fonts
Sent from my GT-I9000 using XDA App
i manage to found the file. thanks a million. anyway the glass notification bar tutorial i dont understand step 5 and 6. can elaborate on it? sorry for the trouble. i already pull out the framework-res.apk and its in the tools folder. but wad to do afterward???? i cant find \res\drawable-hdpi folder
Scrap my original post...
So I decided to make some notification icons to match the gingerbread screens that leaked, so far Ive only got the signal and data icons made, I will make more colors soon...only tested with Darkys JPO...so it may or may not work for you.. im not responsible for any data loss..
Instructions using ADB and 7zip...
1) Open up command prompt, cd to your android sdk/tools folder and use following command to pull your framework-res.apk from your phone..
adb pull /system/framework/framework-res.apk
Click to expand...
Click to collapse
2) Make a backup of you pulled framework-res.apk incase something goes wrong
3) Take the framework-res.apk you just pulled and open it with 7zip (you dont have to extract, just open it)
4) Download the attatched file below, open it and copy the files over to the opened framework-res.apk and copy them into /res/drawable-hdpi-v4/
5) Now close 7zip and go back to command prompt and type the following
adb push framework-res.apk /system/framework
adb reboot
Click to expand...
Click to collapse
6) Once the device reboots you should have green icons..
I will work on some more colors this week and post them as well...
love this nice work.
marvinhemstock said:
love this nice work.
Click to expand...
Click to collapse
Thanks!
Im gonna make some red ones tonight ...any special requests?
Sent from my GT-I9000 using XDA App
awesome work m8,
maybe with colored launcherPro icons
will be more beuthyfull
existz said:
Thanks!
Im gonna make some red ones tonight ...any special requests?
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Does this work on stock roms ?
Maybe merge this with some battery modification
Gives me a lot of Force Close Errors.
EDIT: Works! My ROM was not Deodexed.
Great Job!
worked on mine, cleard cache ran it an worked a treat downloaded the file oaver wifi 3g to slow.
I just downloaded the green data icons pack but the 1x icons seem to be missing, anyone know where i might be able to find these?
the "stock" gingerbread data icons are too small to read in the car..
Thanks!
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
Hi,
Here's a patch for stock odexed XXKI3 to remove vibrate icon from status bar. I don't know whether it's a bug or a feature but I hated it and removed according to instructions from this thread
Thanks to tripc1 for instructions.
RAWI.NO_VIBRATE_ICON.MOD.zip
This one is with:
- CRT Effect
- % Circle Battery mod
RAWI.NO_VIBRATE_ICON.MOD_2.zip
If the first doesn't work then try the second file. I removed the icon having already crt and battery mode applied, so SystemUI.apk was different than stock.
PLEASE DO BACKUP PRIOR TO INSTALLING!
As I can't post in Android Development section (I haven't made 10 posts requirement) I'm posting it here.
This Mod is by vintozver
Removing vibrator icon on ODEXED roms. If you have deodexed one - you will not need to odex the apk again, you will need to sign the apk instead.
The method works for ANY android version actually. You SHOULD backup your device prior doing this. You SHOULD think what you do.
Patch may not work for your device. I did this for SGS2 2.3.6 KI4 (stock).
===
We need:
0. jre/jdk
1. adb
2. apktool (for looking for resources if they differ in your version).
3. smali/baksmali tools
4. dexopt-wrapper (on Device)
Process:
1. Download SystemUI.apk and SystemUI.odex on your computer.
2. Download /system/framework to your computer (framework folder for clarity).
3. BOOTCLASSPATH=framework /opt/smali/baksmali -d framework/ -o dx_obj --api-level 9 -x SystemUI.odex
You'll have dx_obj folder filled with dalvik VM source code (dex-source).
4. Apply patch (see below), which strips out unnecessary code and icon updates.
5. /opt/smali/smali dx_obj/
6. Rename out.dex to classes.dex
7. Put classes.dex to SystemUI.apk file
8. copy updated SystemUI.apk to temporary folder on your device like: adb push SystemUI.apk /sdcard/SystemUI.apk
9. adb shell
# cd /sdcard
# dexopt-wrapper SystemUI.apk SystemUI.odex
# cp SystemUI.odex /system/app/SystemUI.odex
# sync
10. reboot the device (you may issue "reboot" command in the shell as well).
Enjoy!
Patch may be different for some roms and some android versions. The best method of searching the code has been explained in http://forum.xda-developers.com/showthread.php?p=18033801 (unpacking apk within apktool and looking for identifiers). PM me for further help.
You haven't packed the apk mate.
Hm, it's not necessary, the change is only in .odex file....
The solution is based not on removing the actual vibrate icon from apk file but on removing lines of code that shows the icon in status bar.
did NOT work ! :s
Ok, I posted the second file. Now it's with SystemUI.apk but also with other tweaks.
The second file works for sure.
Appologise for inconvenience.
Can you tell us what tweaks please? I'd like to know what I'm doing to my device before making any changes.
Tweaks for batt circle mod and crt effects comes from this thread and this.
After that I patched against vibrate icon according to the instructions.
Strange, I'm on KI3 and don't have the issue with the vibrate icon when vibrate is set to always on.
gr8 second file made me lose notification bar ...
Have you installed any other themes/mods that also modifiy SystemUI.apk?
The file I posted works perfect on pure stock xxki3 from samfirmware.com...
I have KI3... dont have the vibrate icon aftet i set it to NEVER in settings->sound->vibration...
is it the same thing we are talking here? why do we needed a modified app to do the same ?
Yes, but the problem occurs when you want to set the option to ALWAYS and you DONT want to see the vibrate icon all the time
You can upload ONLY remove Vibrate MOD without CRT Effect and % Circle Battery mod, cause I don't want change it.
JKay Settings app has a lot of tweaks, including removal of vibro-icon and it works on any rom.
Thanks for trying anyway.
Sent from my GT-I9100 using xda premium
Is this in the Android market? Can't find it.
Sorry, I didn't read carefully. After installing the file from the first link, everything is in ok! Thanks guys.
ikeny said:
Is this in the Android market? Can't find it.
Click to expand...
Click to collapse
You must install the file from the first link by CFW.
There is also a free app "Contact Vibrate". You can set all calls to vibrate even though you don't have it on "Always Vibrate" under general setting.
With the app, you can even customize the vibration pattern for each contact (if you wish to). If not, it will use a master pattern (your choice) for all.
This is good for unrooted users, or those that don't want to mess with the ROM anymore.
It is possible for KI4?
ikeny said:
There is also a free app "Contact Vibrate". You can set all calls to vibrate even though you don't have it on "Always Vibrate" under general setting.
With the app, you can even customize the vibration pattern for each contact (if you wish to). If not, it will use a master pattern (your choice) for all.
This is good for unrooted users, or those that don't want to mess with the ROM anymore.
Click to expand...
Click to collapse
Thx for the tip, works fine and i don't see the vibrate icon anymore.
Remove vibration/silence icon on any android 2.3.x
Removing vibrator icon on ODEXED roms. If you have deodexed one - you will not need to odex the apk again, you will need to sign the apk instead.
The method works for ANY android version actually. You SHOULD backup your device prior doing this. You SHOULD think what you do.
Patch may not work for your device. I did this for SGS2 2.3.6 KI4 (stock).
===
We need:
0. jre/jdk
1. adb
2. apktool (for looking for resources if they differ in your version).
3. smali/baksmali tools
4. dexopt-wrapper (on Device)
Process:
1. Download SystemUI.apk and SystemUI.odex on your computer.
2. Download /system/framework to your computer (framework folder for clarity).
3. BOOTCLASSPATH=framework /opt/smali/baksmali -d framework/ -o dx_obj --api-level 9 -x SystemUI.odex
You'll have dx_obj folder filled with dalvik VM source code (dex-source).
4. Apply patch (see below), which strips out unnecessary code and icon updates.
5. /opt/smali/smali dx_obj/
6. Rename out.dex to classes.dex
7. Put classes.dex to SystemUI.apk file
8. copy updated SystemUI.apk to temporary folder on your device like: adb push SystemUI.apk /sdcard/SystemUI.apk
9. adb shell
# cd /sdcard
# dexopt-wrapper SystemUI.apk SystemUI.odex
# cp SystemUI.odex /system/app/SystemUI.odex
# sync
10. reboot the device (you may issue "reboot" command in the shell as well).
Enjoy!
Patch may be different for some roms and some android versions. The best method of searching the code has been explained in http://forum.xda-developers.com/showthread.php?p=18033801 (unpacking apk within apktool and looking for identifiers). PM me for further help.
I did a search but could not find a theme that changes all the notification icons in the notification bar (i.e. for talk/ gmail/ whatsapp etc etc) + the alarm clock & vibrate icon to ICS blue.
Is there a theme out there that does exactly that?
I already made a few of these for a widget, I can make a set and upload them. You would have to adb pull SystemUI.apk, replace the png's, and then push it back to system/app.
Thank you very much!
But before you go any length, let me please read up on what you just said
What rom are you using? I can throw them in for you.
Without doing it for me- that just deserves another thank you
At this moment I'm on AOKP b27 but that varies quite a bit
So instead of you doing all the work for me (may be it is best to learn it myself since I change ROMS fairly often), would you care to help me a bit?
This is what I've found:
1. Root is prerequisite. If you're using stock rom, you can obtain cf-root from here.
2. Install android sdk from here. Eclipse is optional. The essential stuff we need is the adb from the sdk.
3. Please make a backup using cwm in case you end up deleting or corrupting your phone.
4. Connect your phone to the pc.
5. Open cmd and type cd C:\android\tools . (Depends on where is your sdk tools folder)
6. type adb pull /system/app/SystemUI.apk (Status Bar Modding)
7. Alright, now edit the .apk to .zip in your tools folder.
8. Open up the zip and replace the mdpi files inside with the one you prepared.
9. After all the changes, change the .zip back to .apk
10. Open cmd and type cd C:\android\tools . (Depends on where is your sdk tools folder)
11. type adb push SystemUI.apk /system/app/SystemUI.apk
12. Reboot your phone.
Courtesy of terrymcnuggets in this topic.
My questions; regarding
7. Alright, now edit the .apk to .zip in your tools folder; and
9. After all the changes, change the .zip back to .apk
Do i rename the .apk to .zip or do I create a .zip?
AND
8. Open up the zip and replace the mdpi files inside with the one you prepared.
the files you would be prepared to share are mdpi files? not .png?
The icons I want in ICS blue (#FF33B5E5 - or same color as the time etc in te notifcation (top) bar) are: Bluetooth icon, Vibrate icon, Alarm icon, and all of the notication icons (talk/ gmail/ whatsapp etc)
If you'd rather point me out in the directio on how to change them myself that would be great too (Photoshop?)
Many many thanks for your time
Ti2 said:
Without doing it for me- that just deserves another thank you
At this moment I'm on AOKP b27 but that varies quite a bit
So instead of you doing all the work for me (may be it is best to learn it myself since I change ROMS fairly often), would you care to help me a bit?
This is what I've found:
1. Root is prerequisite. If you're using stock rom, you can obtain cf-root from here.
2. Install android sdk from here. Eclipse is optional. The essential stuff we need is the adb from the sdk.
3. Please make a backup using cwm in case you end up deleting or corrupting your phone.
4. Connect your phone to the pc.
5. Open cmd and type cd C:\android\tools . (Depends on where is your sdk tools folder)
6. type adb pull /system/app/SystemUI.apk (Status Bar Modding)
7. Alright, now edit the .apk to .zip in your tools folder.
8. Open up the zip and replace the mdpi files inside with the one you prepared.
9. After all the changes, change the .zip back to .apk
10. Open cmd and type cd C:\android\tools . (Depends on where is your sdk tools folder)
11. type adb push SystemUI.apk /system/app/SystemUI.apk
12. Reboot your phone.
Courtesy of terrymcnuggets in this topic.
My questions; regarding
7. Alright, now edit the .apk to .zip in your tools folder; and
9. After all the changes, change the .zip back to .apk
Do i rename the .apk to .zip or do I create a .zip?
AND
8. Open up the zip and replace the mdpi files inside with the one you prepared.
the files you would be prepared to share are mdpi files? not .png?
The icons I want in ICS blue (#FF33B5E5 - or same color as the time etc in te notifcation (top) bar) are: Bluetooth icon, Vibrate icon, Alarm icon, and all of the notication icons (talk/ gmail/ whatsapp etc)
If you'd rather point me out in the directio on how to change them myself that would be great too (Photoshop?)
Many many thanks for your time
Click to expand...
Click to collapse
7. Yes, change the extension to zip. Alternatively simply open it with 7zip/winrar or another archiver.
8. mdpi is the name of the folder. when you open the apk with the archiver you will see a folder called /res/ and inside a couple of drawable[xxx] folders. in theory you should only have to modify files in the drawable xhdpi folder (since the gnex is a xhdpi device). I would suggest extracting the whole /res/ folder and looking in it.
9. if you changed the extension to .zip, change it back to apk. otherwise simply drag and drop the modified files in the correct folders.
PS: make sure you save the original SystemUI.apk somewhere, in case the modifications don't work as expected and you want to revert to the original one
Good luck!
Ok, just to be safe.
1. I connect my phone with usb and type adb pull /system/app/SystemUI.apk in cmd
2. I copy that file to 2 different locations (1 to be sure I have the original in case I screw up , 1 to try and modify)
3. I type adb push /system/app/SystemUI.apk so that my phone is still in good state
Then I go to 1 of the saved SystemUI.apk and rename it to SystemUI.zip
I search for the folder /res/ and look for the notification icons etc which I would like to change the color
Change the color of the .png files with the ICS color in photoshop and replace them
Rename SystemUI.zip back to SystemUI.apk
In cmd I type adb push /system/app/SystemUI.apk and reboot
Did I understand it all correctly? Thanks
Ti2 said:
Without doing it for me- that just deserves another thank you
At this moment I'm on AOKP b27 but that varies quite a bit
So instead of you doing all the work for me (may be it is best to learn it myself since I change ROMS fairly often), would you care to help me a bit?
This is what I've found:
1. Root is prerequisite. If you're using stock rom, you can obtain cf-root from here.
2. Install android sdk from here. Eclipse is optional. The essential stuff we need is the adb from the sdk.
3. Please make a backup using cwm in case you end up deleting or corrupting your phone.
4. Connect your phone to the pc.
5. Open cmd and type cd C:\android\tools . (Depends on where is your sdk tools folder)
6. type adb pull /system/app/SystemUI.apk (Status Bar Modding)
7. Alright, now edit the .apk to .zip in your tools folder.
8. Open up the zip and replace the mdpi files inside with the one you prepared.
9. After all the changes, change the .zip back to .apk
10. Open cmd and type cd C:\android\tools . (Depends on where is your sdk tools folder)
11. type adb push SystemUI.apk /system/app/SystemUI.apk
12. Reboot your phone.
Courtesy of terrymcnuggets in this topic.
My questions; regarding
7. Alright, now edit the .apk to .zip in your tools folder; and
9. After all the changes, change the .zip back to .apk
Do i rename the .apk to .zip or do I create a .zip?
AND
8. Open up the zip and replace the mdpi files inside with the one you prepared.
the files you would be prepared to share are mdpi files? not .png?
The icons I want in ICS blue (#FF33B5E5 - or same color as the time etc in te notifcation (top) bar) are: Bluetooth icon, Vibrate icon, Alarm icon, and all of the notication icons (talk/ gmail/ whatsapp etc)
If you'd rather point me out in the directio on how to change them myself that would be great too (Photoshop?)
Many many thanks for your time
Click to expand...
Click to collapse
That's a great attitude!!! Good for you for taking it in your own hands!!!
Sent from my Galaxy Nexus using Tapatalk
Ti2 said:
Ok, just to be safe.
1. I connect my phone with usb and type adb pull /system/app/SystemUI.apk in cmd
2. I copy that file to 2 different locations (1 to be sure I have the original in case I screw up , 1 to try and modify)
3. I type adb push /system/app/SystemUI.apk so that my phone is still in good state
Then I go to 1 of the saved SystemUI.apk and rename it to SystemUI.zip
I search for the folder /res/ and look for the notification icons etc which I would like to change the color
Change the color of the .png files with the ICS color in photoshop and replace them
Rename SystemUI.zip back to SystemUI.apk
In cmd I type adb push /system/app/SystemUI.apk and reboot
Did I understand it all correctly? Thanks
Click to expand...
Click to collapse
1. the command is: adb pull /system/app/SystemUI.apk <location>
<location> would then be, for example, c:\temp
so, adb pull /system/app/SystemUI.apk c:\temp
2. then you create a copy of the SystemUI.apk from you c:\Temp folder
3. no need to push it back. adb pull simply copies a file from the filesystem
Then you go about and do all the other stuff (extract, edit, etc.)
Finally, when all is done you must do this:
In cmd type:
mount -o rw,remount /dev/block/mmcblk0p1 /system
adb push <location/SystemUI.apk> /system/app
where <location> is the place where you have the file. so the command would be, for example:
adb push c:\temp\SystemUI.apk /system/app
can you provide the zip with the png images. I would like it so i can install via root explorer. thanks in advance!
Hey guys, I finished the set, the download link is in my icon thread since that's where the rest of my holo themed/ics blue work is.
http://forum.xda-developers.com/showthread.php?p=22296313
mrfenyx said:
1. the command is: adb pull /system/app/SystemUI.apk <location>
<location> would then be, for example, c:\temp
so, adb pull /system/app/SystemUI.apk c:\temp
2. then you create a copy of the SystemUI.apk from you c:\Temp folder
3. no need to push it back. adb pull simply copies a file from the filesystem
Then you go about and do all the other stuff (extract, edit, etc.)
Finally, when all is done you must do this:
In cmd type:
mount -o rw,remount /dev/block/mmcblk0p1 /system
adb push <location/SystemUI.apk> /system/app
where <location> is the place where you have the file. so the command would be, for example:
adb push c:\temp\SystemUI.apk /system/app
Click to expand...
Click to collapse
I'll start from here (when I can find some time), when I have further questions I'll post them here. Thanks for your help mate
Ti2 said:
I'll start from here (when I can find some time), when I have further questions I'll post them here. Thanks for your help mate
Click to expand...
Click to collapse
No problem, good luck. Shoot me a pm if you get stuck somewhere, don't forget to make a nandroid, etc.
Zer0_Cool said:
Hey guys, I finished the set, the download link is in my icon thread since that's where the rest of my holo themed/ics blue work is.
http://forum.xda-developers.com/showthread.php?p=22296313
Click to expand...
Click to collapse
And also a thanks to you for your help!
So, besides pulling them from systemUI.apk and putting thenm back, what more can I do? You told me you could "put them in my ROM" of choice. Since I regularly flas a diff rom, could you please explain to me how to do this before I flash the new rom?
Ti2 said:
And also a thanks to you for your help!
So, besides pulling them from systemUI.apk and putting thenm back, what more can I do? You told me you could "put them in my ROM" of choice. Since I regularly flas a diff rom, could you please explain to me how to do this before I flash the new rom?
Click to expand...
Click to collapse
What I meant was that I could take the SystemUI.apk file from whatever rom you are currently running. Different roms have different tweaks done here and there, and that's one of the larger areas of change, so I wanted to give you the correct one to avoid any potential complications.
Ok so I managed to pull the systemUI.apk an rename it to zip.
I found the following .png I ould like to change to ICS blue:
C:\noticons\SystemUI.zip\res\drawable-sw600dp-xhdpi
stat_sys_alarm.png
stat_sys_data_bluetooth.png
C:\noticons\SystemUI.zip\res\drawable-xhdpi
stat_notify_image.png
stat_notify_image_error.png
stat_notify_more.png
stat_sys_alarm.png
stat_sys_ringer_silent.png
stat_sys_ringer_vibrate.png
Now what I couldn't find the notification icons for Gmail/ Gtal/ Whatsapp etc etc; where can I find these? As well as bluetooth connected/ usb debugging icon etc
Ti2 said:
Ok so I managed to pull the systemUI.apk an rename it to zip.
I found the following .png I ould like to change to ICS blue:
C:\noticons\SystemUI.zip\res\drawable-sw600dp-xhdpi
stat_sys_alarm.png
stat_sys_data_bluetooth.png
C:\noticons\SystemUI.zip\res\drawable-xhdpi
stat_notify_image.png
stat_notify_image_error.png
stat_notify_more.png
stat_sys_alarm.png
stat_sys_ringer_silent.png
stat_sys_ringer_vibrate.png
Now what I couldn't find the notification icons for Gmail/ Gtal/ Whatsapp etc etc; where can I find these? As well as bluetooth connected/ usb debugging icon etc
Click to expand...
Click to collapse
wild guess: in the gmail, gtalk, whatsapp apks...
good luck
PS: editing non-system apps (also called market apps) is a bit tricky
Why is that tricky please?
So how do I change those icons?
adb pull /system/app/Gmail.apk c:\temp
rename to .zip
search for the icon, change
rename to .apk
mount -o rw,remount /dev/block/mmcblk0p1 /system
adb push C:/temp/SystemUI.apk/system/app
like that? Or should I really leave that alone as a n00b?
Ti2 said:
Why is that tricky please?
So how do I change those icons?
adb pull /system/app/Gmail.apk c:\temp
rename to .zip
search for the icon, change
rename to .apk
mount -o rw,remount /dev/block/mmcblk0p1 /system
adb push C:/temp/SystemUI.apk/system/app
like that? Or should I really leave that alone as a n00b?
Click to expand...
Click to collapse
Those app's weren't included in the set provided by google. What I (or you) will have to do is download the application you want to modify, extract it and find the png that is going to be changed, edit it, name it the same thing as it was before. Then, double click and open the original apk with the archive manager (to avoid re-signing), navigate to the folder the image was in (probably /res/drawable_something) and then drag the new file over. It will overwrite the old image without needing to extract/re-sign/etc. then you adb push theapp.apk /data/app/ and see if it works.
*do you really need to rename it to a .zip to extract on windows?
Zer0_Cool said:
Those app's weren't included in the set provided by google. What I (or you) will have to do is download the application you want to modify, extract it and find the png that is going to be changed, edit it, name it the same thing as it was before. Then, double click and open the original apk with the archive manager (to avoid re-signing), navigate to the folder the image was in (probably /res/drawable_something) and then drag the new file over. It will overwrite the old image without needing to extract/re-sign/etc. then you adb push theapp.apk /data/app/ and see if it works.
Click to expand...
Click to collapse
can this be actually done without having to resign the apk? I remember trying to change the icon for facebook once. I simply copied the new icon inside the apk and overwrote the existing one (same name but obviously, different size). It seemed to work at first but then the app disappeared from the app drawer (it was still in /data/app/ but I could not use it anymore). had to manually delete it and download and install again from market...
In order to get it to work I had to resign it but we know that is not the optimal way to work...