Skip to content

Commit

Permalink
Opt out of cleartext traffic
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Jul 16, 2017
1 parent 422924f commit ac28b83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions mobile/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
android:icon="@mipmap/ic_launcher"
android:backupAgent=".ShadowsocksBackupAgent"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:banner="@drawable/ic_start_connected">

<meta-data android:name="com.google.android.gms.version"
Expand Down
4 changes: 4 additions & 0 deletions mobile/src/main/res/xml/network_security_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="false"/>
</network-security-config>

0 comments on commit ac28b83

Please sign in to comment.