Skip to content

signapk documentation - A cross-platform standalone tool to sign the Android APK file

Notifications You must be signed in to change notification settings

imgdrive/signapk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

signapk

signapk is a free cross-platform standalone tool to sign the Android APK file, it's written in C/C++ and has compatible command line arguments with Google ApkSigner.

signapk is implemented from scratch in C/C++ according to ApkSigner docs and source code, because there are many factors involved in APK signing. If you have problems with the signature, please submit an issue at https://github.com/dvdforge/signapk/issues.

Download

signapk version 2.1 (2024-04-23)

Features

Todo

  • Loading PKCS#12 keystore
  • Support APK Signature Scheme v4
  • Verify APK Signature Scheme v1

Usage

signapk <command> [options]
Command Description
sign Sign the provided APK
verify Check whether the provided APK is expected to verify on Android
OptionsDescription
--ksKeyStore file
--ks-key-aliasKeyStore key alias
--ks-passKeyStore password
--key-passKey password
--inInput file
--outOutput file
--help
-h
Help
--verbose
-v
Verbose output
--v1-signing-enabledWhether to enable signing using APK Signature Scheme v1
--v2-signing-enabledWhether to enable signing using APK Signature Scheme v2
--v3-signing-enabledWhether to enable signing using APK Signature Scheme v3
--min-sdk-versionLowest API Level
--max-sdk-versionHighest API Level

Example

signapk sign --ks release.jks app.apk
signapk verify --verbose app.apk

Changelog

Version 2.1 2024-04-23

  • Fixed: zipalign verification failed
  • Fixed: fix a crash caused by deallocating buffer
  • Added: static link C runtime library [Linux]
  • Added: signapk Linux x86 version [Linux]

Version 2.0 2023-12-15

  • Changed: implement complatible command line arguments with ApkSigner
  • Added: support signature algorithm DSA-1024, DSA-2048 and DSA-3072
  • Added: native binaries for macOS (x86-x64 and ARM64)
  • Added: native binaries for Linux (Unbuntu)

Version 1.0 2023-06-01

  • First public release

About

signapk documentation - A cross-platform standalone tool to sign the Android APK file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published