Reversing

In this part we will extract the legitimate apk from emulator or the device and get the source code.

First Steps

# install tools
apt install adb apktool openjdk-11-jdk-headless zipalign apksigner

# list android attached devices
adb devices

# find app name
adb shell pm list packages -f | grep $app_name

# list installed packages
adb shell pm list packages -f

# get path of the app we want to reverse
adb shell pm path $package_name

# get the app on our local machine on current folder
adb pull $PATH_app .

Get the source code

Tools :

  • jadx / jadx-gui

  • dex2jar

  • apktool

  • apkx

Decompile/Compile Source Code

Last updated

Was this helpful?