MCPcopy Index your code
hub / github.com/appium-boneyard/sign

github.com/appium-boneyard/sign @1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0 ↗ · + Follow
36 symbols 84 edges 3 files 20 documented · 56% updated 6y ago1.0 · 2020-03-18★ 4289 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Apk Sign

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

Development

Building:

./build.sh

Testing:

./test.sh

Usage

  • 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

Release

New releases are published to GitHub automatically by CI agent. It is only necessary to push a new version tag to master:

git tag -a 1.0 -m 1.0
git push --tags origin master
git push --tags remote master

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.

Core symbols most depended-on inside this repo

write
called by 19
src/s/Sign.java
write
called by 18
src/orig/SignApk.java
toByteArray
called by 6
src/s/IOUtils.java
sign
called by 3
src/s/Sign.java
size
called by 2
src/s/Sign.java
writeSignatureBlock
called by 2
src/s/Sign.java
size
called by 2
src/orig/SignApk.java
writeSignatureBlock
called by 2
src/orig/SignApk.java

Shape

Method 31
Class 5

Languages

Java100%

Modules by API surface

src/s/Sign.java16 symbols
src/orig/SignApk.java16 symbols
src/s/IOUtils.java4 symbols

For agents

$ claude mcp add sign \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact