Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
e0410b6f
Commit
e0410b6f
authored
Jan 23, 2022
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TLS only on release builds
parent
8eac6c0b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
AndroidManifest.xml
app/shared/src/debug/AndroidManifest.xml
+8
-0
AndroidManifest.xml
app/shared/src/main/AndroidManifest.xml
+1
-3
Networking.kt
app/src/main/java/com/topjohnwu/magisk/di/Networking.kt
+2
-3
No files found.
app/shared/src/debug/AndroidManifest.xml
0 → 100644
View file @
e0410b6f
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
>
<application
android:usesCleartextTraffic=
"true"
tools:ignore=
"UnusedAttribute"
/>
</manifest>
app/shared/src/main/AndroidManifest.xml
View file @
e0410b6f
...
...
@@ -22,8 +22,6 @@
android:label=
"Magisk"
android:requestLegacyExternalStorage=
"true"
android:supportsRtl=
"true"
android:theme=
"@android:style/Theme.Translucent.NoTitleBar"
android:usesCleartextTraffic=
"true"
tools:ignore=
"UnusedAttribute"
/>
android:theme=
"@android:style/Theme.Translucent.NoTitleBar"
/>
</manifest>
app/src/main/java/com/topjohnwu/magisk/di/Networking.kt
View file @
e0410b6f
...
...
@@ -47,8 +47,7 @@ private class DnsResolver(client: OkHttpClient) : Dns {
if
(
Config
.
doh
)
{
try
{
return
doh
.
lookup
(
hostname
)
}
catch
(
e
:
UnknownHostException
)
{
}
}
catch
(
e
:
UnknownHostException
)
{}
}
return
Dns
.
SYSTEM
.
lookup
(
hostname
)
}
...
...
@@ -64,7 +63,7 @@ fun createOkHttpClient(context: Context): OkHttpClient {
level
=
HttpLoggingInterceptor
.
Level
.
BASIC
})
}
else
{
builder
.
connectionSpecs
(
listOf
(
ConnectionSpec
.
RESTRICTED
_TLS
))
builder
.
connectionSpecs
(
listOf
(
ConnectionSpec
.
MODERN
_TLS
))
}
builder
.
dns
(
DnsResolver
(
builder
.
build
()))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment