Android Devices

Prerequisites

  1. Download the Requestly Desktop app, if you haven’t already.
  1. Start Requestly and ensure that your android device and your computer are on the same network.

Setup

1. Setup Android Proxy (On Device)

  1. Open Wi-Fi settings on your Android Device by navigating to Setting > Wi-Fi > Select Current Wi-Fi > Modify .
  1. Set Proxy settings to Manual.
  1. Enter the host IP and the proxy port. You can find these in the header of the App

  2. To ensure that the proxy has been set, visit http://amiusing.requestly.io on your Android Device. If the rendered page shows success as follows, means the proxy is now correctly configured in Wi-Fi settings.

2. Download certificate (On Device)

  1. Open Incognito window in your browser
  1. Go to http://requestly.io/ssl

⚠️ Use http here, not https 

This will download RQProxyCA.pem.cert

3. Trust Certificate (On Device)

  1. Open Trusted Certificate Settings by navigating to Settings -> Security -> Encryption & Credentials -> Install a Certificate -> CA Certificate.
  1. To install this certificate, select Install Anyway and select the certificate RQProxyCA.pem.cert.
  1. To verify Certificate trust settings are now active, go to Trusted Credentials -> UserRQProxyCA should be present here. Alternately, you may simply begin submitting requests and watch as they are logged in the Requestly Network Tab.

4. [if-required] SSL Pinning Ignore

Make sure to remove this in production builds

Add these configs to your codebase to ignore SSL Pinning.

  • 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>
  • Add to AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest ... >
    <application android:networkSecurityConfig="@xml/network_security_config" ... >
    ...
    </application>
</manifest>
Updated on