Merge branch 'kmmiio99o:main' into main
This commit is contained in:
commit
ac57f05cae
1 changed files with 17 additions and 1 deletions
|
|
@ -252,6 +252,8 @@ object ManifestPatcher {
|
|||
extractNativeLibs ?: false
|
||||
private var shouldAddMetadata =
|
||||
addManagerMetadata ?: false
|
||||
private var shouldAddCleartext = true
|
||||
|
||||
|
||||
override fun attr(
|
||||
ns: String?,
|
||||
|
|
@ -269,6 +271,12 @@ object ManifestPatcher {
|
|||
shouldAddExtractNativeLibs = false
|
||||
if (name == DEBUGGABLE)
|
||||
shouldAddDebuggable = false
|
||||
if (name == "usesCleartextTraffic") {
|
||||
shouldAddCleartext = false
|
||||
super.attr(ns, name, 0x010104ec, TYPE_INT_BOOLEAN, 1)
|
||||
return
|
||||
}
|
||||
|
||||
super.attr(
|
||||
ns,
|
||||
name,
|
||||
|
|
@ -425,7 +433,15 @@ object ManifestPatcher {
|
|||
0
|
||||
)
|
||||
}
|
||||
|
||||
if (shouldAddCleartext) {
|
||||
super.attr(
|
||||
ANDROID_NAMESPACE,
|
||||
"usesCleartextTraffic",
|
||||
0x010104ec,
|
||||
TYPE_INT_BOOLEAN,
|
||||
1
|
||||
)
|
||||
}
|
||||
super.end()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue