Skip to content
Tools and scripts to manipulate Android APKs
Branch: master
Clone or download
ViRb3 Add result message to all scripts and fix minor issues
Fix incorrect cleanup in enjarify script
Latest commit 267d93a Apr 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
project
samples
.config.sh Create LP directory config variable Feb 21, 2019
.gitignore Add empty project folder Jan 28, 2019
README.md Improve README Feb 21, 2019
aapt-dump.sh
adb-install.sh Add result message to all scripts and fix minor issues Apr 3, 2019
adb-lp-pull.sh Add result message to all scripts and fix minor issues Apr 3, 2019
adb-lp-push.sh Add result message to all scripts and fix minor issues Apr 3, 2019
adb-pull.sh Add result message to all scripts and fix minor issues Apr 3, 2019
apktool-build.sh Add result message to all scripts and fix minor issues Apr 3, 2019
apktool-decode.sh Add result message to all scripts and fix minor issues Apr 3, 2019
baksmali.sh Add result message to all scripts and fix minor issues Apr 3, 2019
clean.sh
enjarify.sh Add result message to all scripts and fix minor issues Apr 3, 2019
sign.sh
smali.sh Add result message to all scripts and fix minor issues Apr 3, 2019

README.md

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

You can’t perform that action at this time.