Signing ZIPs - Hero CDMA Themes and Apps

So, I read hat you can sign zips with fresh's kitchen... so i downloaded it and it says java is not a valid command, etc.
Then I found another way to try to do it and that was by doing it manually, tried it. Java is not a valid command.
I have Eclipse and the SDK and the JDK installed, so there shouldn't have been any issue.
Any idea how to get these zips signed so I can flash them to my phone? Ill be releasing them once I get them signed, as well.
They're clear lock screens with designs.
Also... I am on windows 7 64 bit. If that matters for the signing of zips.

jerry43812 said:
So, I read hat you can sign zips with fresh's kitchen... so i downloaded it and it says java is not a valid command, etc.
Then I found another way to try to do it and that was by doing it manually, tried it. Java is not a valid command.
I have Eclipse and the SDK and the JDK installed, so there shouldn't have been any issue.
Any idea how to get these zips signed so I can flash them to my phone? Ill be releasing them once I get them signed, as well.
They're clear lock screens with designs.
Also... I am on windows 7 64 bit. If that matters for the signing of zips.
Click to expand...
Click to collapse
add java to your path

regaw_leinad said:
add java to your path
Click to expand...
Click to collapse
I added that earlier, didn't fix.

Chcked path again, but misspelled it, so I fixed it and tried to sign the zip again, and still same error.

Download Stericson's autosign.bat if you're on windows (which i'm assuming you are, as you use flipz' kitchen). Makes signing so much easier....

HeroMeng said:
Download Stericson's autosign.bat if you're on windows (which i'm assuming you are, as you use flipz' kitchen). Makes signing so much easier....
Click to expand...
Click to collapse
tried that as well. i dont normally use the kitchen, i just read that youc an sign zips with it.

jerry43812 said:
So, I read hat you can sign zips with fresh's kitchen... so i downloaded it and it says java is not a valid command, etc.
Then I found another way to try to do it and that was by doing it manually, tried it. Java is not a valid command.
I have Eclipse and the SDK and the JDK installed, so there shouldn't have been any issue.
Any idea how to get these zips signed so I can flash them to my phone? Ill be releasing them once I get them signed, as well.
They're clear lock screens with designs.
Also... I am on windows 7 64 bit. If that matters for the signing of zips.
Click to expand...
Click to collapse
I'm running same thing as you and I ran into the same problem and come to find out that the jdk (jdk-6u19-windows-i586.exe) that you download doesn't install the java runtime environment like everyone says. I don't know if thats just a windows 64 thing or what but thats what it is.

jerry43812 said:
I added that earlier, didn't fix.
Click to expand...
Click to collapse
did you reboot your computer

Hey, when I sign zips I use this. I found it on google. Works perfectly. I'm running windows 7 ultimate btw. Just put the zip in the folder and name it update ( make sure you delete the update.zip thats already in there) and then run the sign.bat and it will create update_sign.zip and then you can rename it to whatever you want. =]
http://jump.fm/JGFOE --- Auto-Sign

wait, so you've already tried adding java to your path?
make sure its java.exe. i also added jvm.cfg just in case, try that maybe?

http://www.4shared.com/file/256656535/b77de5de/Avabox.html
extract the zip to desktop, install JRE from their website. run command prompt AS ADMIN. cd to the autosign folder. open the readme, copy and paste the jave usage into cmd. wait. tada. make sure your zip named update.zip

Avalaunchmods said:
http://www.4shared.com/file/256656535/b77de5de/Avabox.html
extract the zip to desktop, install JRE from their website. run command prompt AS ADMIN. cd to the autosign folder. open the readme, copy and paste the jave usage into cmd. wait. tada. make sure your zip named update.zip
Click to expand...
Click to collapse
I'll check this out and get back to you.

Aha... See... I installed the JDK version, not JRE. I think eclipse instructions wanted JDK... what the heck. so now I have 3 javas installed on here? my regular one, the JDK, not soon to be the JRE.

The other java you are talking about is used to run java compiled things on your computer and websites.
The JDK and JRE are for developing and other stuff. Both needed for signing a file.

