Sign.jar automatically signs an apk with the Android test certificate.
Switch branches/tags
Nothing to show
Clone or download
RuthlessRuler and KazuCocoa Updated According to sign.bat Usage (#10)
The Usage commands have been updated according to sign.bat.
Latest commit 2dc4018 Sep 19, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Update jars Mar 9, 2013
license Add notice for io utils Mar 9, 2013
sign_jar/META-INF Sign apk. Aug 5, 2012
signapk_jar/META-INF Sign apk. Aug 5, 2012
src Allow list of apks Mar 9, 2013
.gitignore Add override option Mar 9, 2013
build.sh Sign apk. Aug 5, 2012
pom.xml Sign apk. Aug 5, 2012
readme.md Updated According to sign.bat Usage (#10) Sep 19, 2018
sign.bat Add files via upload Sep 18, 2018
testkey.pk8 Sign apk. Aug 5, 2012
testkey.x509.pem Sign apk. Aug 5, 2012

readme.md

Apk Sign

Automatically sign an apk with the Android test certificate. The public and private keys are embedded within the jar.

  • sign my.apk

my.s.apk is created next to my.apk

  • sign my.apk --override

my.apk is replaced with a signed version

Verify signature.

jarsigner -verify my.s.apk

Changes

Added sign.bat which removes the funcion of using 'java -jar sign.jar my.apk to only 'sign my.apk'

Removed "Created-By", "1.0 (Android SignApk)" from upstream SignApk.

Download

Build

./build.sh or mvn package

License

Released under the Apache 2.0 License (the same as Android's SignApk.java).

Based on the following AOSP 4.1.1 files & sources

https://github.com/android/platform_build/blob/master/tools/signapk/SignApk.java
http://androidxref.com/4.1.1/xref/build/tools/signapk/
http://androidxref.com/4.1.1/xref/build/tools/signapk/test/run
http://androidxref.com/4.1.1/xref/cts/tests/assets/otacerts.zip
http://androidxref.com/4.1.1/xref/external/quake/tools/packagesharedlib#11
http://androidxref.com/4.1.1/raw/build/target/product/security/testkey.pk8
http://androidxref.com/4.1.1/xref/build/target/product/security/

The following commands are equivalent.

sign my.apk

java -classpath sign.jar orig.SignApk testkey.x509.pem testkey.pk8 my.apk my.s.apk

java -jar SignApk.jar testkey.x509.pem testkey.pk8 my.apk my.s.apk

Similar Projects

ApkSign by Panxiaobo. dex2jar's ApkSign has many dependencies and does not fit into one source file. While the name ApkSign is similar to apks, no source from dex2jar is used in this project.

Tiny Sign by Panxiaobo. Simple jar signing that can run on Android.