I need help to sign or resign a zip/apk file? - Hero CDMA Android Development

I just started making themes and I plan on creating roms next. I started working on my theme and wanted to see how it would look on the phone. I re-compressed the zip file back to an apk and got an error about it not being signed. The same thing also happened with some code I worked on. I just need to know how to sign the apps. Please help!

Look for avaboxV2 You can sign zips, apks and a whole lot more stuff for theming ie. smali editing
Also this should be in Q&A.
Also i know this has been answered b4
But its nice to see newer faces working on stuff for the Hero

kyouko said:
Look for avaboxV2 You can sign zips, apks and a whole lot more stuff for theming ie. smali editing
Also this should be in Q&A.
Also i know this has been answered b4
But its nice to see newer faces working on stuff for the Hero
Click to expand...
Click to collapse
THANK BRO!!! I tried searching for it but, got no where. Should I use this on the stock rom or can it be used with custom roms?

Related

Need Help: Patching services/framework with colour Changer in CM 5.0.5.1

Hey,
now I have a big problem. I wan't to update my themes for the new cyanogen ROM.
But the colorchnger gives an error.
Whats up with it? I can't change the font colours for this rom. RTbhis is not really cool. Any themers out there, who have worked on it? Evereything fine for you?
Put this in services: Attached classes.dex
OK, thank you, mate. What is in it?
Is it a patched classes.dex from yourself?
Did you do it with original cyanogen 5.0.5.1 rom without any errors?
Excuse my ignorance, but I rely pretty heavily on how well the developers automate ost of this stuff. If I am using the Glass Status Bar, and need to do this, can you explain how I put this in services? I just dont want to screw anything up
The best is, you wait until it's ready. There are two small files which must be updated in the themes.
This one (with cyanogen 5.0.5.1) is not so easy. I think, I give it a try this afternoon.
I'm cool with that. Also, could you include an Apply All with your theme?

Curious - how would I start my own theme?

I know about the framework apk file and inside of that where the different things are, but outside of that I am clueless. I know there's gotta be something special about .9.png files but I don't know specifically what to do with them, or how to properly resign the package (if needed).
Any guidance would be great!
Sent from my ADR6300 using XDA App
Bump ?
http://forum.xda-developers.com/showthread.php?t=471586...:)
Now will this work with The incredible or do i have to use a different Format sorry its talking about changing Themes for G1 on the link
arayba said:
Now will this work with The incredible or do i have to use a different Format sorry its talking about changing Themes for G1 on the link
Click to expand...
Click to collapse
The g1 was the first android phone, so it all started there. Same rules apply here so that's a good place to start. Youll wanna do a lot of reading as there are many small details that can mess things up.
For the most part though its just swapping files. I highly recommend 7zip files manager. Depending on what you wanna change and what rom you're theming you'll wanna get stericsons autosign tool setup.

One Click Rom/Theme Optimizer and Signer