Now this is getting pretty frustrating. JRE is already installed on my machine. I changed my path to C:\Android\eclipse\jre\bin aand still the same damn error... will update with more attempts at failure here.
Edit: added C:\Android\eclipse\jdk1.6.0\bin to the PATH and still same error.
Edit: added \java.exe to both strings I've mentioned in here, still same error.
Final edit because I give up: I removed just java.exe, leaving C:\Android\eclipse\jre\bin\;C:\Android\eclipse\jdk1.6.0\bin\ and still, nothing.

jerry43812 said:
Now this is getting pretty frustrating. JRE is already installed on my machine. I changed my path to C:\Android\eclipse\jre\bin aand still the same damn error... will update with more attempts at failure here.
Edit: added C:\Android\eclipse\jdk1.6.0\bin to the PATH and still same error.
Edit: added \java.exe to both strings I've mentioned in here, still same error.
Click to expand...
Click to collapse
Try using this to sign your things and see if you still get the error
Click on autosign.bat, then 4, and then the file path and then type yes.
View attachment 305715

Jus10o said:
Try using this to sign your things and see if you still get the error
Click on autosign, then 4, and then the file path and then type yes.
View attachment 305715
Click to expand...
Click to collapse
Tried it. I recognize it by you saying "4". But I will try again.
Here ya go. MORE ERRORS this time YAY!
**************
Signing File!
**************
Exception in thread "main" java.lang.NoClassDefFoundError: testsign
Caused by: java.lang.ClassNotFoundException: testsign
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: testsign. Program will exit.
File signed successfully if no Errors above.
"File signed successfully if no Errors above. I am about to fall off my chair laughing.

jerry43812 said:
Tried it. I recognize it by you saying "4". But I will try again.
Here ya go. MORE ERRORS this time YAY!
**************
Signing File!
**************
Exception in thread "main" java.lang.NoClassDefFoundError: testsign
Caused by: java.lang.ClassNotFoundException: testsign
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: testsign. Program will exit.
File signed successfully if no Errors above.
Click to expand...
Click to collapse
Type 1 then yes
type 2 then yes
and 3 then yes
and then try to sign using 4.

Jus10o said:
Type 1 then yes
type 2 then yes
and 3 then yes
and then try to sign using 4.
Click to expand...
Click to collapse
on 3:
Registry values from testsign_apk.reg will be added to your registry!
Do you want to proceed? yes/no?
Type input: yes
************************
Adding Registry values!
************************
'reg.exe' is not recognized as an internal or external command,
operable program or batch file.
Registry values added, operation successful if you recieved a confirmation above
.
now you can right click on any zip or apk and resign it with ease!
The resigning option will overwrite the old file with the new, resigned one.

jerry43812 said:
on 3:
Registry values from testsign_apk.reg will be added to your registry!
Do you want to proceed? yes/no?
Type input: yes
************************
Adding Registry values!
************************
'reg.exe' is not recognized as an internal or external command,
operable program or batch file.
Registry values added, operation successful if you recieved a confirmation above
.
now you can right click on any zip or apk and resign it with ease!
The resigning option will overwrite the old file with the new, resigned one.
Click to expand...
Click to collapse
I dont think 3 is really needed. Its just an extra. You can do step 3 by just double clicking and running testsign_apk from the folder.
And you did move all the files to a folder on your desktop correct?

Related

rezipping update

