Apktool — Инструмент для реверс-инжиниринга APK-файлов Android

Что это

Инструмент для реверс-инжиниринга сторонних закрытых двоичных приложений Android. Он может декодировать ресурсы практически до исходной формы и восстанавливать их после внесения некоторых изменений; это позволяет шаг за шагом отлаживать код smali. Кроме того, это упрощает работу с приложением благодаря файловой структуре, напоминающей проект, и автоматизации некоторых повторяющихся задач, таких как создание apk.

Оригинал описания (EN)

A tool for reverse engineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications; it makes possible to debug smali code step by step. Also it makes working with an app easier because of project-like file structure and automation of some repetitive tasks like building apk.

Пример использования

root@kali:~# apktool -h
Apktool v2.7.0-dirty - a tool for reengineering Android apk files
with smali v2.5.2.git2771eae-debian and baksmali v2.5.2.git2771eae-debian
Copyright 2010 Ryszard Wi?niewski <[email protected]>
Copyright 2010 Connor Tumbleson <[email protected]>

usage: apktool -advance,--advanced prints advance information. -version,--version prints the version then exits usage: apktool if|install-framework [options] <framework.apk> -p,--frame-path <dir> Stores framework files into <dir>. -t,--tag <tag> Tag frameworks using <tag>. usage: apktool d[ecode] [options] <file_apk> -f,--force Force delete destination directory. -o,--output <dir> The name of folder that gets written. Default is apk.out -p,--frame-path <dir> Uses framework files located in <dir>. -r,--no-res Do not decode resources. -s,--no-src Do not decode sources. -t,--frame-tag <tag> Uses framework files tagged by <tag>. usage: apktool b[uild] [options] <app_path> -f,--force-all Skip changes detection and build all files. -o,--output <dir> The name of apk that gets written. Default is dist/name.apk -p,--frame-path <dir> Uses framework files located in <dir>.

For additional info, see: https://ibotpeaches.github.io/Apktool/ For smali/baksmali info, see: https://github.com/JesusFreke/smali

Пакеты и установка

apktool

Инструмент для реверс-инжиниринга APK-файлов Android
Установка: sudo apt install apktool

Официальная документация

https://www.kali.org/tools/apktool/

Комментарии