Apk builder script
Project description
buildapp
Corss-Platform script used to recompile APK that was decompiled by apktool
That way, you can decompile an application, patch it's smali-source / resources / manifest / libs / ...
And rebuild it into a new apk you may install in your devices
NOTE that you should use this tool for debugging / educational purposes only!
NOTE that you must accept the LICENSE of the tools listed in the requirements section
Installation
Simply run:
pip install buildapp --upgrade && buildapp_fetch_tools
Make sure to have python scripts folder in your path,
And use the correct version of pip for python3
Decompilation process
Use apktool
to decompile your application.
Apktool decompilation syntax:
apktool d <apk_path> -o <output_folder>
Patching process
Just change anything you want, native-elfs in /lib
folder, smali-code from smali folders, manifest file AndroidManifest.xml
, resources, assets and whatever's out there
Recompilation process
Simply use our tool, the syntax is:
buildapp -d <sources_folder> -o <outout_apk>
For additional flags, ran buildapp -h
- apktool build
- Use apktool to rebuild the apk from the sources folder
-
apktool b <sources_folder> -o <output_apk>
- zip-alignment
- apk is implemented as a zip file which should have the correct alignment in order to be installed
- implemented using
zipalign
- obtain keystore
- our tool will use a default keystore if you won't provide one
- you may use
keytool
to generate your own keystores
- apk signing
- our tool will sign the apk using the keystore mentioned above
- implemented using
apksigner
- apk installation
- if asked to, buildapp will install the signed apk on connected adb device (if there's only one)
NOTE that if you won't provide the same keystore as the original app already installed on your device, you may not be able to install the apk you built by this script unless you'll uninstall the original app first. - implemented using
adb
- if asked to, buildapp will install the signed apk on connected adb device (if there's only one)
And that's it! Now you have a new apk, waiting to be installed it on your android devices!
Requirements
The project uses these tools (can be fetched using buildapp_fetch_tools
after pip install buildapp
):
- android SDK tools (download build_tools, download platform_tools)
- adb (default at SDK\platform_tools, only required if
-i
flag is used) - zipalign (default at SDK\build_tools)
- apksigner (default at SDK\build_tools)
- adb (default at SDK\platform_tools, only required if
- apktool installation manual
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
File details
Details for the file buildapp-1.4.0.tar.gz
.
File metadata
- Download URL: buildapp-1.4.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b164c1be4b454e75d6b5d69a39855c28b1765623160862ef72588cb5d987898 |
|
MD5 | 3d29248d2919f32f684b3ccbded66425 |
|
BLAKE2b-256 | 3359f9897623f1c1554f6710337e47d7c36c0306ff384718216fa52848673a1e |
File details
Details for the file buildapp-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: buildapp-1.4.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9332b11c9595b0ec9b3e5b651d1f05dfa357cc8ebac2a66480c2e84b616d659 |
|
MD5 | a03282020465b4782441a0d4350fc1e9 |
|
BLAKE2b-256 | 90a491de77f0534cdd8d06fc6b9fcdc355109f7e5af419485fea7edb576471aa |