Android Devices Interception

Learn how to set up Requestly to intercept, monitor, and debug HTTP requests on your Android devices for Android app development, debugging, and testing.


When working with Android apps, debugging HTTP Requests can be a challenge. Requestly provides an easy-to-use solution for everyone who needs to monitor, modify, or debug HTTP requests and responses during development or QA testing. This section outlines step-by-step instructions, guiding you on how to set up Requestly for your Android device.

By the end of this guide, you will have a fully functional interception setup tailored for your Android development needs.

Step-by-Step Guide

Rooted Setup

If you have a rooted device the setup is straight forward -

1

Enable USB Debugging

Open Settings > Developer Options on your device and turn on USB Debugging.

2

Connect the Emulator

Use a USB cable to connect your device to your computer and launch the Requestly Desktop App.

3

Connect Device

On requestly dashboard click Connect Apps > Mobile Apps and Browser, and Requestly will automatically list out detected devices. Simply click Connect to proceed. 🎉

4

Verify Connection

Once connected, a success message will appear. You can now visit amiusing.requestly.io to verify your connection.

Non Rooted Setup

If your device is not rooted, you can manually setup requestly by following these steps:

Configure proxy

1

Select Network

Tap on the Internet and click on the gear icon on the connected network name to open its settings.

2

Modify Network Settings

  • At the top right of the screen click the edit icon

  • Enable "Advanced Options" if needed.

  • Set the Proxy to "Manual."

3

Enter Proxy Details

Input the following:

  • Proxy Hostname: Use the IP shown in the Requestly Desktop App (e.g., 192.168.1.10).

  • Proxy Port: Use the port displayed in the Requestly Desktop App (e.g., 8080).

4

Save Changes

Apply the settings and continue with the certificate installation

Install CA Certificate

To intercept HTTPS traffic, you also need to install Requestly's root CA certificate on your device:

1

Download Certificate

  • Open Chrome in an incognito tab

  • Go to http://requestly.io/ssl (⚠️ Use HTTP here, not HTTPS)

  • This will download RQProxyCA.pem.cert

2

Install CA Certificate

  • Go to Settings > Search "CA Certificate" > Install Anyway.

  • Select the downloaded certificate and install it.

3

Verify Installation:

After installation, confirm your setup by going to amiusing.requestly.io

SSL Pinning [if-required]

From Android API level 23 (Android 6.0+), many apps enforce SSL pinning for security. To intercept HTTPS traffic, setting up SSL pinning is required.

Make sure to remove these in production builds

Add these configs to your app codebase for it to work

  1. Add res/xml/network_security_config.xml
<network-security-config>
  <debug-overrides>
    <trust-anchors>
      <certificates src="user" />
      <certificates src="system" />
    </trust-anchors>
  </debug-overrides>

  <base-config cleartextTrafficPermitted="true">
    <trust-anchors>
      <certificates src="system" />
      <certificates src="user" />
    </trust-anchors>
  </base-config>
</network-security-config>
  1. Add to AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest ... >
    <application android:networkSecurityConfig="@xml/network_security_config" ... >
    ...
    </application>
</manifest>
Updated on