Skip to main content

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!

Installation

After having all requirements, simply

pip install buildapp --upgrade

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
  • generate / obtain keystore
    • our tool will generate a keystore if you didn't provide any
    • implemented using keytool
  • apk signing
    • our tool will sign the apk using that keystore
    • 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

And that's it! Now you have a new apk, waiting to be installed it on your android devices!

Requirements

The project assumes that installer already has the following tools in his path:

  • 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)
  • apktool installation manual
  • keytool (default at jdk or jre bin folders, only required if -k flag is missing)

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

buildapp-1.1.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

buildapp-1.1.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file buildapp-1.1.3.tar.gz.

File metadata

  • Download URL: buildapp-1.1.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for buildapp-1.1.3.tar.gz
Algorithm Hash digest
SHA256 164d4e6fa5c94256da1a5e0ebc175ec44072aa48ed696458d72c005380730437
MD5 0aabbe6801efaa327a9ee2d19aff2887
BLAKE2b-256 2566bc6fe954c4d5917ceef8a96d7fc6f01cc84258712216e23ea7d295b010b6

See more details on using hashes here.

File details

Details for the file buildapp-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: buildapp-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for buildapp-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 971a7126b8de766c5c92811bf48cf910e32dbaf34a4067fca7f68c5db1f2f43d
MD5 71daf98a50cbd8488098de9e5a0d2dc8
BLAKE2b-256 8a51c3005acc30287c447092b87658d3e14ad9402940393ed0bc4946b4d3cf27

See more details on using hashes here.

Supported by

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