Prerequisites
- Download the Requestly Desktop app, if you haven’t already.
- Start Requestly and ensure that your android device and your computer are on the same network.
Setup
1. Setup Android Proxy (On Device)
- Open Wi-Fi settings on your Android Device by navigating to
Setting > Wi-Fi > Select Current Wi-Fi > Modify
.
- Set
Proxy
settings toManual
.
-
Enter the host IP and the proxy port. You can find these in the header of the App
-
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)
- Open Incognito window in your browser
- Go to http://requestly.io/ssl
⚠️ Use http here, not https
This will download RQProxyCA.pem.cert
3. Trust Certificate (On Device)
- Open Trusted Certificate Settings by navigating to
Settings -> Security -> Encryption & Credentials -> Install a Certificate -> CA Certificate
.
- To install this certificate, select
Install Anyway
and select the certificateRQProxyCA.pem.cert
.
- To verify Certificate trust settings are now active, go to
Trusted Credentials -> User
.RQProxyCA
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>