I have opened jf1.5 adp1 and removed the camera app from it how do I zip it back up so my phone will perform the update. I have already updated my phone to the unedited version of jf1.5 adp1 when I try to use the edited version it aborts the updated
quilobo said:
I have opened jf1.5 adp1 and removed the camera app from it how do I zip it back up so my phone will perform the update. I have already updated my phone to the unedited version of jf1.5 adp1 when I try to use the edited version it aborts the updated
Click to expand...
Click to collapse
it has to be signed .. read JFs info for his "Build Environment" .. very easy to do in linux .. you can't just modify the zip and be done .. files must be signed
thanks for your response
No need for the entire build environment. Just get the AndroidMod.zip file (google for dl sources) and run the modified update.zip through signapk. There is a readme included detailing how to use it.
I have the sign app but I can't figure out how to use it. I searched but I could not find a good set of instructions.
Open your command line, change directory to the signapk directory (also for convenience your update.zip file should be in this directory too) then type:
java -jar signapk.jar testkey.x509.pem testkey.pk8 update.zip update_signed.zip
That's it. The update_signed.zip file will be the finished file. If it gives you an error 'java' is not a valid executable, that is because you don't have JRE or JDK installed.
ok I did all that put the update.zip that is signed on my sd card with nothing else on it. started teh up date the phone verifies the file. then it starts installing as soon as it starts to install I get this error on my phone. "E:Can't find update script installation aborted.
Somehow you deleted the update-script. Check the zip file to see if its still present:
\META-INF\com\google\android\update-script
it is still there
quilobo said:
it is still there
Click to expand...
Click to collapse
Confusing.
it is only a 3k file. I found a 14k file in another update.zip I had
still says it can't find it
What archive creation program are you using to create the zip?
winzip what should I be using
Hm. Idk, I was just curious. It shouldn't make a difference really. Particularly if the signing tool worked fine. Maybe someone else can shed some light on this.
Try and re download your sources and then modify and resign.
Also be sure to check your sources after download and transfer (SHA1, MD5 etc)
ok I redownloaded the file and repeated the process and still get the same error. all I am trying to do is remove the camera app from the jf1.5adp1 build and put it on my phone .

Signing the update.zip in Mac OS X?

