Blog | G5 Cyber Security

Burp Proxy & Genymotion: Fix App Traffic

TL;DR

Your Android app traffic isn’t going through Burp Suite when using Genymotion? This guide fixes common issues by configuring Genymotion, your emulator network settings, and ensuring Burp is listening correctly.

Fixing Burp Proxy & Genymotion Traffic Issues

  1. Check Burp Suite is Running and Listening
    • Open Burp Suite Professional (or Community Edition).
    • Go to the ‘Proxy’ tab.
    • Ensure the ‘Intercept is on’ checkbox is ticked.
    • Verify that Burp is listening on 127.0.0.1 and port 8080 (or your configured proxy port). You can see this in the ‘Proxy listener’ section.
  2. Configure Genymotion to Use HTTP Proxy
    • Open Genymotion.
    • Start your Android virtual device.
    • Click on the settings icon (gear wheel) for your running VM.
    • Select ‘Network’.
    • Change ‘Proxy Settings’ to ‘Use HTTP proxy’.
    • Enter 127.0.0.1 as the ‘Proxy Host’.
    • Enter 8080 as the ‘Proxy Port’.
    • Click ‘Apply’ and then ‘OK’.
  3. Install Burp’s Certificate on Genymotion

    This is crucial for intercepting HTTPS traffic. If you skip this, you’ll get security warnings.

    • In your web browser (Chrome/Firefox), navigate to http://burpsuite.
    • Download the ‘CA Certificate’. Save it somewhere easy to find.
    • Connect to Genymotion via ADB:
      adb connect 127.0.0.1:5555

      (replace 5555 with your Genymotion port if different).

    • Push the certificate to the emulator:
      adb push /path/to/cacert.pem /sdcard/Download/cacert.pem
    • Install the certificate on the emulator:
      • Open Settings > Security (or Biometrics and security) > Install from SD card.
      • Navigate to /sdcard/Download/cacert.pem and select it.
      • You’ll likely get a warning – accept the certificate anyway. Give it a name like ‘Burp Suite’.
  4. Clear Genymotion Cache & Data (If Necessary)

    Sometimes, old network settings can interfere.

    • In Genymotion settings for your VM, go to ‘Advanced’.
    • Click the ‘Wipe data’ button. This resets the emulator’s configuration. Warning: This will delete all app data!
  5. Check Android System WebView Settings

    The system webview can sometimes bypass proxy settings.

    • In Genymotion, go to Settings > Apps.
    • Find ‘Android System WebView’.
    • Clear the cache and data for this app.
  6. Verify Proxy Configuration in Your App (If Applicable)

    Some apps have their own proxy settings that might override the system configuration.

    • Check your app’s settings for any network or proxy options.
    • Ensure it’s not configured to use a different proxy server.
  7. Restart Everything

    A full restart can resolve lingering issues.

    • Close Burp Suite.
    • Shut down Genymotion completely.
    • Restart Burp Suite.
    • Restart Genymotion and your Android VM.

If you’re still having problems, double-check that the IP address and port in Genymotion match those configured in Burp Suite.

Exit mobile version