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
exclude more than only xposed
added option to exclude more root related app other than xposed module
This commit is contained in:
14
module/common/get_excldue-list.sh
Normal file
14
module/common/get_excldue-list.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
MODPATH=${0%/*}
|
||||
OUTPUT="$MODPATH/exclude-list"
|
||||
|
||||
# Fetch Xposed module package names
|
||||
curl -s "https://modules.lsposed.org/modules.json" | \
|
||||
grep -o '"name":"[^"]*","description":' | \
|
||||
awk -F'"' '{print $4}' > "$OUTPUT"
|
||||
|
||||
# Fetch additional package names
|
||||
curl -s "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/master/more-excldue.json" | \
|
||||
grep -o '"package-name": *"[^"]*"' | \
|
||||
awk -F'"' '{print $4}' >> "$OUTPUT"
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
# Get all xposed app package name
|
||||
MODPATH=${0%/*}
|
||||
OUTPUT="$MODPATH/xposed-list"
|
||||
|
||||
curl -s "https://modules.lsposed.org/modules.json" | \
|
||||
grep -o '"name":"[^"]*","description":' | \
|
||||
awk -F'"' '{print $4}' > "$OUTPUT"
|
||||
@@ -90,7 +90,7 @@ fi
|
||||
rm -rf "$MODPATH/bin"
|
||||
|
||||
set_perm $SCRIPT_DIR/UpdateTargetList.sh 0 2000 0755
|
||||
set_perm $COMPATH/get_xposed.sh 0 2000 0755
|
||||
set_perm $COMPATH/get_exclude-list.sh 0 2000 0755
|
||||
|
||||
if [ -d "$CONFIG_DIR" ]; then
|
||||
if [ ! -f "$CONFIG_DIR/EXCLUDE" ] && [ ! -f "$CONFIG_DIR/ADDITION" ]; then
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<li id="refresh">Refresh</li>
|
||||
<li id="select-all">Select All</li>
|
||||
<li id="deselect-all">Deselect All</li>
|
||||
<li id="deselect-xposed">Deselect Xposed</li>
|
||||
<li id="deselect-xposed">Deselect Root Related</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -92,25 +92,25 @@ async function refreshAppList() {
|
||||
// Function to run the Xposed script
|
||||
async function runXposedScript() {
|
||||
try {
|
||||
const scriptPath = `${basePath}get_xposed.sh`;
|
||||
const scriptPath = `${basePath}get_exclude-list.sh`;
|
||||
await execCommand(scriptPath);
|
||||
console.log("Xposed script executed successfully.");
|
||||
console.log("Exclude script executed successfully.");
|
||||
} catch (error) {
|
||||
console.error("Failed to execute Xposed script:", error);
|
||||
console.error("Failed to execute exclude script:", error);
|
||||
}
|
||||
}
|
||||
|
||||
// Function to read the xposed list and uncheck corresponding apps
|
||||
// Function to read the more exclude list and uncheck corresponding apps
|
||||
async function deselectXposedApps() {
|
||||
try {
|
||||
const result = await execCommand(`cat ${basePath}xposed-list`);
|
||||
const result = await execCommand(`cat ${basePath}exclude-list`);
|
||||
const xposedApps = result.split("\n").map(app => app.trim()).filter(Boolean);
|
||||
const apps = document.querySelectorAll(".card");
|
||||
apps.forEach(app => {
|
||||
const appName = app.querySelector(".name").textContent.trim();
|
||||
const checkbox = app.querySelector(".checkbox");
|
||||
if (xposedApps.includes(appName)) {
|
||||
checkbox.checked = false; // Uncheck if found in xposed-list
|
||||
checkbox.checked = false; // Uncheck if found in exclude-list
|
||||
}
|
||||
});
|
||||
console.log("Xposed apps deselected successfully.");
|
||||
|
||||
Reference in New Issue
Block a user