Giter VIP home page Giter VIP logo

buildapp's Introduction

buildapp

Cross-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

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):

buildapp's People

Contributors

mon231 avatar x-gorn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.