I'm sure this has been asked before but after prolific searching of the forums and our friend Google I turn to you guys for help. As the title says I'm using OS X and I need a solution (that isn't dual booting to use XP) to signing the update.zip so that I can customise aspects of my ROM, I'm very eager to learn how to do this and this so far seems to be quite an annoying problem.
Thanks for your time in advance
tristyB said:
I'm sure this has been asked before but after prolific searching of the forums and our friend Google I turn to you guys for help. As the title says I'm using OS X and I need a solution (that isn't dual booting to use XP) to signing the update.zip so that I can customise aspects of my ROM, I'm very eager to learn how to do this and this so far seems to be quite an annoying problem.
Thanks for your time in advance
Click to expand...
Click to collapse
pm me............
korndub said:
pm me............
Click to expand...
Click to collapse
Hi korndub,
Cannot you post the answer here so everybody that uses OS X can also sign?
I'm also having problems signing full roms (update.zip files) with signapk.jar
Any help is appreciated
rommelin said:
Hi korndub,
Cannot you post the answer here so everybody that uses OS X can also sign?
I'm also having problems signing full roms (update.zip files) with signapk.jar
Any help is appreciated
Click to expand...
Click to collapse
i have a folder on the desktop which contains the signapk.jar and both sets of keys...put the Archive.zip that you have created and want to sign in this folder, then open terminal
in terminal, you type
$cd FOLDER-containing-files
$java -jar signapk.jar testkeys.x509.pem testkey.pk8 Inputfile.zip outputfile.zip
the outputfile.zip is your update which is signed....
OK, I do all that I think.
Heres my process.
Download ROM
Extract downloaded zip to folder eg update
Make changes to files
Compress folder back to zip eg update1.zip
java -jar signapk.jar testkeys.x509.pem testkey.pk8 update1.zip update_signed.zip
rename and copy the signed file to sd
reboot recovery
wipe and apply update
It doesn't moan about the signing (so I assume its ok) but I get an update script not found error and it doesn't install.
I haven't changed the update scripts, only the boot.img and one or two scripts in system.
Does every file I change have to be resigned as well? I muct be missing something here
on OSX 10.5
Signing has nothing to do with that error. Make sure that the update-script is in the correct path.
META-INF/com/google/android/update-script
it is, is a normal update.zip (ie cyanogen rom), and the only file I've changed is boot.img and a2sd in system/bin
i have a folder on the desktop which contains the signapk.jar and both sets of keys...put the Archive.zip that you have created and want to sign in this folder, then open terminal
in terminal, you type
$cd FOLDER-containing-files
$java -jar signapk.jar testkeys.x509.pem testkey.pk8 Inputfile.zip outputfile.zip
the outputfile.zip is your update which is signed....
Click to expand...
Click to collapse
Thank you so much, this works for me, I might try and build it into an automator workflow
Edit: I spoke too soon, I get the update script error also
Edit Again: my update-script is in the same place as it should be also
Wonder if this is a specific OSX problem? We do have apples 'interpretation' of java don't we?
dazcox5181 said:
Wonder if this is a specific OSX problem? We do have apples 'interpretation' of java don't we?
Click to expand...
Click to collapse
haha, yeah that's right, those crazy cats at Apple. but I assume that korndub also has Apples 'interptretation' so something else could be the problem also
perhaps the way we zip the archive?
dazcox5181 said:
perhaps the way we zip the archive?
Click to expand...
Click to collapse
sadly not, I just used a application that zips in a PC format (without mac hidden files) and no joy. Good idea though.
Edit: Just tried archiving the zip but not compressing. Thought I was on to something. I wasn't.
Another update, I have tried the same in Fedora 11 and again, getting the update script error message when I flash.
I signed modified update for 3 different builds on my Mac, everything worked w/o problems every time. I did everything like described in readme and several times here. So, it's not a global OS X problem.
BTW, I used muCommander to directly modify all zips.
neuro159 said:
I signed modified update for 3 different builds on my Mac, everything worked w/o problems every time. I did everything like described in readme and several times here. So, it's not a global OS X problem.
BTW, I used muCommander to directly modify all zips.
Click to expand...
Click to collapse
When I find the time later on I will give the muCommander a go. Fingers crossed.
dazcox5181 said:
OK, I do all that I think.
Heres my process.
Download ROM
Extract downloaded zip to folder eg update
Make changes to files
Compress folder back to zip eg update1.zip
java -jar signapk.jar testkeys.x509.pem testkey.pk8 update1.zip update_signed.zip
rename and copy the signed file to sd
reboot recovery
wipe and apply update
It doesn't moan about the signing (so I assume its ok) but I get an update script not found error and it doesn't install.
I haven't changed the update scripts, only the boot.img and one or two scripts in system.
Does every file I change have to be resigned as well? I muct be missing something here
on OSX 10.5
Click to expand...
Click to collapse
you dont archive (zip) the folder, this is where you are having the issue... say you extracted the rom to ROMFOLDER, what you need to do is go into that folder, select all, then right click or two finger click and choose Compress - you will end up with an archive that contains all sub folders, if you zip the folder then you have a folder within a folder and that is where all goes south..
korndub said:
you dont archive (zip) the folder, this is where you are having the issue... say you extracted the rom to ROMFOLDER, what you need to do is go into that folder, select all, then right click or two finger click and choose Compress - you will end up with an archive that contains all sub folders, if you zip the folder then you have a folder within a folder and that is where all goes south..
Click to expand...
Click to collapse
Oh my god, you're right. And I think I actually read that somewhere before now you've reminded me. Damn. Thanks though! Thanks a lot!
Awesome, knew it was me being stupid.
sure thing guys! glad i could help...
Always something stupid...

Help Resigning APK's and ZIP's

I've been looking for information on how to resign apks and update.zip files.
So far i've found a lot of tools for windows, the problem is that i use linux ubuntu.
I went ahead and tried JF's jar but i get this error
"Failed to load Main-Class manifest attribute from
testsign.jar"
Would like to know if anyone out there could guide me through the process or point me in the right direction as i've only found information regarding resigning under windows.
Thanks in advance,
Check whether you are running the correct version of Java.
What is the whole output of the Java back trace?
Cheesebaron said:
Check whether you are running the correct version of Java.
What is the whole output of the Java back trace?
Click to expand...
Click to collapse
I have Sun-JDK 6, openJDK and other java stuff installed... don't know if i need to remove or add anything...
This is what i've tried so far:
xxx:$ java testsign.jar Launcherr
Exception in thread "main" java.lang.NoClassDefFoundError: testsign/jar
Caused by: java.lang.ClassNotFoundException: testsign.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
Could not find the main class: testsign.jar. Program will exit.
xxx:~/Desktop/testsign(2)(2)$
============================================================
xxx:~/Desktop/testsign(2)(2)$ sudo java -jar testsign.jar Launcherr
Failed to load Main-Class manifest attribute from
testsign.jar
xxx:~/Desktop/testsign(2)(2)$
try this:
java -classpath testsign.jar testsign input.zip output.zip
Deicist said:
try this:
java -classpath testsign.jar testsign input.zip output.zip
Click to expand...
Click to collapse
Worked perfectly with a zip file... heres the output =)
xxx:~/Desktop/testsign(2)(2)$ java -classpath testsign.jar testsign hero.zip
xxx:~/Desktop/testsign(2)(2)$
Now... when i have the apk extracted in a folder and modify it I assume i have to make the folder an APK file again and then try java -classpath testsign.jar testsign bla.apk... i think it might work, what i need to know is how do i make the folder an apk file... is it possible to make it a .zip file and then change the extension to .apk? will that work or I need a tool to make the apk?
EDIT1: Ok... i made a zip file from the folder, changed the extension to APK and resign... i will try to unpack an aplication and install it via ASTRO... let's see how that goes...
EDIT2: ok... edit1 method didn't work... tried installing with ASTRO didnt work, tried pushing it to the phone via adb... didn't work either... HEEEEEELP! hehe..
FIGURED IT OUT: ok... i figured it out... =) making a zip file and renaming the extension to apk and signing DOES work... i was making a mistake, while packing the zip file using archiver and the folder structure was changed... i did it manually and worked perfectly... now i know how to make apks and resign them... thanks to everybody who cooperated for the patience and support... =)
pep1t0 said:
I've been looking for information on how to resign apks and update.zip files.
So far i've found a lot of tools for windows, the problem is that i use linux ubuntu.
I went ahead and tried JF's jar but i get this error
"Failed to load Main-Class manifest attribute from
testsign.jar"
Would like to know if anyone out there could guide me through the process or point me in the right direction as i've only found information regarding resigning under windows.
Thanks in advance,
Click to expand...
Click to collapse
Hey any chance you could point me to the windows programs used to resign apk files, and do you know of any good walk throughs for resigning.
Thanks
pep1t0 said:
Worked perfectly with a zip file... heres the output =)
Click to expand...
Click to collapse
Now when you've learned how, could you make a "How to" for others?
the java testsign tool should work with windows, i think all you have to do is install the java sdk... the text line should be the same java -classpath testsign.jar testsign nameofthefile.apk/nameofthefile.zip
The zip files are... just zip files, can be made with 7zip (in windows) after you make the .zip if you want to make it an apk all you have to do is change the extension... maybe this works in cmd "copy zipedfile.zip newapkfile.apk"... if not... put it in the sdcard and do it via adb shell...
"adb shell /sdcard/nameofthezipfile.zip /sdcard/nameofthenewapk.apk"
I don't really have much time to make a tutorial and try things right now... i will try next week, in the meantime try these things... good luck...

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 a file? (Need Help)

