forked from aholkner/AndroidDebuggableRootCertificates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
15 additions
and
22 deletions.
There are no files selected for viewing
8 changes: 0 additions & 8 deletions
8
DebuggableRootCertificates/src/main/res/xml/network_security_config.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
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](https://www.charlesproxy.com/) or [Fiddler](https://www.telerik.com/fiddler), | ||
as these tools [require a self-signed root certificate](https://www.telerik.com/blogs/how-to-capture-android-traffic-with-fiddler) 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_. | ||
An Android module (`.aar`) that can be added to any project to enable user-installed trusted root certificates. | ||
|
||
## Prebuilt release | ||
|
||
See the [Releases](https://github.com/aholkner/AndroidDebuggableRootCertificates/releases) page to download a prebuilt .aar file. | ||
See the [Releases](https://github.com/ArborXR/Android-Root-CA-Library/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. | ||
Simply add the `RootCertificateSecurityConfig.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 | ||
Use the appropriate module-linking functionality of your build system to add the `RootCertificateSecurityConfig.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. |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...Certificates/src/main/AndroidManifest.xml → ...curityConfig/src/main/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.studiodrydock.debuggablerootcertificates"> | ||
package="app.xrdm.certificatesecurityconfig"> | ||
|
||
<application android:networkSecurityConfig="@xml/network_security_config" /> | ||
</manifest> |
9 changes: 9 additions & 0 deletions
9
RootCertificateSecurityConfig/src/main/res/xml/network_security_config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<network-security-config> | ||
<base-config> | ||
<trust-anchors> | ||
<certificates src="user"/> | ||
<certificates src="system"/> | ||
</trust-anchors> | ||
</base-config> | ||
</network-security-config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include ':DebuggableRootCertificates' | ||
include ':RootCertificateSecurityConfig' |