copy/extract/patch apk signatures
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for apksigcopier-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81dc7609d2432c15464440cc7dbfd7ed6846744b4fff28fe715d4801ca352d05 |
|
MD5 | 4b1ef873d45911273769741bfaae01a6 |
|
BLAKE2b-256 | 1af82f4f27154c818bcd4cf94f77b0bd42899884a263cf12ae1cc24f21dd0035 |