SignAPK for working in Android without any dependencies. (Only testkey)
Another simple signapk mod!
I have modified SignApk.java from https://android.googlesource.com/platform/build/+/badd2ca451ee7a408f55632025cbe69649b426b5/tools/signapk/ for running in android too.
This is for who want to sign their RECOVERY flashable zip files for successful signature verification.
It will successfully verify if the recovery is testkey supported (most recoveries support this).
I have removed all the code related to signing APK files from SignApk.java. Because of this I renamed it to MinSignApk.
Download MinSignApk.jar from releases.
In PC
java -jar MinSignApk.jar in.zip out.zip
In Android
dalvikvm -cp MinSignApk.jar com.android.signapk.SignApk in.zip out.zip
Note: If you want to use Shell script, then see README.md in shell
folder of this repo