how would i edit the task bar in asopmod rom i searched through google i found nothing can someone plz help
First you need to read up on theming but in short all those png's reside in the system/framework/framework-res.apk. In that apk if you goto res/drawable-hdpi folder you'll see all of the png's that make up the task bar.
You'll need apkManager and a paint program.
Simmons - I was trying to do something similar but was having no luck -
I wanted to pull the 4G icons out of an Evo rom and put them in place of the 3G icons on CM6 - i thought it would be a riot -
I extracted the 4G's and renamed them to their 3G counterparts names and have them saved on my desktop - but I dont know the right way to extract framework-res.apk, then put in my new icons, then, and probably most importantly, zip it back up so it will flash right !
any thoughts?
Simple how to theme.
Vandelay007 said:
Simmons - I was trying to do something similar but was having no luck -
I wanted to pull the 4G icons out of an Evo rom and put them in place of the 3G icons on CM6 - i thought it would be a riot -
I extracted the 4G's and renamed them to their 3G counterparts names and have them saved on my desktop - but I dont know the right way to extract framework-res.apk, then put in my new icons, then, and probably most importantly, zip it back up so it will flash right !
any thoughts?
Click to expand...
Click to collapse
heres the How to
An apk is really just a zip file... apk stands for android package (if i remember correctly). So treat it like a standard zip file.
You'll need apk manager this will allow you to sign zips which makes them flashable. get that here
Now get your favorite Rom and make a folder. In that folder make 2 folders one called packed the other called packed. Take your rom and unzip it in the unpacked folder. and then take the original zip and move it to the packed folder.
Next go into the unpacked folder and nav to system/framework.framework-res.apk take this apk and unzip it in this folder and then make a copy of the apk and move the copy to the packed folder.
Now when you want to make a change to the framework-res.apk use the unpacked as a reference. us the packed as the change dir, you do this by opening but not unzipping the apk you want to change and just dragging the files you are replacing into the apk, this will replace them. You might want to make a a 3rd folder sorta of a master copy if you ever mess up the packed roms.
Now that you have an altered framework-res.apk you can just push it to system/framework folder (i think) and reboot and your changes are in. I never do this since flashable is easier to manage I make a flashable.
A flashable is like a but allot smaller, so d/l one of my themes and take the zip file and place in in a folder next to the packed and unpacked folder call it something like staging. now unzip apk manager into the top dir next to 3 other folders you just made.
Now my theme zip can be renamed to whatever you want your going to use it as a place holder for signing flashable zips. go into the theme zip and delete ever thing in the system folder except the framework folder then go into the frame work folder and delete everything.
Your flashable zip folder should only have a a meta-inf folder and a system folder, the system folder should only have a framework folder. Now drag your altered framework-res.apk into the flashable zip folder you just cleaned out.
Ok now you have to sign it copy that flashable zip to the place-apk-here-for-signing folder, this should have shown up when you unzipped apk manager into the folder the also contains unpacked and packed folders.
Now click on the script.bat and you'll see a bunch of option you can do option 16 to sign your zip. it takes a second or two and the date should get updated on the flashable.zip file in the place-apk-here-for-signing folder.
Now you have your new them ready to install. if your changing something else find the apk and replace framework-res.apk in these instruction and it works the same. note that most app reside in system/app so you next to take that into account.
Edit: Maybe I should have made a new thread.
creating task bar
thanks simmons i will let u know how bad i mess up but yes thanks alot man
Related
ok, so I've made some modifications to the default theme but I cannot seem to get a .zip that will flash. I've just transferred them straight to my hero using android commander, which works.
But anyway, it doesn't really matter if no one wants to use it, right? so here are some screenshots, if someone could help me out that would be much appreciated.
easiets way is to look inside a rom.zip
Take out the files META-INF and System
go through the meta-inf folder until you get to update-script and open it in notepad.
Delete everything except the first show progress line and the on saying copy package:SYSTEM or something very similar.
Go back to the system folder and open that,depending what files you are trying to flash you need to keep and empty those files....
if your changing rosie.apk its in system/app so empty system>app and put rosie.apk inside it.
Framework-res.apk is inside system>framework so put it there
When you have finished putting your files in go back to where META-INF and system are,Add them to an archive (.zip) and then resign! if you are unsure of the siging process please search google on how to resign update.zip
Hi Everyone
I hope this is the right place for this posting.
I pulled system/framework/framework-res.apk from my phone. I was trying to find the launcher button images that my rom (Aloyuis) uses (turns out the images aren't in this particular apk nore are they in htc.com.resource) Any ways, I didn't like the direction the battery indicator was pointing in on the status bar so I rotated all the images. I then zipped the file back up keeping the name (framework-res.apk) and then pushed it back to phone (adb push <path to file on computer> /system/framework/framework-res.apk)
No problems occurred pushing the file to the phone. I then issued the reboot command from the sdk. The phone rebooted but I could not get past the HTC load screen. Any ideas on why this is and what I am doing wrong?
Don't re zip it. Use 7 zip, pull out the files you want to modify, while leaving the apk intact, modify, then use 7 zip to open (right click on the apk, go to 7 zip then open), navigate to the applicable res folder, drag and drop your modified files on top of the stock ones. Then push your modified apk. As for the launcher, look in system/app for launcher.apk (or he might be using adw)
-------------------------------------
Sent via the XDA Tapatalk App
danaff37 said:
Don't re zip it. Use 7 zip, pull out the files you want to modify, while leaving the apk intact, modify, then use 7 zip to open (right click on the apk, go to 7 zip then open), navigate to the applicable res folder, drag and drop your modified files on top of the stock ones. Then push your modified apk. As for the launcher, look in system/app for launcher.apk (or he might be using adw)
-------------------------------------
Sent via the XDA Tapatalk App
Click to expand...
Click to collapse
dana I really want to thank you for your reply to my post. Since you were so awesome to help me out the first time maybe you can help me out a second time. I am not entirely sure what happened. I was able to modify the png files I wanted to and push the package back to the phone. All the changes were present last night. They were also present again this morning when I turned my phone on. Though here is the confusing part. I went to check my phone and something seemed different, after looking at my status bar more closely all the changes I made were gone. The battery indicatore had gone back to its original right facing image with a blue level metter. Do you know what could have caused this? Should I pull the package again to see of the png files reverted back some how (not sure how since I replaced them so not sure where they came from) and if so push the changes back?
BTW if its the sense launcher then the png's u want r in htcresources /Res/mdpi port. Also some r in Rosie app. If Modding the files open up app. Copy and paste Res file out to a place u can work on it. Mod the files. Drag and drop back into app. Either push files back to phone via adb or create a folder. Name it update inside folder create another folder...call it system. In that make another folder. Name it app the put the app or apps in there that u modded. Now back in update folder itself...go find a theme or mod someone else did and open it up with 7zip. Take the Meta file out of it and put it into the update folder. Zip up update folder via 7zip. Next find app on forum via a search called avabox. Dl it. If in a zip take out of zip. Open it. In there is a file called auto sign. Drag the update zip into the auto sign folder. Click on sign. Put new signed zip onto SF card(u can rename file now if u want). Go into recovery and flash the file. Reboot. LOL really it isn't hard
you may have to repush the file, then reboot to recovery and clear dalvik cache. It's reloading images from the cache
Well Im not great at directions so this is the best i can do.
Summary
There are 2 ways that I know to port a theme to your device.
1. Using the metamorph app if its a metamorph theme.
2. Using 7zip ect.. if its a flashable theme. (most common)
Metamorph Instructions
1. First things first is to download the theme that you want to port.
2. Your theme will be a zip file containing only image files from apk's
3. Put the zip file on your sd card
4. Make sure your device is set to 320x480 resolution or metamorph app will not work.
5. Open metamorph app and start a new project.
6. Locate your zip file and let all the apks load up.
7. Install each apk one at a time. Do not install any jar files as they will cause your phone not to boot.
8. Reboot and your Theme should be working on your phone.
Flashable Theme Porting Instructions
Its not that difficult, once you get the hang of how 7zip works it will be your best freind. Its just a process of dragging and dropping images from one apk to another all within 7zip.
What the metamorph app does is takes themed images and places them into the correct apks res\drawable folders in your system.
Knowing what metamorph does as an app, you can do this manually using 7zip.
1. Download the theme that you want to port. It will be a system folder with an app,framework, and font folder inside of it.
2. Open up that system folder with 7zip
3. Make a copy of the system folder of your current rom and open up that system with 7zip as well. You should now have 2 different 7zips open. Make sure to keep track of witch is witch.
4. Open up the app folder of the themed system and open up the first apk thats in there.
5. Go into the res\drawable folder in the apk in both your system and the themed system.
6. highlight and drag and drop only the images from that folder to the same folder in the other base apk. Make sure to NOT highlight any xmls.
7. Do the same for any images in any other drawable folders the are mdpi.
8. If there are only hdpi folders and no mdpi folders than you will have to convert those images to mdpi size before using them. If there are both, than only use the mdpi images.
9. When finished overwriting those images in that first apk, go back to the other apks in the app folder and do the same thing. You can do all of this from with in 7zip. No need to exit 7zip in this entire process.
10. Open up the themed framework folder and you will see a framework-res.apk file. Open up that file, you will see the same res\drawable folders.
11. Also open up the framework-res.apk from the base theme in the other 7zip as well. And overwrite the images just like the other apks making sure not to overwrite any xmls.
12. Back out of that back into the framework folder itself, if there is a services.jar in the theme than you will want to use overwrite that file as well.
13. Back out of the framework folder, If there is a fonts folder in the theme, You will want to overwrite those files as well.
14. Now you are done modifying your base theme with all the images from the theme.
15. You can now close the themed 7zip that you downloaded and leave open the 7zip containing you newly modified apks. Create a folder on your desktop called "system". Inside that, create a folder called "app", "framework", and "fonts"
16. Move only the modified apks that you replaced images in into the correct folders in your new system folder.
17. Make an androidupdate.tar with 7zip out of your new system folder and you are ready to flash it using nomorootfs method.
Tips:
Using the shift button to highlight mutiple images saves time.
Using the ctrl button to highlight images with xmls between them aaves time.
Switching views to have all images at the top and xmls at the bottom saves time.
If i forgot steps, I appologize.
Excellent guide.
The only thing I would mention is that most of the time services.jar is specific to a particular rom and as such may not work correctly with the target rom. As services.jar really only contains themed elements for the titlebar, you are better off using colorChanger's, apkTool or a hex editior to manually change the titlebar colors.
Also, in some cases (Like ProLauncher) the apk's must be signed. I prefer to use the test keys and this handy context menu here.
simple direct and effective. thanks again for all you do sir.
myn said:
Excellent guide.
The only thing I would mention is that most of the time services.jar is specific to a particular rom and as such may not work correctly with the target rom. As services.jar really only contains themed elements for the titlebar, you are better off using colorChanger's, apkTool or a hex editior to manually change the titlebar colors.
Also, in some cases (Like ProLauncher) the apk's must be signed. I prefer to use the test keys and this handy context menu here.
Click to expand...
Click to collapse
Thanks for the info man.
BTW, HAPPY BIRTHDAY MYN
Dzo Odex sample with standard theme
Thanks for this info. This will help a million. Could you also put light on how to odex it?
Eg: Dzo's odexed sample of donut has plastic theme, can it be changed to a standard android theme using the steps above and then odex it to create a androidinstall.tar?
Nice guide.
Thanks for making this.
Ill probably start trying to theme when i finish school in 2 weeks or so.
how to convert hdpi to mdpi
Just wondering if there's something I can do to simply make all my apps and/or widgets black and white?
Or I suppose if someone can lead me to a tutorial on how I can just do it myself? I can just throw them all in Photoshop and greyscale em, if someone could just point me in the right direction
adb pull each app/widget that you would like to theme. Extract the apk using 7zip, winrar, or whatever you use. I prefer 7zip because I think you have to change the file extension with winrar, and there's no point in using extra steps to achieve the same thing. Anyways, after you extract the apk, navigate to the res folder. You'll then see folders that say drawable, drawable-mdpi, or something like that. In those folders are the .png images that you can edit using photoshop. Save them with the same name in the same directory that you got in from. Now, go back to the .apk file you pulled from your phone. Open the archive (DON'T EXTRACT). Navigate to the res/drawable folders within the archive and drag and drop the edited images into the archive. Now (still in the archive) back up to META-INF folder and delete everything in there. Now, close the archive and sign the .apk. Now, you can push it back to your phone.
Or you could get better cut or adw from the market and download icon packs that meet your monochromatic needs. Seems easier than the above.
YoungSinema said:
adb pull each app/widget that you would like to theme. Extract the apk using 7zip, winrar, or whatever you use. I prefer 7zip because I think you have to change the file extension with winrar, and there's no point in using extra steps to achieve the same thing. Anyways, after you extract the apk, navigate to the res folder. You'll then see folders that say drawable, drawable-mdpi, or something like that. In those folders are the .png images that you can edit using photoshop. Save them with the same name in the same directory that you got in from. Now, go back to the .apk file you pulled from your phone. Open the archive (DON'T EXTRACT). Navigate to the res/drawable folders within the archive and drag and drop the edited images into the archive. Now (still in the archive) back up to META-INF folder and delete everything in there. Now, close the archive and sign the .apk. Now, you can push it back to your phone.
Click to expand...
Click to collapse
There is no need to ever rename any archive with winrar just goto "open with" and choose winrar and then check the box to associate winrar with apks you can do this with jars also.
Check black mod them in apps and themes I think you'll be satisfied with that.
YoungSinema said:
adb pull each app/widget that you would like to theme. Extract the apk using 7zip, winrar, or whatever you use. I prefer 7zip because I think you have to change the file extension with winrar, and there's no point in using extra steps to achieve the same thing. Anyways, after you extract the apk, navigate to the res folder. You'll then see folders that say drawable, drawable-mdpi, or something like that. In those folders are the .png images that you can edit using photoshop. Save them with the same name in the same directory that you got in from. Now, go back to the .apk file you pulled from your phone. Open the archive (DON'T EXTRACT). Navigate to the res/drawable folders within the archive and drag and drop the edited images into the archive. Now (still in the archive) back up to META-INF folder and delete everything in there. Now, close the archive and sign the .apk. Now, you can push it back to your phone.
Click to expand...
Click to collapse
You failed to mention that modifying the 9.pngs will have to be 9patched or else they will get distorted. But an easier thing to do is look in the themes section and find a theme or use an alternate Home launcher and use themes for those found in the market.
A lot of what u want to do is XML edits. U can always change icon colors. 7zip is a must use cause winrar is crap and to many steps.
unCoRrUpTeD said:
You failed to mention that modifying the 9.pngs will have to be 9patched or else they will get distorted. But an easier thing to do is look in the themes section and find a theme or use an alternate Home launcher and use themes for those found in the market.
Click to expand...
Click to collapse
Oh yeah. Thanks. I recently read that we can edit 9.pngs using photoshop if a 1px border is added to the image. Is that true? If so, it'll be easier for me that eclipse.
I would like to flash a new ROM but i like the stock captivate theme the best.
is there any update.zip packages of the default theme floating around? i want to wait until i know i can do it before i flash. Also, is there any way to "rip" the theme from my ROM? because then i can just do that
I posted a request for this a few weeks back and got really no help.... What I did was unzip the framework.apk's from the theme I wanted and from the JH7_OTA that's floating around here somewhere and compared the images in the drawbale-hdpi folder. I think there are some files in tw-framework.apk that need to be changed if you want to change the pull down menu.
Hope this helps
The themes are mostly inside framework-res.apk, which is very ROM-specific. You can't just install them randomly inside one another.
If you'd like to port a theme, you can either replace the image files using 7-zip, WinRAR, etc. or decompile the .apk using APK Manager for more extensive changes (things like battery mods, etc.).
MikeyMike01 said:
The themes are mostly inside framework-res.apk, which is very ROM-specific. You can't just install them randomly inside one another.
If you'd like to port a theme, you can either replace the image files using 7-zip, WinRAR, etc. or decompile the .apk using APK Manager for more extensive changes (things like battery mods, etc.).
Click to expand...
Click to collapse
what he said ^^^^
but as a beginner's guide, you will need to pull your FRAMEWORK-RES.APK and TWFRAMEWORK-RES.APK from /system/framework folder
For this, you will need to use either ADB or an app like ASTRO or ROOTEXPLORER
when you copy these two apk's to your computer, you will need to open it up (NOT extract it) and simply replace the images inside with those from a stock FRAMEWORK-RES.APK & TWFRAMEWORK-RES.APK
The images you want to change are going to be in res/drawable-hdpi folder
Don't just replace everything, you will need to see which one's are different.. if there is something you want to change and don't know what .png file it is, just post it back up here and I will help you out