You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d9cc560cc | ||
|
|
f395cfb490 |
@@ -31,7 +31,7 @@ val gitCommitHash = "git rev-parse --verify --short HEAD".execute()
|
|||||||
|
|
||||||
val moduleId by extra("zygisksu")
|
val moduleId by extra("zygisksu")
|
||||||
val moduleName by extra("Zygisk on KernelSU")
|
val moduleName by extra("Zygisk on KernelSU")
|
||||||
val verName by extra("v4-0.5.0")
|
val verName by extra("v4-0.5.1")
|
||||||
val verCode by extra(gitCommitCount)
|
val verCode by extra(gitCommitCount)
|
||||||
val minKsuVersion by extra(10654)
|
val minKsuVersion by extra(10654)
|
||||||
val minKsudVersion by extra(10647)
|
val minKsudVersion by extra(10647)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ static void lazy_unmount(const char* mountpoint) {
|
|||||||
if (umount2(mountpoint, MNT_DETACH) != -1) {
|
if (umount2(mountpoint, MNT_DETACH) != -1) {
|
||||||
LOGD("Unmounted (%s)", mountpoint);
|
LOGD("Unmounted (%s)", mountpoint);
|
||||||
} else {
|
} else {
|
||||||
PLOGE("Failed to unmount: %s (%s)", strerror(errno), mountpoint);
|
LOGW("Failed to unmount: %s (%s)", strerror(errno), mountpoint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,11 +45,9 @@ void revert_unmount() {
|
|||||||
|
|
||||||
parse_mnt("/proc/self/mounts", [&](mntent* mentry) {
|
parse_mnt("/proc/self/mounts", [&](mntent* mentry) {
|
||||||
if (mentry->mnt_type == "overlay"sv) {
|
if (mentry->mnt_type == "overlay"sv) {
|
||||||
for (auto it = backups.begin(); it != backups.end(); it++) {
|
backups.remove_if([&](auto& mnt) {
|
||||||
backups.remove_if([&](auto& mnt) {
|
return mnt.first == mentry->mnt_dir && mnt.second == mentry->mnt_opts;
|
||||||
return mnt.first == mentry->mnt_dir && mnt.second == mentry->mnt_opts;
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user