Stripping parts of a theme - Android Themes

How would I strip just the battery icon(s) used in a particular theme? I haven't been successful with my research on how to do so. Thanks in adavnce.

Just extract framework-res.apk in framework folder.

Then look in /res/drawable

d750 said:
Just extract framework-res.apk in framework folder.
Click to expand...
Click to collapse
I just tried to do this and replaced the battery icons in the ROM.zip file I had, then tried to use a autosign.bat to resign the ROM.zip file, tried to reflash, and ended up hanging my phone at the boot screen + having to do a nandroid restore.
Would you happen to know the correct process for replacing JUST the battery icons on the phone itself using the framework-res.apk?
something like adb push /system/framework-res.apk?

Neejay said:
I just tried to do this and replaced the battery icons in the ROM.zip file I had, then tried to use a autosign.bat to resign the ROM.zip file, tried to reflash, and ended up hanging my phone at the boot screen + having to do a nandroid restore.
Would you happen to know the correct process for replacing JUST the battery icons on the phone itself using the framework-res.apk?
something like adb push /system/framework-res.apk?
Click to expand...
Click to collapse
I would make a metamorph, there simple to do and will get what you want done

I ended up just changing the apk to zip, replacing the .png files, changing the extension back to apk, and just using adb to copy the framework-res.apk back to the phone.

If you want i make it for you send me framework-res.apk and battery icons.

Where would you find the keyboards so I can get a different one. The one I have is very hard on my eyes...

Related

Black Screen after applying Theme

well guys, i edited the framework-res.apk, resigned it and put it back into the rom (bluemagic) but unfortunately it shows the bootscreen (after splash1) and then the screen just gets black. well. i don't know why, i´ve checked the files twice and it still not works.
any suggestions?
alutastisch said:
well guys, i edited the framework-res.apk, resigned it and put it back into the rom (bluemagic) but unfortunately it shows the bootscreen (after splash1) and then the screen just gets black. well. i don't know why, i´ve checked the files twice and it still not works.
any suggestions?
Click to expand...
Click to collapse
Did you place it back into the update.zip file, resign and flash that or did you push framework-res.apk to /system/framework directory?
Also... your edits in framework-res.apk, did they consist of changes to any 9.png files? Editing those files (the 9.png) can cause problems. The best way to edit those files are from source and then either export the edited files using Eclipse or make the apk file using Ubuntu from the source.

Hide Battery Status

