add denylist to target on boot

choose "Select from DenyList" in WebUI once to enable this feature
This commit is contained in:
KOWX712
2025-02-06 22:28:56 +08:00
parent ccffd2eaed
commit bb7573f5dd
4 changed files with 31 additions and 7 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ document.getElementById("save").addEventListener("click", async () => {
return app;
});
const updatedTargetContent = modifiedAppsList.join("\n");
await execCommand(`echo "${updatedTargetContent}" > /data/adb/tricky_store/target.txt`);
await execCommand(`echo "${updatedTargetContent}" | sort -u > /data/adb/tricky_store/target.txt`);
console.log("target.txt updated successfully.");
showPrompt("prompt.saved_target");
for (const app of appsWithExclamation) {