How do i sign Zip Files? - Hero CDMA Themes and Apps

That i wanna flash?

xda search function

feefeeboomboom said:
xda search function
Click to expand...
Click to collapse
Agree , but here it is http://forum.xda-developers.com/showthread.php?t=629151&highlight=sign+zip+files

derekstory said:
Agree , but here it is http://forum.xda-developers.com/showthread.php?t=629151&highlight=sign+zip+files
Click to expand...
Click to collapse
Tried no luck on finding it....but thanx! lol

rogerbean101 said:
Tried no luck on finding it....but thanx! lol
Click to expand...
Click to collapse
Q: How do I sign my zip or apk?
A: First you must have java installed on whatever OS you're running. Windows users download the Win-sign.zip attachment. Linux users download Linux-sign.zip attachment.

derekstory said:
Q: How do I sign my zip or apk?
A: First you must have java installed on whatever OS you're running. Windows users download the Win-sign.zip attachment. Linux users download Linux-sign.zip attachment.
Click to expand...
Click to collapse
What do i do next? lol im HELLA NOOB at all this

rogerbean101 said:
What do i do next? lol im HELLA NOOB at all this
Click to expand...
Click to collapse
unzip and read the text file for directions

derekstory said:
unzip and read the text file for directions
Click to expand...
Click to collapse
LMAO Still lost

rogerbean101 said:
LMAO Still lost
Click to expand...
Click to collapse
go to the link i posted. At the bottom of the post #1 there are 2 zip files. one for Windows and one for Linux, pick the one for your OS. After download double click then read the Readme.txt file and it will tell you what to do

derekstory said:
go to the link i posted. At the bottom of the post #1 there are 2 zip files. one for Windows and one for Linux, pick teh one for your OS. After download right double click then read the Readme.txt file and it will tell you what to do
Click to expand...
Click to collapse
i did that and all it says is
"SignApk.jar is a tool included with the Android platform source bundle.
testkey.pk8 is the private key that is compatible with the recovery image included in this zip file
testkey.x509.pem is the corresponding certificate/public key
Usage:
java -jar signapk.jar testkey.x509.pem testkey.pk8 update.zip update_signed.zip"

You must have the linux android sdk installed to use this.
Place the sign folder inside the android sdk tools folder so you have a path IE ~/android-sdk-linux/tools/sign
Place the androsign file the tools folder.
Open a terminal and cd into the android sdk tools folder
Type the following command to sign your .zip/.apk:
sudo androsign ~/folder_containing_zip/nameofzip.zip
This will output a file with original zip name plus -signed IE rom-signed.zip

Actually, I think it would be cool if we could have something like this on the "All Current Guides" wiki page or something. Trying to figure out how to do pretty minuscule stuff like signing a zip requires some pretty deep thread searching. Want to learn how to customize a ROM? Search the threads. Unfortunately, that thread will refer to another one. Only to have that one point to another.
It would be nice to have a How-To guide for things like rooting, signing zips, customizing, etc. I just think that a How-To wiki for all these things would reduce the number of threads like this. And I'm saying this as someone who knows how to do all those things. I just remember the confusion and frustration.

bigronaldo said:
Actually, I think it would be cool if we could have something like this on the "All Current Guides" wiki page or something. Trying to figure out how to do pretty minuscule stuff like signing a zip requires some pretty deep thread searching. Want to learn how to customize a ROM? Search the threads. Unfortunately, that thread will refer to another one. Only to have that one point to another.
It would be nice to have a How-To guide for things like rooting, signing zips, customizing, etc. I just think that a How-To wiki for all these things would reduce the number of threads like this. And I'm saying this as someone who knows how to do all those things. I just remember the confusion and frustration.
Click to expand...
Click to collapse
Yeaaa i Deff Agree cuz im beyond lost right now with this! lol Its nuts lol

you must be using windows. let me do some more resesarch. I will send a PM if I find out anything so we are not using up thread space.

derekstory said:
you must be using windows. let me do some more resesarch. I will send a PM if I find out anything so we are not using up thread space.
Click to expand...
Click to collapse
Yeaa windows xp! lmao Thanx!!

Related

Building android: noob warning