is there a way to hide the android battery status or display the % on it? there are plenty of apps that show % but its kinda redundant to have both displaying on the task bar.
i am runing rooted stock rom. any ideas are apreciated, thanks
You can do both with CyanogenMod. Or you can just replace the images in framework-res.apk
Here is a red round battery with percentages:
thanks everyone
thank you, i just deleted the images from framework-res and installed a battery indicator from market. so now i have 1 battery with correct %. too bad i cant move it to the right
dkhait said:
thank you, i just deleted the images from framework-res and installed a battery indicator from market. so now i have 1 battery with correct %. too bad i cant move it to the right
Click to expand...
Click to collapse
How do you do this? Do you copy the original framework-res.apk to PC and then open and remove the battery pictures then move the modified framework-res.apk back to the device and install? I tried this but the apk wont install.
nfcrockett said:
Here is a red round battery with percentages:
Click to expand...
Click to collapse
How do you install this file? I tried installing it from clockwork mod recovery, but it didn't take.
Asterdroid said:
How do you install this file? I tried installing it from clockwork mod recovery, but it didn't take.
Click to expand...
Click to collapse
you cant install that file. you have to pull framework-res.apk from the /system/framework. then open it with 7zip and overwrite the exiting images with those. then push it back into the phone.
adb pull /system/framework/framework-res.apk
then after injecting new images
adb push framework-res.apk /system/framework/
dkhait said:
you cant install that file. you have to pull framework-res.apk from the /system/framework. then open it with 7zip and overwrite the exiting images with those. then push it back into the phone.
adb pull /system/framework/framework-res.apk
then after injecting new images
adb push framework-res.apk /system/framework/
Click to expand...
Click to collapse
Worked like a charm. Thanks!
Any idea where I can get my hands on red-themed 3g/location/clock/wifi/gps/alarm etc. notification icons?
I can't get the file to push. I am connected via USB with USB debugging on in charge only mode. At CMD prompt I can adb shell and su.
adb push framework-res.apk /system/framework/
gives error adb: not found
I have edited the file by removing some png and then saving it back to the sdk root and the sdk/tools folders.
If I get this to push do you have to then install the apk from the device?
wpbear said:
do you have to then install the apk from the device?
Click to expand...
Click to collapse
-Install 7zip (just google it)
-Reboot phone into recovery.
-Connect USB cable
-Go into Partitions menu in recovery
-Mount /System
-Open your command prompt on your PC
-Change the directory to wherever your sdk/tools are located
-type the following command line: adb pull /system/framework/framework-res.apk
Now the file is in your sdk/tools folder
-Right click on framework-res.apk and open with 7zip
-Copy the files from the round battery zip folder to the corresponding folder with the 7zip archive. They will automatically overwrite
-Exit 7zip
-Back in the command prompt type the following command line: adb push framework-res.apk /system/framework/
-On your phone, unmount /system, then back out of the partitions menu and reboot your phone.
Should be all set!
wpbear said:
I can't get the file to push. I am connected via USB with USB debugging on in charge only mode. At CMD prompt I can adb shell and su.
adb push framework-res.apk /system/framework/
gives error adb: not found
If I get this to push do you have to then install the apk from the device?
Click to expand...
Click to collapse
I think you need to mount the system folder in the partitions menu of recovery. My instructions are one post up.
Thanks got it. I switched back to the orignal apk though. I wanted the status hidden, and while deleting the png worked, it still leaves a blank space instead of moving the icons over so it doens't look good. Thanks for the help.
nfcrockett said:
Here is a red round battery with percentages:
Click to expand...
Click to collapse
I really like this icon, but is there any way to use this without the percentages in the middle? It makes it look more cluttered, and it's not very useful as they only change between 100, 80, 60, etc.
So is there any way to either make them more accurate, or remove them completely? I really like this indicator otherwise, more neat-looking than the one that comes with the jonnybueno theme (which rocks otherwise!)
Thanks all.
I made a white round battery meter if you don't care for the red.
Why can't this be packaged up into a zip for us to just go into recovery and clockwork and install zip. Don't really understand why we have to go through all the steps of adb to get this to work. So if possible could someone please put it all together to make it easier to use. Thanks
wpbear said:
How do you do this? Do you copy the original framework-res.apk to PC and then open and remove the battery pictures then move the modified framework-res.apk back to the device and install? I tried this but the apk wont install.
Click to expand...
Click to collapse
you cant install it, you have to overwrite it in recovery mode.
adb pull /system/framework/framework-res.apk
modify
then
adb push framework-res.apk /system/framework/
corywf said:
I made a white round battery meter if you don't care for the red.
Click to expand...
Click to collapse
Is there one for blue please?
What color blue do you want? Just regular blue?
WingHater said:
Why can't this be packaged up into a zip for us to just go into recovery and clockwork and install zip. Don't really understand why we have to go through all the steps of adb to get this to work. So if possible could someone please put it all together to make it easier to use. Thanks
Click to expand...
Click to collapse
It probably could be packaged, but it is a pretty simple change so I doubt anyone would go through the trouble.
Do not fear ADB. Follow the steps. It is as easy as 1. 2. 3... 4567.
nfcrockett said:
Here is a red round battery with percentages:
Click to expand...
Click to collapse
Is there anyway to do this so it is like the old days where a zip could be installed through clockwork recovery? I hate doing anything through ABD half the time my phone is not recognized?

How to safely modify framework-res.apk?

