Android Emulators

Getting Started
Installation
Setup
Inspect Traffic
HTTP Rules (Modify Traffic)
Session Book
Mock Server
API Client
File Server
Workspace
Public API
Guides
TroubleShooting
Subscription & Billing
Getting Started
Installation
Setup
Inspect Traffic
API Client
HTTP Rules (Modify Traffic)
Mock Server
File Server
Workspace
Public API
Guides
Session Book
Subscription & Billing
TroubleShooting

Prerequisites

  1. Download the Requestly Desktop app, if you haven’t already.
  1. Start the App on the emulator.

Setup Emulator Proxy

  1. Launch Emulator
  1. Setup Proxy
adb shell settings put global http_proxy "<ip>:<port>"
💡
Make sure to change the <ip>:<port> in the above command to the one mentioned in the header of Requestly desktop app
notion image

Setup CA Certificate (Only Required one time)

Automatic Process

#!/bin/bash subjectHash=`openssl x509 -inform PEM -subject_hash_old -in ~/Library/Application\ Support/Requestly/.tmp/certs/ca.pem | head -n 1` openssl x509 -in ~/Library/Application\ Support/Requestly/.tmp/certs/ca.pem -inform PEM -outform DER -out $subjectHash.0 adb root adb push ./$subjectHash.0 /data/misc/user/0/cacerts-added/$subjectHash.0 adb shell "su 0 chmod 644 /data/misc/user/0/cacerts-added/$subjectHash.0" adb reboot

Manual Process

  1. Download certificate
    1. Open Incognito window in your browser
    2. Go to http://requestly.io/ssl
    3. 💡
      ⚠️ Use http here, not https
      This will download RQProxyCA.pem.cert
  1. Trust Certificate
    1. Open Trusted Certificate Settings by navigating to Settings -> Security -> Encryption & Credentials -> Install a Certificate -> CA Certificate.
    2. To install this certificate, select Install Anyway and select the certificate RQProxyCA.pem.cert.
    3. 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.
notion image

Revert Emulator Proxy

Please make sure to revert the proxy after you are done testing using Requestly
adb shell settings put global http_proxy :0