You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
fix: remove su -c
fix problem with disable sucompat
This commit is contained in:
@@ -45,7 +45,10 @@ document.getElementById("boot-hash").addEventListener("click", async () => {
|
|||||||
const inputValue = inputBox.value.trim();
|
const inputValue = inputBox.value.trim();
|
||||||
try {
|
try {
|
||||||
await execCommand(`echo "${inputValue}" > /data/adb/boot_hash`);
|
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");
|
showPrompt("prompt.boot_hash_set");
|
||||||
closeCard();
|
closeCard();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ function setupUpdateMenu() {
|
|||||||
try {
|
try {
|
||||||
showPrompt("prompt.installing");
|
showPrompt("prompt.installing");
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
await execCommand(`su -c 'sh ${basePath}common/get_extra.sh --install-update'`);
|
await execCommand(`sh ${basePath}common/get_extra.sh --install-update`);
|
||||||
showPrompt("prompt.installed");
|
showPrompt("prompt.installed");
|
||||||
installButton.style.display = "none";
|
installButton.style.display = "none";
|
||||||
rebootButton.style.display = "flex";
|
rebootButton.style.display = "flex";
|
||||||
|
|||||||
Reference in New Issue
Block a user