Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.45 KB

File metadata and controls

23 lines (15 loc) · 1.45 KB

An Android module (.aar) that can be added to any project to enable user-installed trusted root certificates in debuggable builds.

This is useful when inspecting traffic using Charles Proxy or Fiddler, as these tools require a self-signed root certificate to be installed on the device to enable them to decrypt traffic, man-in-the-middle style. As of Android N, user-installed certificates like this are not respected by applications except the system web browser, unless the application explicitly opts-in to it.

This module does exactly that, by providing a network-security-config resource that enables user-installed certificates only in debuggable builds.

Prebuilt release

See the Releases page to download a prebuilt .aar file.

Using with Unity

Simply add the DebuggableRootCertificates.aar release file anywhere in the Assets folder. It should work with Unity 2018.x and later.

Using with other projects

Use the appropriate module-linking functionality of your build system to add the DebuggableRootCertificates.aar file, or import this prjoect into your Gradle system. Alternatively, just have a look at the AndroidManifest.xml and network_security_config.xml file in this project and add them directly to your own.