Lite - sciprt only

This commit is contained in:
KOWX712
2024-10-16 16:12:57 +08:00
committed by GitHub
parent dca983836e
commit 77f24190a0
2 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
#!/bin/sh
# by KOW
# v1.2
# GitHub release: https://github.com/KOWX712/Tricky-Addon-Update-Target-List/releases/latest
# telegram channel: https://t.me/kowchannel
# This script will put all non-system app into /data/adb/tricky_store/target.txt
# Using module to put normal app into system app may exclude corresponding app from this script too, please disable it if you found this script doesn't work.
echo " "
echo " Staring script..."
echo " "
# Create or overwrite the target.txt file
su -c > /data/adb/tricky_store/target.txt
echo " Adding apps to target.txt..."
echo " "
EXCLUDE="oneplus|coloros|com.android.patch|me.bmax.apatch"
# Add all non-system apps to the target file and remove exclusions
su -c pm list packages -3 </dev/null 2>&1 | cat | awk -F: '{print $2}' | grep -Ev "$EXCLUDE" > /data/adb/tricky_store/target.txt
sleep 1
# Add extra package names if any app excluded by the script (DO NOT remove default package here)
ADDITION="com.google.android.gms io.github.vvb2060.keyattestation io.github.vvb2060.mahoshojo icu.nullptr.nativetest"
for app in $ADDITION; do
if ! grep -qx "$app" /data/adb/tricky_store/target.txt; then
echo "$app" >> /data/adb/tricky_store/target.txt
fi
done
# Force stop gms. Not necessary, you can add it if you want
#su -c killall com.google.android.gms
#su -c killall com.google.android.gms.unstable
echo " All done!"

View File

@@ -0,0 +1,11 @@
## Tricky Addon Lite: Update Target List Script
- Script only, **NOT Module**
- Run with root priviledge
## Changelog
### V1.2
- Synched some code with module script
## Download
[GitHub Release](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/releases/latest)