Signing the update.zip in Mac OS X? - myTouch 3G, Magic Android Development

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...

Related

Problem signing Update.zip files

Hi all,
I've recently got my Vodafone Magic and am enjoying the awesome work of all those here that have helped to root the phone and create the brilliant custom ROMs. So big thanks to all those involved.
On to my problem. I actually tweaking the updates I apply to the phone slightly, such as adding ring tones or changing to the android keyboard. I've got scripts that do this, but I'd really like to alter the update.zip and apply it in a single go. I understand what needs to be done, but the signing of the altered update.zip file doesn't work.
I am using signapk as per instructions, which succesfully completes, but it removes the META-INF\com directory (and yes it is in the original zip). I saw someone had a similar problem a while ago, but the thread didn't have a solution.
I'm using Windows XP 32bit. I've downloaded and installed the JDK 6 Update 14, and installed it to \Java to ensure no spaces are in the directory path.
Can anyone help?
Thanks
RogueJay said:
Hi all,
I've recently got my Vodafone Magic and am enjoying the awesome work of all those here that have helped to root the phone and create the brilliant custom ROMs. So big thanks to all those involved.
On to my problem. I actually tweaking the updates I apply to the phone slightly, such as adding ring tones or changing to the android keyboard. I've got scripts that do this, but I'd really like to alter the update.zip and apply it in a single go. I understand what needs to be done, but the signing of the altered update.zip file doesn't work.
I am using signapk as per instructions, which succesfully completes, but it removes the META-INF\com directory (and yes it is in the original zip). I saw someone had a similar problem a while ago, but the thread didn't have a solution.
I'm using Windows XP 32bit. I've downloaded and installed the JDK 6 Update 14, and installed it to \Java to ensure no spaces are in the directory path.
Can anyone help?
Thanks
Click to expand...
Click to collapse
the signapk never removes files. (imho)
you have to put all the files in one zip file
META-INF
-com
--google
---android
----update-script
-cert.rsa
-cert.sf
-manifest.sf
system
boot.img
Click to expand...
Click to collapse
the cert.rsa, cert.sf, manifest.sf, will be updated (imho) by the signapk
kingchris said:
the signapk never removes files. (imho)
Click to expand...
Click to collapse
Well it is on my machine.
kingchris said:
you have to put all the files in one zip file
the cert.rsa, cert.sf, manifest.sf, will be updated (imho) by the signapk
Click to expand...
Click to collapse
All the files are in the original zip file and signapk does update the cert.rsa, cert.sf & manifest.sf. It just seems to remove the com directory and hence the update script.
I started with the ION update, extracted it, changed a couple of things under system, rezipped it and tried to sign it with the outcome I mentioned.
I've tried creating the zip with XPs built in zip handler and WinZip.
RogueJay said:
Well it is on my machine.
All the files are in the original zip file and signapk does update the cert.rsa, cert.sf & manifest.sf. It just seems to remove the com directory and hence the update script.
I started with the ION update, extracted it, changed a couple of things under system, rezipped it and tried to sign it with the outcome I mentioned.
I've tried creating the zip with XPs built in zip handler and WinZip.
Click to expand...
Click to collapse
you can do a test like this.
download the signed rom and try to sign it again. then take a look into the zip file in the meta directory
Yay - got it working.
It would seem that the problem was the zip files as created by WinZip. When I created the zip file using 7-zip, all went well. At least all the files are there - haven't tried putting it on the phone yet.

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.

Signing ZIPs

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?

[TOOL] Something to make BlobTools Easier to use

