Skip to main content

GitHub Release PyPI Version 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

CAVEATS

Recent versions of the Android gradle plugin will use zipflinger -- which arranges the contents of the APK differently -- making apksigcopier fail to work. You can tell the plugin not to use zipflinger by setting android.useNewApkCreator=false in gradle.properties.

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+

Metadata

Release files for apksigcopier 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apksigcopier 0.0.2
File Size Uploaded
apksigcopier-0.0.2.tar.gz 18.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apksigcopier 0.0.2
File Interpreter ABI Platform
apksigcopier-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 36.2 kB

Release files / apksigcopier-0.0.2.tar.gz

Download URL apksigcopier-0.0.2.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e4691d03fed8d76a9f56a574feee83dcbb493bab484430dacbffc2680267a0d1
BLAKE2b-256 checksum
How to use checksums
b9cea90f83f40671904b677dbe1a1f7e639597262fb9d776f8cfb99928ccd8b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

Release files / apksigcopier-0.0.2-py3-none-any.whl

Download URL apksigcopier-0.0.2-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81dc7609d2432c15464440cc7dbfd7ed6846744b4fff28fe715d4801ca352d05
BLAKE2b-256 checksum
How to use checksums
1af82f4f27154c818bcd4cf94f77b0bd42899884a263cf12ae1cc24f21dd0035
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

Release history Release notifications | RSS feed

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page