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!
NOTE that you must accept the LICENSE of the tools listed in the requirements section

Installation

Simply run:

pip install buildapp --upgrade If you didn't provide the requirements by yourself, use the following command to fetch the tools: 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

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 fetch using buildapp_fetch_tools after pip install buildapp):

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.2.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

buildapp-1.2.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for buildapp-1.2.0.tar.gz
Algorithm Hash digest
SHA256 48153eee1e2695ff160559e55fa9fe649500f01b29140339e56035f257f31621
MD5 d694d9603562b4770c4dc2dd2574c847
BLAKE2b-256 b0c870cf9b70dd3c13d63b4051d304d7eb72147efd29dc5647430d3c77c5fbc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: buildapp-1.2.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.10.7

File hashes

Hashes for buildapp-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd7535b097dbb2c8309fbbded947d23ee7a66ff88a33089b4613753f5802806e
MD5 bb6e322f08af2de0b1b53edf01d95947
BLAKE2b-256 9e28b0b79829bf5e15052f4172cb5c6ef2f37a804095261e9ae33961d1d722f3

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