Setup Android Pentesting Environment on Debian Linux
This guide covers setting up a mobile testing environment, including installation of Genymotion, Frida, Drozer, APK Signer, Medusa, and Jadx. Each tool is critical for analyzing and testing Android applications in a controlled, virtual environment.
Install Java
sudo apt update
sudo apt install default-jre
sudo apt install default-jdkInstall Genymotion
Genymotion is a powerful Android emulator ideal for penetration testing.
Download Genymotion: Genymotion Official Website
Install: Follow the installation wizard for your operating system.
Create Android Virtual Devices (AVDs): Open Genymotion and add a virtual device by selecting a specific Android version and device model.
Install Burp
Frida And Burp on Genymotion
Python is essential for Frida, and most Debian-based systems come with it pre-installed. To verify and install Python if necessary, follow these steps:
Verify Python Installation:
If not installed, use:
Install Frida using pip:
Download the Frida Server for your emulator’s Android version: Frida Releases
Push Frida Serve and burp on Genymotion:
Setup burp proxy
Proxy Listener

Proxy settings for WiFi

Install Certificate



Setting Up Drozer
Drozer is a useful Android security framework for penetration testing.
To use drozer globally, add an alias in your shell configuration file (~/.zshrc or ~/.bashrc):
Then, reload your shell configuration with source ~/.zshrc or source ~/.bashrc.
Setting up Jadx
Install APKTool
Download the Linux wrapper script. (Right click, Save Link As
apktool)Download the latest version of Apktool.
Rename the downloaded jar to
apktool.jar.Move both
apktool.jarandapktoolto/usr/local/bin. (root needed)Make sure both files are executable. (
chmod +x)Try running
apktoolvia CLI.
Install Dex2Jar
APK Signer
APK Signer is required to sign APKs. It comes with the Android SDK’s build tools, so you need to install android-sdk to access it.
Install the Android SDK and APK Signer:
Sign an APK:
Replace
my-release-key.jkswith your keystore file andunsigned.apkwith the file you want to sign.
Magisk
Last updated
Was this helpful?