Skip to content

Generating APK with Support for Proxying into Network Traffic

The AppLovin team may request a debuggable APK that can proxy into networking traffic by using Android’s Network Security Configuration feature.

These instructions show you how to create such an APK:

  1. If you have not already done so, create a new XML file: res/xml/network_security_config.xml.
  2. In your application manifest AndroidManifest.xml, add the configuration to your application attribute:
    <manifest>
    <application android:networkSecurityConfig="@xml/network_security_config">
    </application>
    </manifest>
  3. In the res/xml/network_security_config.xml file, add the following:
    <network-security-config>
    <debug-overrides>
    <trust-anchors>
    <certificates src="system" />
    <certificates src="user" />
    </trust-anchors>
    </debug-overrides>
    </network-security-config>
  4. Create a debug build.
    • On native Android: build with a debug configuration.
    • On Unity: select Development Build in Build Settings.