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
- Visit Oracle JDK or OpenJDK.
Step 2: Install JDK
- Run the installer and follow on-screen instructions.
Step 3: Configure Environment Variables
-
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.
- Press
-
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
).
- Variable Name:
- Click OK to save.
-
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 New and add:
- Click OK to save and close all windows.
- In the same Environment Variables window, scroll down under System variables and locate the
-
Verify Configuration:
- Open Command Prompt and type the following command:
This should output the path to your JDK installation (e.g.,
C:\Program Files\Java\jdk-11.0.12
). - Next, verify thePath
configuration by running: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:
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
- Go to
File > Settings > System Settings > Android SDK
. - 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
- PortSwigger: For intercepting app traffic.
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
-
Install Node.js:
bash npm install -g appium
-
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
andadb start-server
. - Proxy Configuration: Ensure proxy and certificates are set up correctly.
- Emulator Performance: Enable hardware acceleration in BIOS.