Remove All Ads from XDA
Honor View 10

Ubuntu / Linux auto sign tool?

6 posts
Thanks Meter: 0
By knightserrant, Junior Member on 4th February 2009, 05:20 AM
Post Reply Email Thread
I have been toying with the idea of making a theme. Sounds like fun and the How To's here are really thorough (by the way, I appreciate that, those things must have been quite the labors of love).
As you can tell from the thread title, my OS of choice is obviously Ubuntu. The autosign tool sounds pretty convenient, but I notice it is for Windows. I've searched a bit, but honestly I am getting tired of thumbing through thread after thread looking for the answer and was hoping for a friendly nudge in the right direction.

Anyway, long way around to these questions:

1, when I re-sign an apk, do I use test-keys, do I create my own key, or do is that something JDK will create for me to use?

2, I don't want to create a theme that makes people need to wipe before switching, the template is up to date on the How To thread? Are there templates for JF ADP1.1, and maybe even RC8 as well? Or was there a thread I could read about taking the necessary parts of JF's update and building a template of mine own from that?

3, To actually resign an apk, you have to edit some hex code right? If there truly is NO tool for Linux, I could use some directions on where to find how to manually sign a file. Then hopefully I can find / convert / create a tool in Linux to handle the dirty work for me.

I guess this is what I get for coming in so late into the game.

Also, I am curious if anyone else creates themes in anything other than Windows... any *nix creators out there?
4th February 2009, 05:31 AM |#2  
Stericson's Avatar
Retired Senior Mod / Retired Senior RecDev - Godfather of Android Theming
Thanks Meter: 413
ok, first off to resign an apk or a zip you dont have to do any hex editing at all, in fact, to make a theme you dont have to do any hex editng.

2nd, use my default themes as in the stickies as a template to build your theme, it will not wipe.

3rd to resign in linux, which I haven't done, you will probably need the original signing tool which can be found in jf's recovery.img .zip[ he provided a while ago. I believe it is stickied on android development.

This is the command to resign them

java -jar testsign.jar >inputfile> <outputfile>

Hope this helps

4th February 2009, 05:39 AM |#3  
OP Junior Member
Thanks Meter: 0
Thanks for the super quick reply
Ok, I'll give a search for "testsign.jar", that should get me in the right direction. Once I have that I guess it is time for some experimenting. It shouldn't be hard to develop a shell script that takes every file of xxx type, from a directory and then pass them as values to the testsign.jar app one by one. I had a shell script do something like this to rename all of my photos.

I resign the apk and zip files then.

Thanks Stericson, now I am off to find that testsign.jar, make sure I have the up-to-date default themes, and play around a bit.


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

java -jar signapk.jar testkey.x509.pem testkey.pk8 <> <>

This is what I need isn't it? I thought that sounded familiar, I had this downloaded from the whole "let's explore how to root my phone" process.
4th February 2009, 05:48 AM |#4  
Stericson's Avatar
Retired Senior Mod / Retired Senior RecDev - Godfather of Android Theming
Thanks Meter: 413
oh yea, ooops, that is right...sorry I have a custom version of the tool I use. Sowwy.

But that is right.

that cmd line will sign both apks and zips

The Following User Says Thank You to Stericson For This Useful Post: [ View ] Gift Stericson Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes