(SLOVED)extract just images from theme? - G1 Q&A, Help & Troubleshooting

the tittle says it all. now i do remember someone saying that wallpapers r in the launcher.apk so knowing the is there away i can take them out of the laucher i have the sdk r3 so if anyone knows how to do that with the sdk or something else that would be greatly appreciated
Sloved: just rename the file. example if it is the launcher.apk then rename launcher.apk.zip

pistol4413 said:
the tittle says it all. now i do remember someone saying that wallpapers r in the launcher.apk so knowing the is there away i can take them out of the laucher i have the sdk r3 so if anyone knows how to do that with the sdk or something else that would be greatly appreciated
Click to expand...
Click to collapse
You talking about the icons and stuff (.png's). If so you should be able to extract the theme and just take them out and do whatever with them.

na just wallpapers. i saw a post in the themes section on how to extract from a rom but im looking to pull wallpapers out of a theme

Would it be in the res folder with the drawables. I'm on my work computer so I can't check now.

supremeteam256 said:
Would it be in the res folder with the drawables. I'm on my work computer so I can't check now.
Click to expand...
Click to collapse
no ur right i just found the answer right b4 i refreshed my page. thanks for ur help

just open the theme with 7zip or winrar or whatever, go to app/Launcher.apk/res/drawable/ and they are located in there. just drag and drop them into another folder. they all start with wallpaper_.
edit. you got it before my typing and slow connection came through for me lol

david1171 said:
just open the theme with 7zip or winrar or whatever, go to app/Launcher.apk/res/drawable/ and they are located in there. just drag and drop them into another folder. they all start with wallpaper_.
edit. you got it before my typing and slow connection came through for me lol
Click to expand...
Click to collapse
I was just about to say David might be the one to ask. Thanks David and DirectMatrix from earlier to help me get started on theming.

one other thing to add. you do not have to name it to .zip to open it. you can right-click it then select open with, then select whatever you use to open .zip files. or if your like me you set any .apk to be opened with 7zip and be done with it.

Related

General Questions about Themes GO HERE!!!!!

Hello, I am a little new here. I am kind of a newb with a lot of things. I did root my device and replaced the boot images.. but i do not know how to make themes. I was wondering if anyone would be willing to help by making a theme for me?
I added some images as to what i am looking to have done, that is of course anyone is willing to help. it is fairly simple i am looking to get the color scheme and kids icons if possible... maybe have a little fun with the clock or not if its too much work.
If anyone could help me out I would appreciate it... i am a graphic designer more than a programmer.. a lot of this is confusing to me.
I really like this site and hopefully i can be of some help at some point. This is my first post but i plan on posting a lot more.
Nice concept...but I`m not sure if you have looked at this topic http://forum.xda-developers.com/showthread.php?t=467639 It describe how to make a theme and stuff, good starting point anyways. Hope it helps!
Yeah ive seen that thread but it scares me...lol
I really dont know what I am doing with all that stuff. I dont really know if I understood everything in it either :-\
thanx though I will try to follow it and make a theme myself but it might take me a while...lol
RandumAccess said:
Yeah ive seen that thread but it scares me...lol
I really dont know what I am doing with all that stuff. I dont really know if I understood everything in it either :-\
thanx though I will try to follow it and make a theme myself but it might take me a while...lol
Click to expand...
Click to collapse
hahaha I would offer help but unfortunately I am no programmer
Im teaching myself how to make themes as well. I have found it best to read through that walkthrough a million times and then PM a couple of the dev guys to answer specific questions.
Basically this is the process:
- Take a theme that you like for RC30 or ADP1 or whatever you wanna make it in
- Extract 2 folders inside, app, and framework into a new folder on your computer
- Rename add a .zip to the end of the apk files and extract them all so you have a bunch of folders with your app names
- Go into res and find any folder that says drawable and inside of there are the files to edit for your theme. Make sure not to edit the .9.png files.
- Once all your editing is done get into linux and turn all the folders back into zip files, then turn them back into apk files.
- Then take your app folder and framework folder that contain the new files and in linux create it into one zip file.
- Then you send the file back to windows, get the SignAPK files, put your zip in the folder with the SignAPK files and run some commands in the CMD to resign the file.
- Then rename that file update.zip and put it on the SDcard and give it a whirl.
This is how I understand the process after talking to a couple people for the last few days. I am hoping to release my own theme soon and if it works you will know that these steps are right. LOL And dont follow those directions, they are just to give you an idea of the steps involved.
Agusta - haha s ok thanks anyway :-D
@brandenk
why do we need to zip the files in linux? By the way thanks for the theming for dummies guide.
trying it out
brandenk said:
Im teaching myself how to make themes as well. I have found it best to read through that walkthrough a million times and then PM a couple of the dev guys to answer specific questions.
Basically this is the process:
- Take a theme that you like for RC30 or ADP1 or whatever you wanna make it in
- Extract 2 folders inside, app, and framework into a new folder on your computer
- Rename add a .zip to the end of the apk files and extract them all so you have a bunch of folders with your app names
- Go into res and find any folder that says drawable and inside of there are the files to edit for your theme. Make sure not to edit the .9.png files.
- Once all your editing is done get into linux and turn all the folders back into zip files, then turn them back into apk files.
- Then take your app folder and framework folder that contain the new files and in linux create it into one zip file.
- Then you send the file back to windows, get the SignAPK files, put your zip in the folder with the SignAPK files and run some commands in the CMD to resign the file.
- Then rename that file update.zip and put it on the SDcard and give it a whirl.
This is how I understand the process after talking to a couple people for the last few days. I am hoping to release my own theme soon and if it works you will know that these steps are right. LOL And dont follow those directions, they are just to give you an idea of the steps involved.
Click to expand...
Click to collapse
hey thanks... i am gonna try it now
Geo411m said:
@brandenk
why do we need to zip the files in linux? By the way thanks for the theming for dummies guide.
Click to expand...
Click to collapse
I don't know why, something about how linux packages zip files opposed to windows, and yes once I figure it out and find all the problems people can have I am going to make up a nice walkthrough on making themes. But I wouldn't be surprised if there were already some theme manager apps in the works to make this whole process easier.
to tell everybody the truth i do all my themes in windows lol and only windows and it has worked on other peoples devices but shhhh thats out lil secret
package it for me?
Hey I was wondering if anyone could package my files for me?
I don't know linux commands at all and am lost... I did manage to edit the files but I can't put them back together.
If anyone could help with my New problem I would be very grateful!
randumaccess.com/r.a%20rc30.zip
That is the zip with the folders I edited.
Thanks
RandumAccess
Dave Da illest 1 said:
to tell everybody the truth i do all my themes in windows lol and only windows and it has worked on other peoples devices but shhhh thats out lil secret
Click to expand...
Click to collapse
Yes, you can make the update.zip in Windows as long as you have the update script I wrote in linux and you do not edit, or open it in Windows. If you do it will get corrupted.
Stericson
Stericson said:
Yes, you can make the update.zip in Windows as long as you have the update script I wrote in linux and you do not edit, or open it in Windows. If you do it will get corrupted.
Stericson
Click to expand...
Click to collapse
So as long as we take that empty update.zip and just throw the apk's in their respective folders and resign the zip when we are done it should be good to go?
brandenk said:
So as long as we take that empty update.zip and just throw the apk's in their respective folders and resign the zip when we are done it should be good to go?
Click to expand...
Click to collapse
That's correct it should be good to go.
Stericson
I guess I need to start learning how to create some themes
I did something wrong (theme newb)
Dave Da illest 1 said:
to tell everybody the truth i do all my themes in windows lol and only windows and it has worked on other peoples devices but shhhh thats out lil secret
Click to expand...
Click to collapse
how do you do the themes in windows?
heres what i did:
1. I unzipped a theme
2. renamed apk's to zip's
3. unzipped each folder
4. edited the drawable files
5. zipped the folders with winrar
6. renamed them back to apk's
7. then i took the update script from Stericson and opened it with winrar and threw them in the app/framework folders
it didnt work for me.
I dont know linux and use windows, i am a newb with a lot of this stuff. I would like to know so i can create themes to my liking.
any help you could give me would be great!
i have all the files edited i just need to package them now.
thanks,
RandumAccess
make sure you zip the folders inside the main folder. If you're working on launch folder, zip the folder inside the folder named launch not the launch folder itself.
Dave Da illest 1 said:
to tell everybody the truth i do all my themes in windows lol and only windows and it has worked on other peoples devices but shhhh thats out lil secret
Click to expand...
Click to collapse
How about a how-to using the Windows only method??
Geo411m said:
make sure you zip the folders inside the main folder. If you're working on launch folder, zip the folder inside the folder named launch not the launch folder itself.
Click to expand...
Click to collapse
yeah that didnt work either :-(
I would like to see a "Windows Only Theme Tutorial: Super-Newb Edition" ...lol
did you sign each of the edited apk's? and your update.zip file?

Help. Turn Framework Folders into APK Files.

I'd hate to be that guy who starts a whole thread for something...but I've looked everywhere and can't find the answer.
I'm working on my first theme, and I unzipped the framework recourse apk files, made the changes to the files inside, and now I want to turn them back into apk format so I can make everything into a flashable update.
I can't figure out how to turn these framework recourse folders into framework recourse apk files! Can anyone help me!? Thanks! If all goes well, I'll have a new theme out for you guys by tonight.
Thanks in advance!
alexthearmo said:
I'd hate to be that guy who starts a whole thread for something...but I've looked everywhere and can't find the answer.
I'm working on my first theme, and I unzipped the framework recourse apk files, made the changes to the files inside, and now I want to turn them back into apk format so I can make everything into a flashable update.
I can't figure out how to turn these framework recourse folders into framework recourse apk files! Can anyone help me!? Thanks! If all goes well, I'll have a new theme out for you guys by tonight.
Thanks in advance!
Click to expand...
Click to collapse
http://www.4shared.com/file/1LIk07D5/Avabox.html
download for windows. it has auto sign. as for changing back to apk just change extension back to .apk
so...do i use that program to zip up the file, then just change the extension?
........................
alexthearmo said:
so...do i use that program to zip up the file, then just change the extension?
Click to expand...
Click to collapse
Yes. Zip up file, change .zip to .apk.
What? You dont need to resign .apk's. In fact, you're making too much work for yourself. Im sure you extracted the .apk to a folder. All you need to do is reopen that .apk with 7zip. Drag and drop your changes into the .apk and you're done. No need to resign or anything.
VinceOB said:
What? You dont need to resign .apk's. In fact, you're making too much work for yourself. Im sure you extracted the .apk to a folder. All you need to do is reopen that .apk with 7zip. Drag and drop your changes into the .apk and you're done. No need to resign or anything.
Click to expand...
Click to collapse
Thanks for your help guys. I ran into some trouble with all this, and even realized that I mistakenly used some of the wrong files (from a theme that I actually didn't want to use)...so I'm gonna have to spend more time working on this. Hopefully I can get it finished and uploaded tomorrow. But thank you for your help. Right now I got homework to do. bleh.
Thanks for the post. I've been looking all over for this answer.
sweet...........

I Need Help Themeing on a MAC!!

can anyone sign this for me? i think i zipped everything correctly, but i use a mac so i am not sure, it has the notification bar i want (white with see through background) and a white launcher bar
http://www.zshare.net/download/75495216631b6c2e/
DrededStar87 said:
can anyone sign this for me? i think i zipped everything correctly, but i use a mac so i am not sure, it has the notification bar i want (white with see through background) and a white launcher bar
http://www.zshare.net/download/75495216631b6c2e/
Click to expand...
Click to collapse
Try this: http://www.darktremor.com/upload/changes-signed.zip
scratch that, i packaged it wrong, there is the main folder "Changes-signed" and inside of that there is a "changes" folder, then they system folder inside of that and the "framework-res.apk" folder is still a zip and not apk, it just has an alias apk file name fml
DrededStar87 said:
can anyone sign this for me? i think i zipped everything correctly, but i use a mac so i am not sure, it has the notification bar i want (white with see through background) and a white launcher bar
http://www.zshare.net/download/75495216631b6c2e/
Click to expand...
Click to collapse
I use mac too. The way you zip it is go into the folder where it is, select the contents, right-click and hit compress. It should save into archive.zip. Now, to sign it, use this amazing tool. http://forum.xda-developers.com/showthread.php?t=573498 Put the testsign.jar in Macintosh HD and put the app in the dock. Just drag the zip you want to sign onto the icon, and wait for the dot to go away under the sign app. Then, go to the folder where the original zip was, and there should be a Myzip-signed.zip. That should be a flashable zip as long as there's an update-script.
HeroMeng said:
I use mac too. The way you zip it is go into the folder where it is, select the contents, right-click and hit compress. It should save into archive.zip. Now, to sign it, use this amazing tool. http://forum.xda-developers.com/showthread.php?t=573498 Put the testsign.jar in Macintosh HD and put the app in the dock. Just drag the zip you want to sign onto the icon, and wait for the dot to go away under the sign app. Then, go to the folder where the original zip was, and there should be a Myzip-signed.zip. That should be a flashable zip as long as there's an update-script.
Click to expand...
Click to collapse
so it does not have to be an apk file? im gonna try to sign it myself
DrededStar87 said:
so it does not have to be an apk file? im gonna try to sign it myself
Click to expand...
Click to collapse
Uhh... that program is for your mac, not your phone.
HeroMeng said:
Uhh... that program is for your mac, not your phone.
Click to expand...
Click to collapse
i meant the "framework-res.apk" file because i made it an alias of the original file, but it is still a zip, i have no clue how to make it back into an apk file after unzipping it
and i used the search button but the things i found were not much help....just to let people getting ready to yell at me for not using it
DrededStar87 said:
i meant the "framework-res.apk" file because i made it an alias of the original file, but it is still a zip, i have no clue how to make it back into an apk file after unzipping it
and i used the search button but the things i found were not much help....just to let people getting ready to yell at me for not using it
Click to expand...
Click to collapse
Ok, you know what... just make a metamorph file. Metamorph is much easier.
Wait, what? You were trying to reinstall framework-res.apk? Nonononono. No. You need to write an update-script. It will put the apk in /data/app (or /sdext/app) if you install it as an apk.
HeroMeng said:
Ok, you know what... just make a metamorph file. Metamorph is much easier.
Click to expand...
Click to collapse
ummmmmm...i guess saying that i am extremely new to this is an understatement
the easiest way to do what you are talking about is to use something like 7zip or winzip to open , NOT UNZIP, the apk. Next, open up the zip you made. Now, drag the folder called res from YOUR zip into the open window of the apk. This should replace the old folder with your new one that contains all your edits. Now just close the opened apk, and you are done. Simple.
tejasrichard said:
the easiest way to do what you are talking about is to use something like 7zip or winzip to open , NOT UNZIP, the apk. Next, open up the zip you made. Now, drag the folder called res from YOUR zip into the open window of the apk. This should replace the old folder with your new one that contains all your edits. Now just close the opened apk, and you are done. Simple.
Click to expand...
Click to collapse
He has mac, like me. No 7zip.
HeroMeng said:
He has mac, like me. No 7zip.
Click to expand...
Click to collapse
But you have some sort of zip program, right?
tejasrichard said:
But you have some sort of zip program, right?
Click to expand...
Click to collapse
We have Archive Utility, straight from apple, comes with the mac.
It doesn't allow you to open without unzipping? (obviously I know nothing about macs)
tejasrichard said:
It doesn't allow you to open without unzipping? (obviously I know nothing about macs)
Click to expand...
Click to collapse
Nope. We can run Windows apps in WINE if we want....
so...what are my options people? cuz im still confused...
Re: i think i did this right...
bump.....anyone know anything?
Sent from my HERO200 using the XDA mobile application powered by Tapatalk
So here's the issue: Drededstar has unzipped the framework apks, and changed the files...now he wants to know how to turn the .zip folder into actual apk files.
Macs don't have 7zip or ANY program that lets you look into apk contents without unzipping them all the way. So, you have to unzip them. Then once you're done making the changes, you need to change them back to apk files. DOES ANYONE KNOW HOW TO CHANGE THEM BACK TO APK FILES?!!!
I have a mac too, but I do all my theming on my wife's computer...and she's probably tired of me kicking her off. If anyone knows how to do this one simple step could you please let us mac users know?!! Thanks!
as long as the file structure is right, you just have to rename the zip file to apk.

Evdo icon to 3G

I have a (Sprint) HTC Hero rooted, running Fresh rom 2.3.3. I have read somewhere that people have managed to change the Ev-Do icon in the taskbar to say 3G. I know that it does not make a difference, but i would like to know if someone can post a step by step guide on how to do this.
It depends on the ROM. There is no other way of changing it unless there is a kernel out there that changes it. I have never heard of it.
Hi, I have managed to build a theme for this exact purpose. The attached file I posted is to be used with MetaMorph, which is downloaded from the Android Market, and you place the file onto your sd card, and choose new theme, and select it. Hit apply all and your EV-DO Icon will be changed to 3g, and the 6 Bars used to display signal will be reduced to 4 for a nicer appeal. I have tested it on Fresh 2.3.3 and it works great.
this should be in Q&A
Sent from my HERO200 using XDA App
Thank you! Exactly what I needed. Had to install 3 times before it showed 3g icon but worth it. Can you show me exactly how you did it?
Sent from my HERO200 using XDA App
Well I'm not much of a developer, but all I did was modify a metamorph theme for the sense taskbar. I made it into a zip file, and replaced the EvDo taskbar icons and the Status icons with the 3g ones, and then repacked it, so the 3g bars show up. Its pretty simple, glad I could help
jpp44345 said:
It depends on the ROM. There is no other way of changing it unless there is a kernel out there that changes it. I have never heard of it.
Click to expand...
Click to collapse
Wut?
OP,
The icons are in com.htc.resources.apk in the res/mdpi folder. I also believe the 3G icons are in there as well, but you just have to pull them out and change the name. This also belongs in Q&A.
There is a metamorph on here in themes that will change nothing but the evdo to 3g. I can't upload the file from the phone but will try to upload it in a little while.
Sent from my HERO200 using XDA App
VinceOB said:
Wut?
OP,
The icons are in com.htc.resources.apk in the res/mdpi folder. I also believe the 3G icons are in there as well, but you just have to pull them out and change the name. This also belongs in Q&A.
Click to expand...
Click to collapse
Like vince said, that is where the icons are stored at. Once in there, all that's needed is a simple renaming. Rename the 3G icons to the EvDO icons, and the EvDO icons to the 3G icons. Now Android thinks it's displaying 3G icons, but it's really displaying the EvDO icons. Just think of it as fooling Android.
1. Unzip com.htc.resources.apk
2. Navigate into res/mdpi
3. Rename the 3G and EvDO icons as stated above
4. Drag them OUT of the unzipped folder.
5. Find the original, untouched com.htc.resources.apk (NOT unzipped)
6. Open com.htc.resources.apk as an ARCHIVE (not unzipping it!)
7. Navigate to res/mdpi inside of the archive
8. Drag the changed files into there
9. adb push the modified com.htc.resources.apk to your phone.
nilemann said:
There is a metamorph on here in themes that will change nothing but the evdo to 3g. I can't upload the file from the phone but will try to upload it in a little while.
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Did you not see my post for that file already?
mrinehart93 said:
Like vince said, that is where the icons are stored at. Once in there, all that's needed is a simple renaming. Rename the 3G icons to the EvDO icons, and the EvDO icons to the 3G icons. Now Android thinks it's displaying 3G icons, but it's really displaying the EvDO icons. Just think of it as fooling Android.
1. Unzip com.htc.resources.apk
2. Navigate into res/mdpi
3. Rename the 3G and EvDO icons as stated above
4. Drag them OUT of the unzipped folder.
5. Find the original, untouched com.htc.resources.apk (NOT unzipped)
6. Open com.htc.resources.apk as an ARCHIVE (not unzipping it!)
7. Navigate to res/mdpi inside of the archive
8. Drag the changed files into there
9. adb push the modified com.htc.resources.apk to your phone.
Click to expand...
Click to collapse
Could yall elaborate on how to execute the above instructions? Do I need something more than my phone and a computer? The instructions seem easy enough. Is it a matter of pulling files? Im new at that.
Id like to do this by the instructions above. Thank you.
tailsthecat3 said:
Could yall elaborate on how to execute the above instructions? Do I need something more than my phone and a computer? The instructions seem easy enough. Is it a matter of pulling files? Im new at that.
Id like to do this by the instructions above. Thank you.
Click to expand...
Click to collapse
You need sdk installed on your pc the open terminal go to where the androidb files are installed and type adb remount hit enter type adb pull system/framework/htc.resources. apk to where you want to file to go. Once you pulled the files you want to modify then follow the prior post steps.
Ex:
Adb remount
Adb pull system/framework/htc.resources.apk c:\desktop\themes\
chubbzlou said:
You need sdk installed on your pc the open terminal go to where the androidb files are installed and type adb remount hit enter type adb pull system/framework/htc.resources. apk to where you want to file to go. Once you pulled the files you want to modify then follow the prior post steps.
Ex:
Adb remount
Adb pull system/framework/htc.resources.apk c:\desktop\themes\
Click to expand...
Click to collapse
Thanks! How is easy is this?! Im gonna try this out as soon as I finish dl'ing some updates. Had to do my semi-annual xp pro reinstall...
tailsthecat3 said:
Thanks! How is easy is this?! Im gonna try this out as soon as I finish dl'ing some updates. Had to do my semi-annual xp pro reinstall...
Click to expand...
Click to collapse
If you could install xp or use a pc should be a piece of cake.
Check out how to create themes in the sticky should guide you better.
chubbzlou said:
If you could install xp or use a pc should be a piece of cake.
Check out how to create themes in the sticky should guide you better.
Click to expand...
Click to collapse
well, i pulled comhtcresources but thats as far as ive gotten...any help is appreciated, ill check that guide to see if the answer is there...thank you
tailsthecat3 said:
well, i pulled comhtcresources but thats as far as ive gotten...any help is appreciated, ill check that to see if the answer is there...thank you
Click to expand...
Click to collapse
All it takes is a basic knowledge and understanding of how to work with files.
Now that you've pulled it, I'd recommend downloading a program called 7zip. It is an EXTREMELY lightweight, fast, and flexible archive manager. It also integrates with Windows Explorer in the right-click menu (very useful).
With 7zip, extract the com.htc.resources.apk file just like you would a .zip file. Once inside, navigate to res/mdpi or similar folder (I'm not sure how HTC arranges their files... haven't used an HTC ROM in ages!). Once inside, look for the icons that you want to mess with. Copy the icons out, and then do your editing to them. Once they are edited, you need to find the ORIGINAL, unzipped com.htc.resources.apk file. Right click that, and then go to 7zip, then go to Open Archive. The file will now be OPEN, but not unzipped. Navigate in there to the folder location where you got the files that you modified from. Now drag the modified icons into that folder location. Congratulations, you just modified your phone by yourself!!
Now all that's left is to push the file back to your phone.
Code:
adb remount
adb push com.htc.resources.apk /system/framework
Some things to keep in mind, are that you must use the Open Archive method to modify the .apk itself, otherwise you will have to resign the file (pain in the ***). Every graphic -MUST- be a .png file. That's all I can really think of. Have fun
thank you veryvery much. im rebooting now. i hope i did it right. i have to go out now but ill be back for some more hacking. and questions if i messed it up. again, thanks all
Well, it worked. Thank you!
It really couldnt have been easier.
I prefer to change things like this within the system rather than having an app or something or other... what else can we change this way??
tailsthecat3 said:
Well, it worked. Thank you!
It really couldnt have been easier.
I prefer to change things like this within the system rather than having an app or something or other... what else can we change this way??
Click to expand...
Click to collapse
You could create a whole new theme all the status bar icon, clocks, dialer ect. What ever you like to change just pull the apk's edit the png's and push them back. You can also pull all the apk's and edit them create a signed zip and load them via recovery.
Check out this Post it will help you out creating themes. Glad it worked out for you.
HAVE FUN
chubbzlou said:
You could create a whole new theme all the status bar icon, clocks, dialer ect. What ever you like to change just pull the apk's edit the png's and push them back. You can also pull all the apk's and edit them create a signed zip and load them via recovery.
Check out this Post it will help you out creating themes. Glad it worked out for you.
HAVE FUN
Click to expand...
Click to collapse
another question... is there a way to change the signal bars to the fatter, fewer, shorter variety? is there the files already in there like the 3g files? thank you thank you

apks, zips, and hdpi - mdpi questions

Ok, just a few questions quick hdpi images for say a theme for bigger phone like the evo can they be tossed into a drawable-mdpi and be fine? Or do you have to go through them and resize them? My second question is regarding signing, I've got the htc kitchen running which seems to do fine so I'm using the AutoSign to sign my res folder which i zip'ed as framework-res.zip then signed using the AutoSign tool and renamed to framework-res.apk which I think is correct, but then I throw that into a presigned zip for a theme that I pulled apart using the htc kitchen and rebuild it and sign it and it should be good to go. It gave me some nonsense about an updater script and it can only make an update script. But when I tried flashing the rom it failed.
Basically I think I'm missing some parts of the puzzle if anyone who knows more about this than me could give me a pointer or two I'd be eternally grateful. Thanks.
I'm not sure if you have to resize the png images. I always do, however it takes a while so you may want to try doing it with the hdpi images. As far as signing goes some extract the apk and then edit the png's and then with 7zip use the open archive option and drop the png's into the zip. And then resign.
Here is what i do..
I extract the apk
Go in and make changes
Go back to the main folder where it has the META-INF, res, AndroidManifest, etc and select all of those and zip them. It should then name it (whatever_app_your changing).zip
I use the Auto-sign from Avabox and sign it. This should also change the extension to apk
When editiing an apk you want to make sure you keep everything as it is when rezipping and signing. Do not delete any folders.
To make a flashable zip you need an update script. If you pull apart a theme and look in it there should these folders META-INF\com\google\android. The update script is located in android. It tells it where to install everything and to show a progress bar. If you look in a theme you can easily see the strcuture and what needs to be zipped.
Thanks. Thats the missing step I think, I'm about to crash as I work nights and probably shouldn't be up yet lol, but when I get up I'm gonna test some more things out but I think thats what I needed to know. I've been trying to rezip everything so it fits back together when i should be pulling them out of the zip changing them and then putting them back in. I'll try it tomorrow lol when my brain works again. Thanks for the reply though.
ok first of all download 7zip
do not unzip the whole app
open the app with 7zip. take out the res file
edit the png files that you want
edit the .9 files that you want
use draw9patch that comes inside of android sdk folder
in draw9patch u put one dot on top one dot on left and full lines on bottom and right. thats the easy way. u can watch the right window to figure out what the results will be. play with it and you will get the hang of it.
download eclipse and set up eclipse and android sdk to work with android. there a number of instructions on how to do this. google in or search in xda
use eclipse to recompile the .9 files
if u r finding files in the hdmi files and want to use them u have to make sure they are the right size for our phones.
best guess is that if its from a different phone they are the wrong size. compare the size of the file to the mdmi folder and resize where needed.
when done editing the res file drag and drop it back into the app that is open in 7zip.
it can then be pushed via adb in the command promt by putting the apk in the tools folder of sdk and typing
make sure your in the directory of ur sdk/tools folder
adb remount
adb push (app name).apk system/app
(app name)=app for example facebook.apk
if u want to make it into a flashable update than you can put into a zipped file that im sure uve downloaded from here before. make sure its the only app in the folder and use avabox as described above.
Awesome thanks papasmurf, I think I figured out the big issue was having before and thats that I have to use 7zip to pull, edit, and replace files I want to change. the .9 stuff I haven't messed with yet but I've always known they are a bit of a pain in the ass. Gotta learn sooner or later lol. Thanks for the responses guys I'm gonna mess with this stuff and see where I get.
What are the rules on signing? Now if I'm in a framework-res.apk and pull and push some files do I need to sign it again?
PlagaDeRock said:
Awesome thanks papasmurf, I think I figured out the big issue was having before and thats that I have to use 7zip to pull, edit, and replace files I want to change. the .9 stuff I haven't messed with yet but I've always known they are a bit of a pain in the ass. Gotta learn sooner or later lol. Thanks for the responses guys I'm gonna mess with this stuff and see where I get.
What are the rules on signing? Now if I'm in a framework-res.apk and pull and push some files do I need to sign it again?
Click to expand...
Click to collapse
While when building a rom it is sometimes but very rare to sign an app...when editing pngs and such there is no need to resign the app. ..also if u do have to resign an app u can't resign the Google ****s. They don't like work if u resign them cause the only way we have to resign with r with test keys. By resigning apps ur r messings with the manifest and there is about a 99.9% chance there is no need for it.
Its different if ur trying to flash an app via recovery. Then it has to be put into a zip file and signed. My suggestion is to find a basic mod that someone else already made a signed zip of and put ur app in it and take out the other mod. Just make sure u put it in the right folders. For example
Most apps go in /system/app
Framework and com.resources go in /system/framework
Uncanny make those folders and drop the app in there then drag to the zip or if those folders exist in the zip just drag the app in.
As long as its a mod zip the update script is prob just very basic and u don't have to mess with it. Just use avabox (search for it on xda) and drag the zip into to autosign folder inside of avabox. Rename it update and click k on the sign icon. After its done signing u delete the update file and can rename the update-signed file to what ever u like. Just remember if renaming that if u r using more than one word the u must add a _ between words rather than a space. For example
Gmail_signed.zip
Hope that helps a little
Sent from my HERO200 using XDA App
Awesome. Just made my first flashable zip that worked. I'm almost finished porting over the sculpted theme from the evo section. Thanks for the help guys, its making way more sense now.
PlagaDeRock said:
Awesome. Just made my first flashable zip that worked. I'm almost finished porting over the sculpted theme from the evo section. Thanks for the help guys, its making way more sense now.
Click to expand...
Click to collapse
Anytime man. Just remember if ur changing even the size of a .9 file it has to be fixed as explained above. Only saying cause ur porting a theme from the evo and I'm sure there r .9 files in there
Sent from my HERO200 using XDA App
Papa Smurf151 said:
Anytime man. Just remember if ur changing even the size of a .9 file it has to be fixed as explained above. Only saying cause ur porting a theme from the evo and I'm sure there r .9 files in there
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Eclipse is intense. I think I downloaded the right one. I'm dead tired though so I'm gonna pick it up again tomorrow. I got enough of it together that it functions so I'm happy for now, but definitely going to have to work on the .9 files tomorrow lol.
PlagaDeRock said:
Eclipse is intense. I think I downloaded the right one. I'm dead tired though so I'm gonna pick it up again tomorrow. I got enough of it together that it functions so I'm happy for now, but definitely going to have to work on the .9 files tomorrow lol.
Click to expand...
Click to collapse
Yeah eclipse is def overkill at times but when u get it set up its easy to just compile .9 files.
Sent from my HERO200 using XDA App

Categories

Resources