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 lag on deselect unnecessary option
This commit is contained in:
@@ -41,11 +41,12 @@ get_unnecessary() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_xposed() {
|
get_xposed() {
|
||||||
pm list packages -3 | awk -F: '{print $2}' | while read -r PACKAGE; do
|
pm list packages -3 | cut -d':' -f2 | grep -vxF -f "$SKIPLIST" | grep -vxF -f "$OUTPUT" | while read -r PACKAGE; do
|
||||||
if ! grep -Fq "$PACKAGE" "$SKIPLIST" && ! grep -Fq "$PACKAGE" "$OUTPUT"; then
|
APK_PATH=$(pm path "$PACKAGE" | grep "base.apk" | cut -d':' -f2 | tr -d '\r')
|
||||||
pm path "$PACKAGE" | grep "base.apk" | awk -F: '{print $2}' | tr -d '\r' | while read -r APK_PATH; do
|
if [[ -n "$APK_PATH" ]]; then
|
||||||
aapt dump xmltree "$APK_PATH" AndroidManifest.xml 2>/dev/null | grep -qE "xposed.category|xposeddescription" && echo "$PACKAGE" >> "$OUTPUT"
|
if aapt dump xmltree "$APK_PATH" AndroidManifest.xml 2>/dev/null | grep -qE "xposed.category|xposeddescription"; then
|
||||||
done
|
echo "$PACKAGE" >> "$OUTPUT"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
@@ -67,4 +68,4 @@ case "$1" in
|
|||||||
--unnecessary) get_unnecessary; exit ;;
|
--unnecessary) get_unnecessary; exit ;;
|
||||||
--xposed) get_xposed; exit ;;
|
--xposed) get_xposed; exit ;;
|
||||||
--update) check_update; exit ;;
|
--update) check_update; exit ;;
|
||||||
esac
|
esac
|
||||||
@@ -392,6 +392,7 @@ async function deselectUnnecessaryApps() {
|
|||||||
}, 0);
|
}, 0);
|
||||||
console.log("Exclude list found. Running xposed script.");
|
console.log("Exclude list found. Running xposed script.");
|
||||||
}
|
}
|
||||||
|
await new Promise(resolve => setTimeout(resolve, 100));
|
||||||
const result = await execCommand(`cat ${basePath}common/tmp/exclude-list`);
|
const result = await execCommand(`cat ${basePath}common/tmp/exclude-list`);
|
||||||
const UnnecessaryApps = result.split("\n").map(app => app.trim()).filter(Boolean);
|
const UnnecessaryApps = result.split("\n").map(app => app.trim()).filter(Boolean);
|
||||||
const apps = document.querySelectorAll(".card");
|
const apps = document.querySelectorAll(".card");
|
||||||
|
|||||||
Reference in New Issue
Block a user