Skip to main content

copy/extract/patch apk signatures

Project description

GitHub Release Python Versions CI GPLv3+

apksigcopier - copy/extract/patch apk signatures

Extract:

$ mkdir meta
$ apksigcopier extract signed.apk meta
$ ls -1 meta
DUMMY.RSA
DUMMY.RSA.json
DUMMY.SF
DUMMY.SF.json
MANIFEST.MF
MANIFEST.MF.json
sigblock
sigoffset

Patch:

$ apksigcopier patch meta unsigned.apk out.apk

Copy (Extract & Patch):

$ apksigcopier copy signed.apk unsigned.apk out.apk

Help

$ apksigcopier --help

Tab Completion

For Bash, add this to ~/.bashrc:

eval "$(_SHTST_COMPLETE=source_bash apksigcopier)"

For Zsh, add this to ~/.zshrc:

eval "$(_SHTST_COMPLETE=source_zsh apksigcopier)"

For Fish, add this to ~/.config/fish/completions/apksigcopier.fish:

eval (env _SHTST_COMPLETE=source_fish apksigcopier)

Requirements

  • Python >= 3.7 + click + apksigner + zip.

Debian/Ubuntu

$ apt install python3-click apksigner zip

Installing

Using pip

$ pip install apksigcopier

NB: depending on your system you may need to use e.g. pip3 --user instead of just pip.

From git

NB: this installs the latest development version, not the latest release.

$ git clone https://github.com/obfusk/apksigcopier.git
$ cd apksigcopier
$ pip install -e .

NB: you may need to add e.g. ~/.local/bin to your $PATH in order to run apksigcopier.

To update to the latest development version:

$ cd apksigcopier
$ git pull --rebase

License

GPLv3+

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apksigcopier-0.0.1.tar.gz (18.0 kB view hashes)

Uploaded Source

Built Distribution

apksigcopier-0.0.1-py3-none-any.whl (17.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page