So I had my first go at playing with frame-work-res.apk -- fortunately I made a backup first!
This is what I did, step-by-step (probably the hard way, but at the time, I didn't have my USB cable, left it at work).
1. Pulled a copy of framework-res.apk off of the phone.
2. Renamed to .zip (Windblows7) and extracted.
3. Modified a few images, just to see if it would work.
4. Re-created a .zip (making sure that it would be the same, structurally, as the first one) then renamed it to .apk
5. Put it onto the phone, replacing/removing existing one
I immediately got an error (expected) but then I rebooted. Wouldn't go past the boot screen.
All I did was open the .apk, modify (not replace, modified) a couple of images, then put it back onto the phone.
What am I missing?
Thanks, in advance.
I think you might need to sign the apk. Try this:
http://www.londatiga.net/it/how-to-sign-apk-zip-files/
I've never did this myself so I could be wrong
nDrg said:
I think you might need to sign the apk. Try this:
http://www.londatiga.net/it/how-to-sign-apk-zip-files/
I've never did this myself so I could be wrong
Click to expand...
Click to collapse
Thanks for that, nDrg! I'll give it a shot later.
Also, I wonder if my problem was simply that I didn't use adb push to put it back onto the phone. I didn't have my cable with me at the time, so I couldn't... perhaps I'll give it a shot when I get home tonight.
No need to rename it to .zip, just open the .apk with your application of choice and resign.
I edit mine by pulling the framework-res.apk, extract it out and whatever i change, i just drag it back into the apk. I use winrar to open my apk files. I don't even make a new zip and don't resign it either.
If I edited a full rom, lets say CM6. I would extract the framework from his rom, do w/e, put the framework apk back into the rom zip and sign the whole entire thing.
if you edit anything with .9.png and replace it without correctly modifying and recompiling you will get infinite fc's
framework-res.apk
K I've tried replacing the drawables in my framework-res.apk using better zip in Mac and winrar in windows. Then is sign the apk with signapktic on my Droid x. Then I replace it with root explorer to system/framework. I get a boot loop every time? Tried everything. Still get boot loop. What am i doing wrong?
One thing i noticed is I can save as zip in eather better zip or winrar no chances just saving the file and my macbook will no longer recognize the apk as a Unix executable fill.
ANY SUGGESTION?
Make sure you're not compressing the file, in WinRAR, you can pick 'store'

[Q] Pushing Framework-res.apk

I have been trying to edit my framework-res.apk file to change some icons but I keep running into problems. Without even editing framework-res.apk, just pulling it down to my computer then pushing it back up is causing me to go into a boot loop. I assume I am missing something simple but all the guides I have found say to do pretty much the same thing. Here is what I am doing
boot to clockwork recovery
mount system from recovery
adb remount
adb pull /system/framework/framework-res.apk
adb push framework-res.apk /system/framework
reboot
I don't edit the file at all, just getting it on my windows 7 machine and then pushing it back to the phone and that is causing it to boot loop. Any idea what I am doing wrong? oh I am using CM6 rc1
I pushed yesterday successfully just like that:
- boot to recovery
- mount system
adb push framework-res.apk /system/framework/framework-res.apk
adb reboot
You can't push framework-res while the system is working.
That's why you have to do it like rori~ posted above me.
Jack_R1 said:
You can't push framework-res while the system is working.
That's why you have to do it like rori~ posted above me.
Click to expand...
Click to collapse
I was doing it all from recovery, but it doesn't seem to make a difference.
Did you check the file you're getting with pull, before pushing it back?
Is it the correct size?
Yea, I checked the md5 as well as the size and it matches the original even after I have pushed it back up.
I would suggest making a metamorph. Thats what i did for icon editing. It works great.
Check here for info. http://forum.xda-developers.com/showthread.php?t=654858
I finally got it. Not entirely sure why the framework-res.apk I had didn't work but I do know it was one I generated from the UOT kitchen. I went back to the one that was included in the original rom zip, and that one I can upload, edit and do whatever with.
Anyways thanks for the replys.
I would suggest making a metamorph. Thats what i did for icon editing. It works great.
Check here for info.
Click to expand...
Click to collapse
I plan on doing that eventually but this seems like a lot less work for just replacing some notification icons, and at this point I am still just getting my feet wet in this whole customizing my phone process.

[Guide] Simple guide to theming ANY ROM

A lot of people have asked in various threads lately about getting this theme on x rom, or can someone port this theme for me, etc. It really isn't that hard. It actually is pretty much a simple matter of copying and pasting. This will work on any ROM, and it only takes a few minutes, easy enough for an amateur to do it.
1. First, download the ROM that has the theme that you want on your current ROM.
2. Extract framework-res.apk from /system/framework and rename it to framework-res-old.zip and then right click it, and click extract all. Just extract them to currentdirectory\framework-res-old, which should be the default option anyway.
3. Take your current ROM, and extract framework-res.apk from /system/framework, and repeat step 2 except name it framework-res-new.zip.
4. Browse to the framework-res-old\res folder and select all of the folders starting with "drawable", such as "drawable-mdpi"
5. Browse to the framework-res-new\res folder and paste those folders, it should prompt you to merge and replace files and all that jazz, just click yes and do for the next x conflicts. It will copy and replace all of the image files.
6. Go back to the root of your framework-res-new folder, highlight all of the contents, right click, Send to > Compressed (zipped) archive
7. Windows will re-zip framework-res-new. When it finishes, rename the new zip file to framework-res.apk and push it to /system/framework. If you haven't gotten s-off on your phone, you have to do this while in clockwork recovery (make sure you mount /system in the partitions menu, or if you are s-off and booted, type adb shell mount -o rw,remount /system if it gives you memory errors)
For other operating systems, the steps are similar. If you use a linux distro, I'm going to assume you are smart enough to figure out the compression tools and menu items to unzip and rezip the apk files.
NOTE: You don't actually have to change the extensions to .zip, in fact, you won't be able to unless you unchecked hide known file extensions in the windows folder options in control panel. I just thought it would be easier. If you don't want to unhide extensions, just use a tool like 7-zip or winrar to open and extract the APK. In simple terms, all you are doing is replacing the res folder of your new framework-res.apk with the one from the theme you want. Not very hard.
ANOTHER Note: Sense roms are a bit more difficult to theme, since all of the HTC apps are themed from images in com.htc.resources.apk in /system/framework. But if you are on a sense ROM, you probably can just use a MyModes theme. If you do however choose to try this on a sense ROM, it will only theme user and non-HTC apps. This guide will technically work for any ROM but it works best for AOSP based ROMs, like CyanogenMod or ArayrayMod. The only thing is that if there is a change in the color of text, then you have to decompile both framework-res APKs and copy styles.xml from the old one to your new one and recompile it. APKtool or APK Manager both work great for that.
DO A NANDROID BACKUP BEFORE PUSHING THE NEW FRAMEWORK! Sometimes you can get boot loops from screwing with other files in framework-res, or if it is not signed properly. But you shouldn't get boot loops as long as you stay away from XMLs.
how do i extract an apk? it shows up as an apk and when i click extract it does nothing
Sometimes pushing new frameworks cause boot loops fyi..
Happened to me twice :/
Sent from my T-Mobile myTouch 3G Slide using XDA App
purple1 said:
how do i extract an apk? it shows up as an apk and when i click extract it does nothing
Click to expand...
Click to collapse
Did you try renaming it to framework-res.zip rather than .apk? If you have 7-zip or winrar you can also right click, open with, and choose 7-zip or winrar from the choose default program option.
arayray said:
Sometimes pushing new frameworks cause boot loops fyi..
Click to expand...
Click to collapse
Only if you screw with the non-drawable folders. If you leave the XMLs intact and only change the images it boots fine. The boot loops are caused by incompatible or conflicting XML files, which happens when you just push a random framework-res from another ROM, you have to just move the images over.
I use apkmanager for linux and its immensely helpful. Also you can loop one even without modifying the xmls. Least I have that's why the most important part of theming is knowing how to backup/restore or flash sbf or w/e.
Only if you screw with the non-drawable folders. If you leave the XMLs intact and only change the images it boots fine. The boot loops are caused by incompatible or conflicting XML files, which happens when you just push a random framework-res from another ROM, you have to just move the images over.
Click to expand...
Click to collapse
I think you should state that in the OP
Added a note at the bottom, thanks

Categories

Resources