Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_packages_modules_Connectivity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LMODroid
platform_packages_modules_Connectivity
Commits
f8189927
Commit
f8189927
authored
2 years ago
by
Chidera Olibie
Committed by
Gerrit Code Review
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add xml config to allow cleartext traffic on some domains."
parents
9c6801f8
e02c571a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Cronet/tests/mts/AndroidManifest.xml
+1
-1
1 addition, 1 deletion
Cronet/tests/mts/AndroidManifest.xml
Cronet/tests/mts/res/xml/network_security_config.xml
+34
-0
34 additions, 0 deletions
Cronet/tests/mts/res/xml/network_security_config.xml
with
35 additions
and
1 deletion
Cronet/tests/mts/AndroidManifest.xml
+
1
−
1
View file @
f8189927
...
...
@@ -21,7 +21,7 @@
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<application>
<application
android:networkSecurityConfig=
"@xml/network_security_config"
>
<uses-library
android:name=
"android.test.runner"
/>
</application>
<instrumentation
android:name=
"androidx.test.runner.AndroidJUnitRunner"
...
...
This diff is collapsed.
Click to expand it.
Cronet/tests/mts/res/xml/network_security_config.xml
0 → 100644
+
34
−
0
View file @
f8189927
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2022 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<network-security-config>
<domain-config
cleartextTrafficPermitted=
"true"
>
<!-- Used as the base URL by native test server (net::EmbeddedTestServer) -->
<domain
includeSubdomains=
"true"
>
127.0.0.1
</domain>
<!-- Used by CronetHttpURLConnectionTest#testIOExceptionInterruptRethrown -->
<domain
includeSubdomains=
"true"
>
localhost
</domain>
<!-- Used by CronetHttpURLConnectionTest#testBadIP -->
<domain
includeSubdomains=
"true"
>
0.0.0.0
</domain>
<!-- Used by CronetHttpURLConnectionTest#testSetUseCachesFalse -->
<domain
includeSubdomains=
"true"
>
host-cache-test-host
</domain>
<!-- Used by CronetHttpURLConnectionTest#testBadHostname -->
<domain
includeSubdomains=
"true"
>
this-weird-host-name-does-not-exist
</domain>
<!-- Used by CronetUrlRequestContextTest#testHostResolverRules -->
<domain
includeSubdomains=
"true"
>
some-weird-hostname
</domain>
</domain-config>
</network-security-config>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment