fix: remove su -c

fix problem with disable sucompat
This commit is contained in:
KOWX712
2025-02-25 19:28:57 +08:00
parent 37d78b790e
commit fe76f01439
2 changed files with 5 additions and 2 deletions

View File

@@ -45,7 +45,10 @@ document.getElementById("boot-hash").addEventListener("click", async () => {
const inputValue = inputBox.value.trim();
try {
await execCommand(`echo "${inputValue}" > /data/adb/boot_hash`);
await execCommand(`su -c resetprop -n ro.boot.vbmeta.digest ${inputValue}`);
await execCommand(`
PATH=/data/adb/ap/bin:/data/adb/ksu/bin:/data/adb/magisk:$PATH
resetprop -n ro.boot.vbmeta.digest ${inputValue}
`);
showPrompt("prompt.boot_hash_set");
closeCard();
} catch (error) {