This tool will open any AOSP based rom or theme (as long as the file structure is correct) and optimize and zip align everything.
Simply grab your rom or theme and place it in this folder (should work from anywhere but you need to full path from where the cmd file is run). Now click on the reopto_runner.cmd and it will ask you where the rom is (name) that you want to optomize, type the name of the rom and hit enter, it will do the rest.
Final output of the re-optimized (double pass with 2 different png optimizers) rom will be named rom-optoed-signed-finished.zip this will be exactly the same rom except the script will optomize every png in every apk found in the system/app and system/framework-res.apk. It will also zipalign all these same apks and finally will sign the zip file. When its done just rename the rom-optoed-signed-finished.zip to what ever you want and its ready to flash.
What this won't do is make your zip file (rom, theme, update zip) flashable unless its already set up to be flashable... meaning you'll still need your update-script in the com.google.android folder to be there. Its does sign your zip file for you though.
I put this out there as its some of the scripting and tools I have made to help me in theming and rom hacking.
Feel free to use any part of this to help you in any scripting you do.
Sweet, you are the man. Going to try it out now.
I'm going to try this on the MIUI ROM!
Cetus Corr said:
Sweet, you are the man. Going to try it out now.
Click to expand...
Click to collapse
teejaymarx said:
I'm going to try this on the MIUI ROM!
Click to expand...
Click to collapse
I have only tried this method on AOSP based roms the script should work on any rom or theme or update zip that follow this structure in the top level. system/app/*apk and system/framework/framework-res.apk, which is pretty much all of them.
The script takes about 10 minutes or so to run on cm6 rom and is really quick on most of the themes here. So for instance you could use it to make sure or re optimize a theme or roms.
feel free to tire it apart and use it in other fashions. I can guarantee it will shave some about of space of any rom or theme along with the zip aligning of every apk. If its a short request I'll post some more automated tiny scripts to todo various stuff.
Little confused. I run any aosp rom through this and it makes it compatable with the hero? ( sorry for the newb question)
Sent from my Hero CDMA using XDA App
Didn't work for me on the MIUI ROM, got a status 0 error in clockwork recovery...lol
vampir4997 said:
Little confused. I run any aosp rom through this and it makes it compatable with the hero? ( sorry for the newb question)
Sent from my Hero CDMA using XDA App
Click to expand...
Click to collapse
No I haven't released that script yet. This just optimizes a rom that's all.
Sent from my HERO200 using XDA App
teejaymarx said:
Didn't work for me on the MIUI ROM, got a status 0 error in clockwork recovery...lol
Click to expand...
Click to collapse
Not sure what you did... this is not a flashable zip just a tool to optimize a rom.
Did you run this tool on the miui rom?
Sent from my HERO200 using XDA App
Hello,
New to the "kitchen", items like this help us out! Thank you and looking forward to your other scripts. Any desire to do a "how to port a theme/rom" guide? Love the Screaming Droid, I laugh every time I boot up one of my 2.2 roms. I also use your R2 boot but I have yet to get sound on 2.1? Anyway a big thanks goes out to you!
jschill31 said:
Hello,
New to the "kitchen", items like this help us out! Thank you and looking forward to your other scripts. Any desire to do a "how to port a theme/rom" guide? Love the Screaming Droid, I laugh every time I boot up one of my 2.2 roms. I also use your R2 boot but I have yet to get sound on 2.1? Anyway a big thanks goes out to you!
Click to expand...
Click to collapse
Thank you for the praise, wife been complaining about doing stuff for free so I might have to post my pay pal account with a wife complaining button.
I might just release a script that does it for you. mdpi to mdpi (or hdpi to hdpi) no matter what rom is fairly easy todo. Of course it can only theme what it can match but it will do it for you.
For a more in depth description would take some time so I'll probably have to do it some time later.
ASimmons said:
Thank you for the praise, wife been complaining about doing stuff for free so I might have to post my pay pal account with a wife complaining button.
I might just release a script that does it for you. mdpi to mdpi (or hdpi to hdpi) no matter what rom is fairly easy todo. Of course it can only theme what it can match but it will do it for you.
I totally understand, my wife and I have our first child on the way. I am always around so take your time. BTW, I think you would get some clicks your work is solid. I wish XDA had a "thanks" button!
Click to expand...
Click to collapse
Thanks for your hard work. Going to check it out.
jschill31 said:
ASimmons said:
Thank you for the praise, wife been complaining about doing stuff for free so I might have to post my pay pal account with a wife complaining button.
I might just release a script that does it for you. mdpi to mdpi (or hdpi to hdpi) no matter what rom is fairly easy todo. Of course it can only theme what it can match but it will do it for you.
I totally understand, my wife and I have our first child on the way. I am always around so take your time. BTW, I think you would get some clicks your work is solid. I wish XDA had a "thanks" button!
Click to expand...
Click to collapse
Thanks, congradulations... get ready for no sleepy time for about 4 months after the new born. Got 2 girls myself kids are awesome especailly when I just a nig kids myself
chubbzlou said:
Thanks for your hard work. Going to check it out.
Click to expand...
Click to collapse
Your welcome, feel free to alter and use whats in the script. If u have questions I can give you some more pointers on ways to make similar scripts.
Click to expand...
Click to collapse
GJ Sim, when I try it out Ill let ya know ... Thx for this and all your hard work man !
Thank you I got a new project on the way think it might be something use full to themers and people that use themes are like two switch allot. In a week or so...
Sent from my HERO200 using XDA App
So in theory I could run this on one of Jaybob's Froyo builds and make it even faster than it is right now?
LiquidSolstice said:
So in theory I could run this on one of Jaybob's Froyo builds and make it even faster than it is right now?
Click to expand...
Click to collapse
maybe but he should have done the png opto and zipaligning already. I do add another png opto that most people dont do which will squeeze out another couple of kb, was able to shrink cm6 by 16 or so kb, which doesnt seem like alot but every bit counts.
You could use it to just see, like whenever you d/l a new rom run this on it and compare the file size, or load the rom and run a linpack and then opto it and then reload it and then do a linpack and see what you get. Some themers don't zipalign there themes and don't opto there pngs, and I have yet to see anyone use optipng and the other png opto program i use as a double pass system of optimizing pngs.
I like to use it for my themes or roms as it automates the hole process. Try it out if you use it on a rom it will give you a new optoed copy that is already sign and ready to flash... one click
ASimmons said:
maybe but he should have done the png opto and zipaligning already. I do add another png opto that most people dont do which will squeeze out another couple of kb, was able to shrink cm6 by 16 or so kb, which doesnt seem like alot but every bit counts.
You could use it to just see, like whenever you d/l a new rom run this on it and compare the file size, or load the rom and run a linpack and then opto it and then reload it and then do a linpack and see what you get. Some themers don't zipalign there themes and don't opto there pngs, and I have yet to see anyone use optipng and the other png opto program i use as a double pass system of optimizing pngs.
I like to use it for my themes or roms as it automates the hole process. Try it out if you use it on a rom it will give you a new optoed copy that is already sign and ready to flash... one click
Click to expand...
Click to collapse
Sounds good . Of course, when you say "every rom" you only mean AOSP roms, right? I'd suppose it wouldn't be able to rip, for instance, Nfinite's latest rooted Stock ROM apart and png optimize/zipalign it? If it could, holy crap. On top of the fact I use Odex, that would be amazing.
LiquidSolstice said:
Sounds good . Of course, when you say "every rom" you only mean AOSP roms, right? I'd suppose it wouldn't be able to rip, for instance, Nfinite's latest rooted Stock ROM apart and png optimize/zipalign it? If it could, holy crap. On top of the fact I use Odex, that would be amazing.
Click to expand...
Click to collapse
should work on that to since it only looks at pngs and apk. it will onyl zip align the framework-res.apk and the system/app apk's. Actually try it out I never have but it should work.
remember to nand before you flash it but you should be a ok, as I can't see any reason why it would work.
ASimmons said:
should work on that to since it only looks at pngs and apk. it will onyl zip align the framework-res.apk and the system/app apk's. Actually try it out I never have but it should work.
remember to nand before you flash it but you should be a ok, as I can't see any reason why it would work.
Click to expand...
Click to collapse
Hmm. But will I see a difference? Doesn't HTC have their own specific framework-res apk? I'd love to get into ROM themeing, so I've been poking around the ROMs for some time now.

[Q] Question about app intergration and themeing

I'm currently running the newest infinity rom. I cant seem to get my facebook contact pics to update and most of which have the default blank icon. Any way to get the profile pics in my contact list to update from facebook? Is this a possible issue because facebook isn't integrated into the rom? Is there a way to integrate Facebook into the rom? I notice when i stalled FB i can only syc contacts and not calendar. Is there a way to syc both?
Secondly, My wife was wanting a theme she found but it was for old ee4 roms. Is there a easy tut to themeing? If i can figure out how to theme I wouldnt mind doing a couple of themes to keep our roms looking fresh. Lastly, i really like the theme that's in infinity. only thing i would like to change is the over-glow when scrolling. i wanted to change it from yellowish tone to the light blue that's in the rom in a few places. How do i change that? Is there a way to change just that without creating a whole theme?
Check if the sns services are included with infinity.
Sent from my SCH-I510 using XDA App
this may sound like a noob question but im just starting to learn how to really get into the rom to change things. were would i look to find the sns service?
I ran a search in root explorer for sns services and nothing showed up.
Undzis said:
this may sound like a noob question but im just starting to learn how to really get into the rom to change things. were would i look to find the sns service?
Click to expand...
Click to collapse
it is not included in Infinity... it would be an apk in /system/app I think
thanks to dewitherell i can easy add it if its a apk system app i think. If thats what it is. I used his "empty cwm file" to add the the backup assistant. Do i just need to add that? or is there more to it?
Undzis said:
thanks to dewitherell i can easy add it if its a apk system app i think. If thats what it is. I used his "empty cwm file" to add the the backup assistant. Do i just need to add that? or is there more to it?
Click to expand...
Click to collapse
that should be it, you don't even need to flash it you can pull it out of any stock CWM rom package and drop in /system/app with root explorer then reboot... but flashing it would be easier so go ahead lol
ok thanks ill try that in a bit. Im currently trying to cook a theme for my wife with the uot kitchen. hopefuly it will work. if so ill post it for anybody else that wants it. Is there another, easier or better way to theme?
Undzis said:
ok thanks ill try that in a bit. Im currently trying to cook a theme for my wife with the uot kitchen. hopefuly it will work. if so ill post it for anybody else that wants it. Is there another, easier or better way to theme?
Click to expand...
Click to collapse
Easier, no. Better, yes. Check the themes and apps subforum and look for Spc_Hicks's tutorial on turning. That should be a good place to get started.
Endless2232 said:
Easier, no. Better, yes. Check the themes and apps subforum and look for Spc_Hicks's tutorial on turning. That should be a good place to get started.
Click to expand...
Click to collapse
Thanks ill check it.
Also i didn't find any sns services apk in the system/app directory. i found sns account apk and sns Provider apk
ok, i read the tut and seam to be having issues using apk manager. sould i be using the apk files from the infinity rom or should i use the ones from stock rom? i tried the infinity rom files but i get a bunch of errors and a long list of stuff i dont understand yet and then the lasat line says quit and i cant enter commands after that
Undzis said:
ok, i read the tut and seam to be having issues using apk manager. sould i be using the apk files from the infinity rom or should i use the ones from stock rom? i tried the infinity rom files but i get a bunch of errors and a long list of stuff i dont understand yet and then the lasat line says quit and i cant enter commands after that
Click to expand...
Click to collapse
What Ron are you trying to theme?
im trying to run infinity rom atm. would enjoy themeing others possibly if i can figure out how to theme. i cant seem to get apk manager to work right.
Undzis said:
im trying to run infinity rom atm. would enjoy themeing others possibly if i can figure out how to theme. i cant seem to get apk manager to work right.
Click to expand...
Click to collapse
Check your PM.
thanks i did and sent reply

[Q] t mobile theme chooser??? [SOLVED]

I was reading around and I read that with cm7.1 you get t mobile theme chooser, I just wanted to know how to get that on our hybrid version???
Since the theme is specific to the device as it is certain files that are modified, you would have to extract the parts of those files that actually make up the "theme." Most of the files, if I am correct, are .apk such as framework-res.apk, settings.apk, etc... You can't just extract those from any ROM as it will leave you in a bootloop or bricked. However, I would say that it is possible to get the theme chooser for our device, but there would be many parts that would have to be change in order to get it to work correctly. The theme that you would download with that app would download another app that changes the necessary files for you... However, with lots of research, lots of time, and lots of patience... anything is possible...
once i finish changeing the framework it will work
RaverX3X said:
once i finish changeing the framework it will work
Click to expand...
Click to collapse
RarverX3X thank you so much for your time and effort you have put into this device, I am so glad we have such a committed dev like you!
Hi,
I you feel this issue is solved please add [SOLVED] to the OP title
10x

Categories

Resources