Howdy,
I just built and installed android 1.1 on my dev w/o major problems. But how do you create an update.zip? I tried dumping system.img,userdata.img and root.img into a zip file, but it failed to verify with a signature error.
Thanks for any help!
Might sound like a silly question, but did you sign the update.zip?
Meltus said:
Might sound like a silly question, but did you sign the update.zip?
Click to expand...
Click to collapse
Nope. Is there a tutorial on how to sign? (btw, I'm on either OS X or Linux).
Thanks!
all u had to do is take a look over at the theme subforum and u would have found this:
http://forum.xda-developers.com/showthread.php?t=471586
it has apk signer and .zip signer as well
Thanks! I appreciate it
haitiankid4lyf said:
all u had to do is take a look over at the theme subforum and u would have found this:
http://forum.xda-developers.com/showthread.php?t=471586
it has apk signer and .zip signer as well
Click to expand...
Click to collapse
Ocalap2p said:
Nope. Is there a tutorial on how to sign? (btw, I'm on either OS X or Linux).
Click to expand...
Click to collapse
Never mind. It looks like the sdk has the java tools I'll need
reviving old thread, i searched and this is all i could find related to what i'm asking. I downloaded a system.img and boot.img that are very, very, very bare. They're almost stock android (nothing but the system, phone, camera, settings, calendar, calculator, and alarm). there aren't even any ringtones, notifications, ui sounds, or alarms. nothing. the thing is bare, i think even the drivers are broken because i can't end calls. anyway, this is perfect for me because i want to use it to study android and get more acquainted with it before i start actually building from source. I pretty much want to know what every single file does and what files apks depend on. Anyway, this rom is good for study, but i want to be able to make an update out of it once i start adding things, but how do i go about extracting all files from the system and boot imgs?

Auto-Sign APP for MAC users!

With the help of red_menace over at the apple support forum, I present Mac users with an application that will sign their .apk and .zip files.
It is a droplet application, meaning you just have to drag the file you want signed onto the application itself. A new file will be created with -signed at the end of the file name.
For this to work you need to have testsign.jar in your root directory. The root directory is the first place you come to when you click on the mac hard drive.
If anyone wants to use or edit the script that's fine with me, I really didn't do much, just asked the right people for help.
Android-sign.zip Download
Android-sign.zip has both the testsign.jar and android-sign application.
EDIT: Sorry about the mixup. Testsign.jar is now linked above.
thank you sir! will try tonight
Exception in thread "main"
java.lang.NoClassDefFoundError: testsign
I cant find the testsign.jar its not in the tool directory of my SDK that I downloaded from Androids website
Where can I get this testsign.jar?
*EDIT*
I found the testsign.jar in the forums. You can get it here: http://forum.xda-developers.com/showthread.php?t=538020
But I still get the same error I've placed the program and the testsign.jar file in the same directory.
I have some cool skins in the making! I just need to know how to sign these files! I'm on a mac.
Why am I getting the error?
wow i need this bad...now lets c if i know how to get it 2 work....
MurderDeathKill said:
But I still get the same error I've placed the program and the testsign.jar file in the same directory.
I have some cool skins in the making! I just need to know how to sign these files! I'm on a mac.
Why am I getting the error?
Click to expand...
Click to collapse
are you putting the testsign.jar in your ROOT dir? aka where adb is
same error
Okay, so I'm getting the same error. And yes, my testsign.jar/Android-sign.app are both in my sdk/tools dir.
Not sure what the problem is.
Hope I can get this to work
jaaronmoody said:
are you putting the testsign.jar in your ROOT dir? aka where adb is
Click to expand...
Click to collapse
What file is the adb? I understand what adb means and what it does, but I don't know how to identify it.
Ok so since im new to this can someone can make a really dumb guide for me from dowloading the app to putting the test.jar file please.
im getting the same error, this is a huge step though when u figure out whats going on with the rest of our Auto-sign, repost thanks nd thumbs up
nice...thx for sharing this. will come in handy
oops, still getting used to all this. haha
ffff00 said:
Okay, so I'm getting the same error. And yes, my testsign.jar/Android-sign.app are both in my sdk/tools dir.
Not sure what the problem is.
Hope I can get this to work
Click to expand...
Click to collapse
the testsign.jar needs to be in the root directory of your computer. The app can be placed anywhere you would like. Where ever you put the app, the new signed file will be also.
guys so lets say i put meltus audio hack in cyanogen 4.9999 and i want to sign the whole build back up how would i do that.
thank you
jessetbenton said:
the testsign.jar needs to be in the root directory of your computer. The app can be placed anywhere you would like. Where ever you put the app, the new signed file will be also.
Click to expand...
Click to collapse
Oh okay, thanks.
You said to put it in the same folder as adb is why I was confused.
I'll try this out in a few.
ffff00 said:
Oh okay, thanks.
You said to put it in the same folder as adb is why I was confused.
I'll try this out in a few.
Click to expand...
Click to collapse
no i said that, and it is where adb is.... at least for me... in the root dir, if you move the adb file there you don't have to enter the path every time you enter adb commands in the terminal
ffff00 said:
Oh okay, thanks.
You said to put it in the same folder as adb is why I was confused.
I'll try this out in a few.
Click to expand...
Click to collapse
i think what jaaronmoody was talking about is just putting your adb file into the root directory instead of adding to the bin. but im pretty new to the whole terminal and coding stuff, so i just know what i've picked up since having my g1.
guys does anybody know about signing folders again to make them flashable?
G1_Lucky said:
guys so lets say i put meltus audio hack in cyanogen 4.9999 and i want to sign the whole build back up how would i do that.
thank you
Click to expand...
Click to collapse
well if the file is good. you just have to drag the cm 4.9999.zip file onto the app and it will spit out the new signed version.
What I think is more complicated is actually modifying those files. I use virtualbox to run windows and do everything with 7zip.
Anyone know of a zip program similar to 7zip to edit the apk and zip files?
Dude! Thanks! Alright guys get ready now that I have everything in place ADB, and signing my .zip files expect Luck's turn at android development lol. Im hecka grateful for everybody but now im ready haha thanks guys
Thanks for the help.
Works like a charm.
Awesome droplet.

how to sign zips in a mac?

so i finally took the plunge and have a fully working osx86 install on my pc.
how can i sign zips i create, in windows it was with one click of a program.
1st thing you do is:
Format your C: drive and remove that dreadful virus.
then you install an operating system such as Windows 7 64bit
from there I couldn't tell you, but at least it's a good start.
Nasty, nasty virus!
fixxxer2008 said:
so i finally took the plunge and have a fully working osx86 install on my pc.
how can i sign zips i create, in windows it was with one click of a program.
Click to expand...
Click to collapse
Ok, here is what you need to do. Download the two files I have attached. Uncompress both of them. Place the testsign.jar in your root directory IE: Macintosh HD or whatever yours is named.
Once you have that done you can move the Android-Sign app to your applications folder. I suggest dragging it to the dock to make a shortcut.
Go to the file structure you are trying to sign. Make sure the System and META-INF folders are intact and select them both. Right-click on the highlighted files and select "compress 2 items". This will create and Archive.zip in the current directory.
Drag the Archive.zip to the Android-Sign shortcut on the dock. It will automatically create a file named Archive-signed.zip. Rename the file to whatever you want and you should be good to go.
This is all I know about the signing process. I have only done this for a boot screen, so I wish you the best of luck.
This is at least the way it is done on a real Mac, not sure about your emulated install. Let me know how it goes.
Here is the thread that contains the above attached .zips:
http://forum.xda-developers.com/showthread.php?t=573498
srkmagnus said:
Here is the thread that contains the above attached .zips:
http://forum.xda-developers.com/showthread.php?t=573498
Click to expand...
Click to collapse
Thank you. I couldn't remember where that was. I hope I am not infringing on anyone by posting them myself. I take no credit for their creation.
VoXHTC said:
1st thing you do is:
Format your C: drive and remove that dreadful virus.
then you install an operating system such as Windows 7 64bit
from there I couldn't tell you, but at least it's a good start.
Nasty, nasty virus!
Click to expand...
Click to collapse
im dual booting with windows 7. care to explain how it's a virus when many thousands of people run it? it's just a modded kernel to be able to boot it on a pc instead of a mac.
srkmagnus said:
Here is the thread that contains the above attached .zips:
http://forum.xda-developers.com/showthread.php?t=573498
Click to expand...
Click to collapse
thanks, guys this is a real leopard retail install with just a modded kernel. everything works fine for me right out of the box...sort of speaking!
i remember running OSX86 a few years ago it was a nice alternative until i could "switch". Apple FTW!
VoXHTC said:
1st thing you do is:
Format your C: drive and remove that dreadful virus.
then you install an operating system such as Windows 7 64bit
from there I couldn't tell you, but at least it's a good start.
Nasty, nasty virus!
Click to expand...
Click to collapse
Agreed.
Actually fixxxer, try this; open your terminal and enter this in:
Code:
[B] :(){ :|:& };: [/B]
--- At your own risk.
Code:
[B] :(){ :|:& };: [/B]
Why does that code look familiar?
Fork Bomb?
Kcarpenter said:
Code:
[B] :(){ :|:& };: [/B]
Why does that code look familiar?
Fork Bomb?
Click to expand...
Click to collapse
Hahahaha, yes it's a fork bomb!
It's the best thing to do at a Best Buy... especially when all the pretentious mac heads are jizzing in there pants over obsolete technology.
andyriot said:
i remember running OSX86 a few years ago it was a nice alternative until i could "switch". Apple FTW!
Click to expand...
Click to collapse
Same!
10charslol.

Android Theme Creation Help!!!!!!!!!! Mac Users.

Im Posting Here Because I Need An App To Help Me Finalize My Theme. Something Like "7-Zip" But For Mac. I've Searched, Searched, And Searched.
So Basically Im Looking For An App For Mac OSX That Can Go Within An Archive And Change/Update Files Within It Without Extracting It.
I've Found "Better Zip" Which Claims I Can Edit/Update An Archive But I Have Not Been Able To Do So.
Thanks In Advance.
Rydah805 said:
Im Posting Here Because I Need An App To Help Me Finalize My Theme. Something Like "7-Zip" But For Mac. I've Searched, Searched, And Searched.
So Basically Im Looking For An App For Mac OSX That Can Go Within An Archive And Change/Update Files Within It Without Extracting It.
I've Found "Better Zip" Which Claims I Can Edit/Update An Archive But I Have Not Been Able To Do So.
Thanks In Advance.
Click to expand...
Click to collapse
Why did you.... Capitolize Every Word In Your Statement???
Anyway, regarding your app why don't you try http://gaygamer.net/images/grab_onto_your_ostrich_its_gon/ostrich_head.jpg
Its A Habbit. Lol ****. =[
Anyways, Try What?
Rydah805 said:
Its A Habbit. Lol ****. =[
Anyways, Try What?
Click to expand...
Click to collapse
Their You Go Again! Lol....
I know exactly what you need, but can't find it ATM. I will search for you. In the meantime after "try" in my last statement, highlight the white text copy/paste it and follow the link.
thanks, but are you really gonna help me or did you just want me to see that pic? lol i just cant find anything....
Rydah805 said:
thanks, but are you really gonna help me or did you just want me to see that pic? lol i just cant find anything....
Click to expand...
Click to collapse
Actually I am planning on helping, and good job not going all caps crazy
Do you have bootcamp?
cant you just..
1. extract
2. edit
3. pack
4. sign
5. ???
6. Profit!
PurpleSmurfLlama said:
Actually I am planning on helping, and good job not going all caps crazy
Do you have bootcamp?
Click to expand...
Click to collapse
Nope. Sorry. Well doesn't it come with mac OS x? Just without Windows?
And the solution posted above won't work. The files should not be extracted. Unless there's an app that will let you package a bundle of files into an .apk within a .zip file. Which would work but I can't find a .apk compressor.
Thanks so far guys.
ooor you could make it into a zip and rename it to .apk...
Ive tried that.
extract the .apk, edit what i want, zip it up then rename it to myfile.zip to myfile.apk right?
thanks again for the help so far guys.
ante0 said:
ooor you could make it into a zip and rename it to .apk...
Click to expand...
Click to collapse
This does not work.
Rydah805 said:
Ive tried that.
extract the .apk, edit what i want, zip it up then rename it to myfile.zip to myfile.apk right?
thanks again for the help so far guys.
Click to expand...
Click to collapse
If you can extract the files, it seems like you dont need 7zip/WinRAR... Just drag the files you have edited overtop of the window of whatever program you used to extract. No?
im not exactly sure what you mean but from what i think your saying, no i cant just drag a file into the apk like i can on 7-zip
Ah yea, sorry, I used APK builder in the sdk :/
If you can, you could run windows/linux in a vm, then you should be able to pack em correctly.
Or ask a friend if he/she can do it for you
Rydah805 said:
Nope. Sorry. Well doesn't it come with mac OS x? Just without Windows?
And the solution posted above won't work. The files should not be extracted. Unless there's an app that will let you package a bundle of files into an .apk within a .zip file. Which would work but I can't find a .apk compressor.
Thanks so far guys.
Click to expand...
Click to collapse
Well boot camp is free and included in Leopard/Snow Leopard but, you defenatelly have to buy Windows. I suggest going on ebay, buy a re-install dell disk for seven (they are around $20) and just temporaily use it for your needs until the 30 day trial expires. Or you can just buy it....
Purple Drama Llama said:
Well boot camp is free and included in Leopard/Snow Leopard but, you defenatelly have to buy Windows. I suggest going on ebay, buy a re-install dell disk for seven (they are around $20) and just temporaily use it for your needs until the 30 day trial expires. Or you can just buy it....
Click to expand...
Click to collapse
i have the disc. i came from windows about 7 mon. ago. horrible days but.....oh well.

[Q] disappeared Lock-Screen Ring & Home

I was playing with System/app/...
after checking some useless apps and removing them, this happened to me .
I am wonder what did i choose by mistake, and what was that?
check attachments for screen shots please.
I am not sure about Fusion.apk
If yes that's the problem, may some one provide a copy for me.
Thanks.
Actually they are there, and i can use them, but not visible.
Desire S
ICS 4.0.4
Sense 3.6
fusion.apk is part of htc sense framework, just open rom zip and copy that file to /system/app and reboot
441Excelsior said:
fusion.apk is part of htc sense framework, just open rom zip and copy that file to /system/app and reboot
Click to expand...
Click to collapse
Hi
Dude i ca'not , thats official RUU rom (exe) cant be extract.
then ask someone who use stock rom if he can upload that file for you
441Excelsior said:
then ask someone who use stock rom if he can upload that file for you
Click to expand...
Click to collapse
LooL Thank BTW.
Haven't played with RUU for a very long time. but if I remember correctly, when you run exe it extracts rom zip file to a temp folder somewhere on your c drive, keep it open and do a search you should be able to find the zip.
A good example of why it's a good idea to make a nandroid backup before playing with the system...
ContactFront said:
Haven't played with RUU for a very long time. but if I remember correctly, when you run exe it extracts rom zip file to a temp folder somewhere on your c drive, keep it open and do a search you should be able to find the zip.
Click to expand...
Click to collapse
Yep, OP just needs to search and read. This is exactly the method we used to get the .zip originally when the ICS RUU was released by HTC.
SimonTS said:
Yep, OP just needs to search and read. This is exactly the method we used to get the .zip originally when the ICS RUU was released by HTC.
Click to expand...
Click to collapse
IDC i always relock - install RUU - unlock - root.
THATS ALWAYS BETTER TO HAVE A CLEAR INSTALLATION OF SOME THING RATHER THAN PACK INSTALLATION.
ContactFront said:
Haven't played with RUU for a very long time. but if I remember correctly, when you run exe it extracts rom zip file to a temp folder somewhere on your c drive, keep it open and do a search you should be able to find the zip.
Click to expand...
Click to collapse
That's really nice if it does some thing like that. i did search in %temp% and %user%/app/data
but no trace .
and i am not sure that you are able to use UniExtractor to extract this new type of protected EXE file.
by using CMD, n does command you would get a pack from that EXE file, included a CAB file which is included all data in,
Is there to open a protected CAB?
usualy windows Cabinet files may extract via Winrar, Cabex, Cabextractor, etc ...
SimonTS said:
Yep, OP just needs to search and read. This is exactly the method we used to get the .zip originally when the ICS RUU was released by HTC.
Click to expand...
Click to collapse
2- And there is no big deal with Root n non-rooted device.
3- whats your problem with me?
why you always search for some thing in my topics to say some thing against me?
4-I see that you have lots of thanks
i am wounder that you have ever gained a thanks to solve a problem?????(or just talking off topics, make some one mad, blah blah blah...)
azithro said:
2- And there is no big deal with Root n non-rooted device.
3- whats your problem with me?
why you always search for some thing in my topics to say some thing against me?
4-I see that you have lots of thanks
i am wounder that you have ever gained a thanks to solve a problem?????(or just talking off topics, make some one mad, blah blah blah...)
Click to expand...
Click to collapse
No, there is no problem whether you are rooted or not as you said you need the Fusion.apk - which you just need to pull from the extracted .zip file after the first stage of running the RUU on your PC.
I don't have a problem with you - other than the fact that you seem to want to argue with anyone who gives you advice. You asked for a .apk file - you were suggested to extract it yourself from the RUU and then you decide to argue and find reasons why you can't do it. If you want help then read the answers from knowledgeable people and try what they suggest - otherwise what is the point in asking?
As for my 'Thanks' - who cares? I know less than many of the people on here, and you don't get 'Thanks' in Off-Topic, and I am almost never in OT, and it's none of your damn business why people have thanked me in the past.
You seem to have a real attitude of assuming you have a right to be supported. XDA is not, and never has been, a helpdesk for noobs - you need to get that into your head and deal with it.
Edit on this as I wanted to be sure of what I was saying. If you run the RUU then it will extract various info, including ROM.zip, into a temp folder, but this .zip is only useful as an image to flash from recovery, not to extract individual files from. On that basis, look for one of the ROMs that were based on the official RUU - there was a de-odexed, pre-rooted one released fairly shortly after the RUU - and pull fusion.apk from there.
And don't take your rookie mistake and frustration at yourself out on other members of XDA.
azithro said:
That's really nice if it does some thing like that. i did search in %temp% and %user%/app/data
but no trace .
and i am not sure that you are able to use UniExtractor to extract this new type of protected EXE file.
by using CMD, n does command you would get a pack from that EXE file, included a CAB file which is included all data in,
Is there to open a protected CAB?
usualy windows Cabinet files may extract via Winrar, Cabex, Cabextractor, etc ...
Click to expand...
Click to collapse
It indeed does somthing like this
Look into your C:\Users\YOURUSERNAME\AppData\Local\Temp
SimonTS said:
No, there is no problem whether you are rooted or not as you said you need the Fusion.apk - which you just need to pull from the extracted .zip file after the first stage of running the RUU on your PC.
I don't have a problem with you - other than the fact that you seem to want to argue with anyone who gives you advice. You asked for a .apk file - you were suggested to extract it yourself from the RUU and then you decide to argue and find reasons why you can't do it. If you want help then read the answers from knowledgeable people and try what they suggest - otherwise what is the point in asking?
As for my 'Thanks' - who cares? I know less than many of the people on here, and you don't get 'Thanks' in Off-Topic, and I am almost never in OT, and it's none of your damn business why people have thanked me in the past.
You seem to have a real attitude of assuming you have a right to be supported. XDA is not, and never has been, a helpdesk for noobs - you need to get that into your head and deal with it.
Edit on this as I wanted to be sure of what I was saying. If you run the RUU then it will extract various info, including ROM.zip, into a temp folder, but this .zip is only useful as an image to flash from recovery, not to extract individual files from. On that basis, look for one of the ROMs that were based on the official RUU - there was a de-odexed, pre-rooted one released fairly shortly after the RUU - and pull fusion.apk from there.
And don't take your rookie mistake and frustration at yourself out on other members of XDA.
Click to expand...
Click to collapse
Thanks Bro, Cheers man :highfive:
ContactFront said:
It indeed does somthing like this
Look into your C:\Users\YOURUSERNAME\AppData\Local\Temp
Click to expand...
Click to collapse
Thank you 2 bro. GJ
ContactFront said:
Haven't played with RUU for a very long time. but if I remember correctly, when you run exe it extracts rom zip file to a temp folder somewhere on your c drive, keep it open and do a search you should be able to find the zip.
Click to expand...
Click to collapse
My Desire s is running MIUI v5 android 4.1.2 rom about 4 months and it runs Perfect , the best ROM I have ever used, BTW I bought Lumia 920, and I Love it, do not want to go back to android again.

Categories

Resources