Skip to content

Android|Windows

Prerequisites

System Requirements

  • Operating System: Windows 10 or 11, 64-bit version.
  • Hardware Requirements:
    • At least 8GB of RAM (16GB recommended).
    • 100GB free disk space.
    • Intel VT-x or AMD-V virtualization support enabled in BIOS.
  • Permissions: Administrator access for installing software and modifying settings.

Installing Java Development Kit (JDK)

Step 1: Download JDK

Step 2: Install JDK

  • Run the installer and follow on-screen instructions.

Step 3: Configure Environment Variables

  1. Open Environment Variables:

    • Press Win + S to open the Windows search bar, type Environment Variables, and select Edit the system environment variables.
    • In the System Properties window, click the Environment Variables button at the bottom.
  2. Add a New System Variable:

    • In the Environment Variables window, under System variables, click New.
    • Fill in the fields:
      • Variable Name: JAVA_HOME
      • Variable Value: C:\Program Files\Java\jdk-<version> (Replace <version> with the actual version number of your JDK installation, e.g., jdk-11.0.12).
    • Click OK to save.
  3. Update the Path Variable:

    • In the same Environment Variables window, scroll down under System variables and locate the Path variable.
    • Select it and click Edit.
    • In the Edit Environment Variable window:
      • Click New and add: %JAVA_HOME%\bin
      • Ensure this entry is at the top or near the top of the list for priority execution.
    • Click OK to save and close all windows.
  4. Verify Configuration:

    • Open Command Prompt and type the following command:
    echo %JAVA_HOME%
    

    This should output the path to your JDK installation (e.g., C:\Program Files\Java\jdk-11.0.12). - Next, verify the Path configuration by running:

    java -version
    

    If everything is set correctly, this will display the installed Java version and its details.

Step 4: Verify Installation

Run the following command in Command Prompt:

java -version

Setting Up Android Studio

Step 1: Download and Install

  • Visit Android Studio.
  • Install with all default options, including the Android SDK and Emulator.

Step 2: Configure SDK

  1. Go to File > Settings > System Settings > Android SDK.
  2. Install:
    • Android SDK Build-Tools
    • Android Emulator
    • Command-Line Tools

Step 3: Test Emulator

  • Create a new virtual device in Tools > Device Manager.

Setting Up ADB (Android Debug Bridge)

Step 1: Locate ADB

  • Navigate to C:\Users\<YourUser>\AppData\Local\Android\Sdk\platform-tools

Step 2: Add ADB to PATH

  • Update the system Path variable to include the above directory.

Step 3: Verify ADB

Run the following commands:

``` bash adb version adb devices


Installing Additional Testing Tools

Genymotion Emulator

  • Genymotion: Faster alternative to the Android Studio emulator.

Burp Suite

Frida

  • Install via Python:

    bash pip install frida-tools

  • Download the Frida server and push it to the device.


Automating Tests with Appium

Install Appium

  1. Install Node.js:

    bash npm install -g appium

  2. Verify installation:

    bash appium -v

Write Scripts

  • Use Python, Java, or JavaScript with the Appium client library.

Debugging and Troubleshooting

Common Issues

  • ADB Issues: Reset with adb kill-server and adb start-server.
  • Proxy Configuration: Ensure proxy and certificates are set up correctly.
  • Emulator Performance: Enable hardware acceleration in BIOS.

Additional Tools