improve: hiding

This commit improves hiding by moving monitor related files to /data/adb/rezygisk, where it's not accessable without root.
This commit is contained in:
ThePedroo
2024-06-30 23:03:54 -03:00
parent df0f2ce5a2
commit 1a82399e86
5 changed files with 10 additions and 39 deletions

View File

@@ -9,41 +9,7 @@
#define DEBUG_RAMDISK_AS_TMP_PATH 2
int main(int argc, char **argv) {
int tmp_path_type = CUSTOM_TMP_PATH;
if (getenv("TMP_PATH") == NULL) {
tmp_path_type = SBIN_AS_TMP_PATH;
if (access("/sbin", F_OK) == -1) {
tmp_path_type = DEBUG_RAMDISK_AS_TMP_PATH;
if (access("/debug_ramdisk", F_OK) == -1) {
printf("Cannot find TMP_PATH. You should make an issue about that.\n");
return 1;
}
}
} else {
tmp_path_type = CUSTOM_TMP_PATH;
}
switch (tmp_path_type) {
case CUSTOM_TMP_PATH: {
zygiskd::Init(getenv("TMP_PATH"));
break;
}
case SBIN_AS_TMP_PATH: {
zygiskd::Init("/sbin");
break;
}
case DEBUG_RAMDISK_AS_TMP_PATH: {
zygiskd::Init("/debug_ramdisk");
break;
}
}
zygiskd::Init("/data/adb/rezygisk");
printf("The ReZygisk Tracer %s\n\n", ZKSU_VERSION);