Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,733,661 Members 45,209 Now Online
XDA Developers Android and Mobile Development Forum

Ubuntu / Linux auto sign tool?

Tip us?
 
knightserrant
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Feb 2009
Red face Ubuntu / Linux auto sign tool?

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?
 
Stericson
Old
#2  
Stericson's Avatar
Retired Senior Mod / Senior Recognized Developer - Godfather of Android Theming
Thanks Meter 377
Posts: 1,193
Join Date: Nov 2008
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

Stericson
 
knightserrant
Old
(Last edited by knightserrant; 4th February 2009 at 04:44 AM.)
#3  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Feb 2009
Default 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.

EDIT:
Quote:
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>
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.
 
Stericson
Old
#4  
Stericson's Avatar
Retired Senior Mod / Senior Recognized Developer - Godfather of Android Theming
Thanks Meter 377
Posts: 1,193
Join Date: Nov 2008
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

Stericson
The Following User Says Thank You to Stericson For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes