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:
res/xml/network_security_config.xml.AndroidManifest.xml, add the configuration to your application attribute:
<manifest>
<application android:networkSecurityConfig="@xml/network_security_config">
⋮
</application>
</manifest>
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>
Unity deprecated the use of res folders in the Assets/Plugins/Android directory.
These instructions show you how to create a debuggable APK with proxy support when you use Unity to develop your application:
Assets/Plugins/Android/«name-of-your-library».androidlib.AndroidManifest.xml file in Assets/Plugins/Android/«name-of-your-library».androidlib/, and add the following to that file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.library.network.security">
<application android:networkSecurityConfig="@xml/network_security_config" />
</manifest>
project.properties file in Assets/Plugins/Android/«name-of-your-library».androidlib/ with the following contents:
target=android-31
android.library=true
network_security_config.xml, with the following contents:
<network-security-config>
<debug-overrides>
<trust-anchors>
<certificates src="system" />
<certificates src="user" />
</trust-anchors>
</debug-overrides>
</network-security-config>
network_security_config.xml file into the Assets/Plugins/Android/«name-of-your-library».androidlib/res/xml folder.