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
Initial
This commit is contained in:
1
module/common/.keybox
Normal file
1
module/common/.keybox
Normal file
@@ -0,0 +1 @@
|
||||
nothing here
|
||||
9
module/common/ADDITION
Normal file
9
module/common/ADDITION
Normal file
@@ -0,0 +1,9 @@
|
||||
# This is the list of additional apps to include in the target file
|
||||
# DO NOT remove the default app here
|
||||
# You can add your custom addition app's package name here
|
||||
# Each app package name should be on a new line
|
||||
|
||||
com.google.android.gms
|
||||
io.github.vvb2060.keyattestation
|
||||
io.github.vvb2060.mahoshojo
|
||||
icu.nullptr.nativetest
|
||||
9
module/common/EXCLUDE
Normal file
9
module/common/EXCLUDE
Normal file
@@ -0,0 +1,9 @@
|
||||
# This is the list of apps to exclude from the target file
|
||||
# DO NOT remove the default app here
|
||||
# You can add your custom exclusion app here
|
||||
# Each app package name should be on a new line
|
||||
|
||||
oneplus
|
||||
coloros
|
||||
com.android.patch
|
||||
me.bmax.apatch
|
||||
58
module/common/UpdateTargetList.sh
Normal file
58
module/common/UpdateTargetList.sh
Normal file
@@ -0,0 +1,58 @@
|
||||
#!/bin/sh
|
||||
|
||||
# by KOW, 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.
|
||||
|
||||
# Define the mod path
|
||||
MODDIR="/data/adb/tricky_store/target_list_config"
|
||||
|
||||
# Config file check
|
||||
echo "- Checking config files..."
|
||||
echo " "
|
||||
if [ ! -f "$MODDIR/EXCLUDE" ]; then
|
||||
echo "! Exclude list is missing!"
|
||||
exit 1
|
||||
else
|
||||
echo "- Exclude config file found."
|
||||
echo " "
|
||||
fi
|
||||
if [ ! -f "$MODDIR/ADDITION" ]; then
|
||||
echo "! Addition list is missing"
|
||||
exit 1
|
||||
else
|
||||
echo "- Addition config file found."
|
||||
echo " "
|
||||
fi
|
||||
|
||||
# Read exclution and addition config
|
||||
EXCLUDE=$(grep -vE '^#|^$' "$MODDIR/EXCLUDE" | tr '\n' '|' | sed 's/|$//')
|
||||
ADDITIONS=$(grep -vE '^#|^$' "$MODDIR/ADDITION")
|
||||
|
||||
# Create or overwrite the target.txt file
|
||||
echo "- Overwritting target.txt"
|
||||
echo " "
|
||||
su -c > /data/adb/tricky_store/target.txt
|
||||
|
||||
# Add all non-system apps to the target file and remove exclusions
|
||||
echo "- Adding apps into /data/adb/tricky_store/target.txt"
|
||||
echo " "
|
||||
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 additional apps to the target file if they are not already present
|
||||
echo "- Adding addition app... "
|
||||
echo " "
|
||||
for app in $ADDITIONS; 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 "- target.txt updated successfully"
|
||||
echo " "
|
||||
3
module/common/system.prop
Normal file
3
module/common/system.prop
Normal file
@@ -0,0 +1,3 @@
|
||||
# To pass Minotaur native test Conventional Test (8), you can get your VerifiedBootHash from KeyAttestation app
|
||||
# Put verifiedBootHash after 'ro.boot.vbmeta.digest=' and remove the '#' infront of it.
|
||||
#ro.boot.vbmeta.digest=
|
||||
Reference in New Issue
Block a user