I am looking for a run down on signing a file.
So far, I have taken other people files and just edited images from the apk moved them back and signed using Kitchen (Only way I know how)
So I am at a stand still here...
I want to add
app\Rosie.apk
and
system\com.htc.resources.apk
to a file so that I can change things a little more.
But have not had luck.
Can someone give the rest of us some steps?
Thanks.
are you on windows? if so, then use this batch script. unzip it and get to signing
how would you sign a zip on a mac?
mrchu001 said:
how would you sign a zip on a mac?
Click to expand...
Click to collapse
firstly, install java. then look inside the batch script and you'll see the basic layout for signing files from terminal.
EDIT: what it inside the script is this basic layout for signing, "java -jar signapk.jar testkey.x509.pem testkey.pk8 update.zip update_signed.zip"
replace "update.zip" with your zip file and update_signed.zip with your zip file with "signed" or something so you know it's signed appended before the .zip
darchstar said:
are you on windows? if so, then use this batch script. unzip it and get to signing
Click to expand...
Click to collapse
Yes, I am running windows. Thanks for the file! I will give it a try.
So I see the Sign.bat All I know so far, (Sorry, still new)
My folder will be laid out like this.
<update.zip>
<system>
<app>Rosie.apk</app>
<framework>com.htc.resources.apk</framework>
</system>
<update.zip>
But I dont know where to go from there?
I wonder if we counted, how many threads do you think were started here with this EXACT same question?
chaos67731 said:
Yes, I am running windows. Thanks for the file! I will give it a try.
So I see the Sign.bat All I know so far, (Sorry, still new)
My folder will be laid out like this.
<update.zip>
<system>
<app>Rosie.apk</app>
<framework>com.htc.resources.apk</framework>
</system>
<update.zip>
But I dont know where to go from there?
Click to expand...
Click to collapse
run the batch script from command prompt
darchstar said:
run the batch script from command prompt
Click to expand...
Click to collapse
I dont know how to do that or what it does.
I unziped the folder to my desktop but really dont know where to go from there.
I also dont know command prompt at all for the most part.
Only little things {cd} {*} things like that but even than its just at sight.
I looked http://forum.xda-developers.com/showthread.php?t=618874 and there does not seem to be a wiki or anything on this.
make a new folder where you'll want to zip all your files
copy the autosign.zip to this folder
unzip it.
zip up your files and update-script, name the zip update.zip and put them in this folder
run the batch script from command prompt
Code:
Sign.bat
you will now have a new zip called update_signed.zip, which is you signed update.zip
Does flipzmode's Kitchen do the same thing?
I know there is a sign part to it.
I have used it but not sure if it does the same thing.
When doing this is get an error.
It says it can not find the update script?
mrchu001 said:
how would you sign a zip on a mac?
Click to expand...
Click to collapse
Unzip this. Place the testsign.jar in the root directory of your Mac. Not the home (user) directory, but should be "Macintosh HD" or something of the sort. Then place the Android-Sign.app in /Applications. Even easier to make a shortcut to it in the dock. Whenever you want to sign a file, drag it to the Android-sign app, and it will sign it and put it in the same directory as the original, with "signed" at the end so you'll know which one is which.
For Mac there is an auto-sign program. Just put testsign.jar on the root of your computer hard drive (Macintosh HD) and it works. To sign a ROM, open the rom folder, select all the contents, right-click, and click Conpress. Rename archive.zip to whateveer you want. Drag it onto the Android Sign program and then wait for the program to close (when the dot goes away). There should be another file in the ROM folder called Archive-signed.zip. That is your signed zip.
...That's what I just posted.
ajones7279 said:
...That's what I just posted.
Click to expand...
Click to collapse
We posted it at like the same time I think he figured out how to do the actual signing, but he zipped the folder and not the contents. So... It was rom.zip>rom>contents of rom.
ajones7279 said:
Unzip this. Place the testsign.jar in the root directory of your Mac. Not the home (user) directory, but should be "Macintosh HD" or something of the sort. Then place the Android-Sign.app in /Applications. Even easier to make a shortcut to it in the dock. Whenever you want to sign a file, drag it to the Android-sign app, and it will sign it and put it in the same directory as the original, with "signed" at the end so you'll know which one is which.
Click to expand...
Click to collapse
this is great man!
many thanks!
No problem.
ok so im on windows. it says java not rec.. so im assuming i need to dl java. but would someone be able to leave a little more detailed how to on this. i figured most of it out. but idk if im spose to have the unziped auto-sign folder in my rom zip or outsided of my rom zip..
feefeeboomboom said:
ok so im on windows. it says java not rec.. so im assuming i need to dl java. but would someone be able to leave a little more detailed how to on this. i figured most of it out. but idk if im spose to have the unziped auto-sign folder in my rom zip or outsided of my rom zip..
Click to expand...
Click to collapse
You're using Stericson's autosign.bat correct?
I might be wrong but if you use Kitchen you can auto sign things and it works really good.

Categories

Resources