Skip to content

Tools and scripts to manipulate Android APKs

Notifications You must be signed in to change notification settings

FutureBody/apk-utilities

 
 

Repository files navigation

APK Utilities

A cross-platform collection of scripts and utilities for working with APK files

Features

  • adb-pull - pull an apk from a connected device to input apk
  • adb-lp-pull - pull all LP modified files to the project directory
  • clean - clean the project directory
  • apktool-decode - decode the input apk to sources
  • baksmali - decompile the input dex to smali
  • aapt-dump - dump Android-specific data (resources, manifest) from the input apk
  • enjarify - convert the input apk to a jar
  • apktool-build - build the patched apk from previously decoded sources
  • smali - compile the smali to a patched dex
  • sign - sign the patched apk to a signed+patched apk
  • adb-install - install the patched+signed apk
  • adb-lp-push - push $1 to the LP data directory

Usage

This package contains a bunch of useful shell scripts at its root. For a clean workflow, they all operate under the project directory. Inside there, you can place:

  • app.apk - the input apk
  • classes.dex - the input dex

Example workflow

  • adb-pull > apktool-decode > make changes > apktool-build > sign > adb-install

Installation

  • Linux - none!
  • macOS - ?
  • Windows - you must enable WSL and install a bash-compatible distro (e.g. Ubuntu)

If you want to use the aapt-* and adb-* scripts, then you also need to install the Android SDK. In Ubuntu, there is an official package android-sdk. Make sure the following directories are added to your PATH:

  • android-sdk/platform-tools/
  • android-sdk/build-tools/xx.x.x/ (preferrably the most up-to-date one)

3rd party

About

Tools and scripts to manipulate Android APKs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • Other 0.2%