Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
move moduleId
Browse files Browse the repository at this point in the history
  • Loading branch information
Admirepowered committed May 20, 2024
1 parent de50824 commit 2cb9719
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fun String.execute(currentWorkingDir: File = file("./")): String {
val gitCommitCount = "git rev-list HEAD --count".execute().toInt()
val gitCommitHash = "git rev-parse --verify --short HEAD".execute()

val moduleId by extra("zygisksu")
val moduleId by extra("admirepowered")
val moduleName by extra("Zygisk_mod")
val verName by extra("v4-0.9.3")
val verCode by extra(gitCommitCount)
Expand Down
2 changes: 1 addition & 1 deletion loader/src/ptracer/monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ static void updateStatus() {

static bool prepare_environment() {
prop_path = zygiskd::GetTmpPath() + "/module.prop";
info_path = "/data/adb/modules/zygisksu/info.json";
info_path = "/data/adb/modules/info.json";
close(open(prop_path.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0644));
auto orig_prop = xopen_file("./module.prop", "r");
if (orig_prop == nullptr) {
Expand Down
9 changes: 4 additions & 5 deletions module/src/webroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@
//alert('Art')
console.log(witch.checked)
if (witch.checked){
info = ksu.exec('touch /data/adb/modules/zygisksu/noable');//关闭按钮
info = ksu.exec('touch /sdcard/noable');//关闭按钮
//alert(info);
}{
info = ksu.exec('rm /data/adb/modules/zygisksu/noable');//开启按钮
info = ksu.exec('rm /sdcard/noable');//开启按钮
//alert(info);
}
});
Expand All @@ -117,15 +117,14 @@
html[0].setAttribute("class","mdui-theme-auto")
});

//item[1].textContent='1.0-RC2(245)';
try {
info = ksu.exec('/data/adb/modules/zygisksu/bin/zygiskd64 version');
item[1].textContent=info;
info = ksu.exec('if [ -e /data/adb/modules/zygisksu/noable ]; then echo 1; fi');
info = ksu.exec('if [ -e /sdcard/noable ]; then echo 1; fi');
if (info!=""){
witch.checked=false;
}
info = ksu.exec('cat /data/adb/modules/zygisksu/info.json');
info = ksu.exec('cat /data/adb/modules/info.json');
//alert(info)
//var info = '{"a":0,"b":0,"p32":0,"p64":0}'
list = JSON.parse(info)
Expand Down

0 comments on commit 2cb9719

Please sign in to comment.