🎫 Trusting user certificates
For Waldo to be able to intercept all requests from your application when using Sessions, we recommend trusting the user certificates by default in your application.
For that, you should specify the network security configuration by adding the following XML file in the xml
folder of the resources: res/xml/network_security_config.xml
<network-security-config>
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="user" />
<certificates src="system" />
</trust-anchors>
</base-config>
</network-security-config>
and add the property android:networkSecurityConfig="@xml/network_security_config"
to your application
component in your manifest:
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:networkSecurityConfig="@xml/network_security_config">
Waldo will always attempt to force this setting when processing your application but might not always be able to do so in some specific cases.
Updated over 1 year ago