5 Commits

Author SHA1 Message Date
snake-4
aa9a8a04e3 Bumped version to v2.0.2 2024-04-01 01:58:09 +02:00
snake-4
670767a82b Added exception for hosts bind mount 2024-04-01 01:33:12 +02:00
snake-4
7200b77043 Fixed module template copy task during build
Fixes Magisk compatibility.
2024-04-01 01:23:58 +02:00
snake-4
a07e62fcd7 Create update.json 2024-03-31 23:20:22 +02:00
snake-4
0ee57d586f Added updateJson in module.prop, bumped to v2.0.1 2024-03-31 23:15:32 +02:00
6 changed files with 24 additions and 2 deletions

View File

@@ -15,6 +15,6 @@ val commitHash: String by extra({
val moduleId by extra("zygisk-assistant")
val moduleName by extra("Zygisk Assistant")
val verName by extra("v2.0.0")
val verCode by extra(200)
val verName by extra("v2.0.2")
val verCode by extra(202)
val abiList by extra(listOf("armeabi-v7a","arm64-v8a","x86","x86_64"))

View File

@@ -55,6 +55,9 @@ androidComponents.onVariants { variant ->
"versionCode" to verCode
)
}
from("$projectDir/template") {
exclude("module.prop")
}
from(libOutDir) {
into("zygisk")
}

View File

@@ -41,6 +41,13 @@ static bool shouldUnmount(const mount_entry_t &info)
if (workdir != options.end() && workdir->second.rfind("/data/adb", 0) == 0)
return true;
}
// Unmount the bind mount of default Systemless Hosts module of Magisk
// It should've been an overlay instead but we'll make an exception for this one
// TODO: Maybe we can unmount all binds from userdata to system?
if (mountPoint == "/system/etc/hosts")
return true;
return false;
}

View File

@@ -4,3 +4,4 @@ version=${versionName}
versionCode=${versionCode}
author=snake-4
description=Zygisk module to hide mounts.
updateJson=https://raw.githubusercontent.com/snake-4/Zygisk-Assistant/main/update_metadata/update.json

View File

@@ -0,0 +1,5 @@
## 2.0.2
+ Fixed Magisk compatibility.
## 2.0.1
+ Added update.json for automatic updates.

View File

@@ -0,0 +1,6 @@
{
"version": "v2.0.1",
"versionCode": 201,
"zipUrl": "https://github.com/snake-4/Zygisk-Assistant/releases/download/v2.0.1/Zygisk-Assistant-v2.0.1-0ee57d5-release.zip",
"changelog": "https://raw.githubusercontent.com/snake-4/Zygisk-Assistant/main/update_metadata/CHANGELOG.md"
}