This tool is an interactive console application. It makes it easier to use blob tools. All you have to do is run it, choose to unpack or repack. If you choose repack it will ask you to enter the name for each of the required files. After that it will due the rest.
Notice: You either have to enter the full, have the blob file in the same directory/folder or have change changed directories to the location of the blob. For example: cd /path/to/blob's Dir/
Update: I have fixed the case sensitivity issue.
Note: The attachments below will always be the latest.
ostar2 said:
I created an application to make BlobTools easier to use. It is an interactive console application. I made this because I wanted to be of some help to the community. Well anyways, here it is...
Click to expand...
Click to collapse
Files are corrupt. Try again please.
Regards,
Brad
bradslinux said:
Files are corrupt. Try again please.
Regards,
Brad
Click to expand...
Click to collapse
Those were compressed with the LZMA algorithm. Here try these ones there compressed with the normal zip compression for windows.
Edit: To prevent confusion I have removed these attachments please download from The Original Post. Thanks.
ostar2 said:
Those were compressed with the LZMA algorithm. Here try these ones there compressed with the normal zip compression for windows.
Click to expand...
Click to collapse
That did it, thanks.
Nice work.
Regards,
Brad
welcome..
Excellent! Thank you - these will aid me greatly!
I like to be of help to the community so I am happy that this helps others.
Sourcecode and Update
As I am unable to compile for Linux or mac at the moment here is the sourcecode for this tool.
This uses a Code::Blocks IDE for its project/workspace. It can be compiled with just a c++ compiler. The icon is only available on windows as I do not know to implement it on macosx and Linux does not support icons in executables. also, I have updated this application as well the updated binarie zip files and source zip are attached. Enjoy!
Edit: To prevent confusion I have removed these attachments please download from The Original Post. Thanks.
ostar2 said:
As I am unable to compile for Linux or mac at the moment here is the sourcecode for this tool.
This uses a Code::Blocks IDE for its project/workspace. It can be compiled with just a c++ compiler. The icon is only available on windows as I do not know to implement it on macosx and Linux does not support icons in executables. also, I have updated this application as well the updated binarie zip files and source zip are attached. Enjoy!
Click to expand...
Click to collapse
I tried to unpack a blob and it kept failing with an Invalid Option! error. I hit u then typed blob which was in the same directory. I then manually dragged the blob onto the blobunpack.exe and it unpacked it fine.
Any ideas why?
sbdags said:
I tried to unpack a blob and it kept failing with an Invalid Option! error. I hit u then typed blob which was in the same directory. I then manually dragged the blob onto the blobunpack.exe and it unpacked it fine.
Any ideas why?
Click to expand...
Click to collapse
I was unsure of what extenstion the blob file had when I created this. What extenstion do they have? is it .blob? If so I think i can fix it.
Update: Fixed Not unpacking
Hello again I fixed the tool it should work fine now.
Edit: To prevent confusion I have removed these attachments please download from The Original Post. Thanks.
ostar2 said:
I was unsure of what extenstion the blob file had when I created this. What extenstion do they have? is it .blob? If so I think i can fix it.
Click to expand...
Click to collapse
The blobs usually have no extension at all, and the extracted parts have a dot and the partition name as their last part, but I would not call these "extensions" (even if Windows disagrees with me).
_that said:
The blobs usually have no extension at all, and the extracted parts have a dot and the partition name as their last part, but I would not call these "extensions" (even if Windows disagrees with me).
Click to expand...
Click to collapse
Thanks, that makes more sense. Also, I am thinking about having BlobTools print the command usage in more detail or at least a "--help" command displaying detailed usage of BlobTools. Like, how to unpack and repack.
[WIP] New tool
I am going to make gui version of this using wxwidgets and also maby consolidate the two tools into one and then combine it with GUI. That would make it much better.
still getting the "invalid option" message :/
arminneman said:
still getting the "invalid option" message :/
Click to expand...
Click to collapse
Please re-download from the original post. It should work fine. If not let me know.
Ok, its updated let me know if any problems occur.
ostar2 said:
Ok, its updated let me know if any problems occur.
Click to expand...
Click to collapse
I try it on win 7 64bit, run as administrator BlobToolUI select u and blob the name of file and give this error:
Unable to open "b"
Can You help me?
Thanks
Riccardo.
cipolippo said:
I try it on win 7 64bit, run as administrator BlobToolUI select u and blob the name of file and give this error:
Unable to open "b"
Can You help me?
Thanks
Riccardo.
Click to expand...
Click to collapse
Is the blob you want to unpack in the same directory? If that does not work try adding a "." the end of the file name.
ostar2 said:
Is the blob you want to unpack in the same directory? If that does not work try adding a "." the end of the file name.
Click to expand...
Click to collapse
Yes is in the same directory, adding a "." the end of the file does not work..
work if I rename file "blob" in also "b" ?
Thanks.

Categories

Resources