No hardcode ksu tmp path

This commit is contained in:
Nullptr
2024-01-05 14:30:07 +08:00
parent 675febfd14
commit 2d384685e7
4 changed files with 3 additions and 26 deletions

View File

@@ -8,7 +8,6 @@
namespace zygiskd {
static std::string TMP_PATH;
// TODO: use /sbin or /debug_ramdisk directly
void Init(const char *path) {
TMP_PATH = path;
}

View File

@@ -46,7 +46,7 @@ void revert_unmount_ksu() {
&& std::find(KSU_PARTITIONS.begin(), KSU_PARTITIONS.end(), info.target) != KSU_PARTITIONS.end()) {
targets.emplace_back(info.target);
}
// Unmount /debug_ramdisk
// Unmount temp dir
if (info.type == "tmpfs" && info.source == KSU_OVERLAY_SOURCE) {
targets.emplace_back(info.target);
}