Skip to content

Commit

Permalink
improve conflict modules detection
Browse files Browse the repository at this point in the history
Signed-off-by: akirasupr <vishal.rockstar7011@gmail.com>
  • Loading branch information
ahkehra committed Nov 24, 2021
1 parent e08aced commit fdfabc3
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions post-fs-data.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,27 +1,9 @@
#!/system/bin/sh
MODULE=/data/adb/modules
# Conflict module remover
for REMOVE in $MODULE/*Game_Unlock*; do
touch $REMOVE/disable;
done;
for REMOVE in $MODULE/*Pubg_extrem*; do
touch $REMOVE/disable;
done;
for REMOVE in $MODULE/*pixel*; do
touch $REMOVE/disable;
done;
for REMOVE in $MODULE/*Pixel*; do
touch $REMOVE/disable;
done;
for REMOVE in $MODULE/*PIXEL*; do
touch $REMOVE/disable;
done;
for REMOVE in $MODULE/*spoof*; do
touch $REMOVE/disable;
done;
for REMOVE in $MODULE/*SPOOF*; do
touch $REMOVE/disable;
done;
for REMOVE in $MODULE/*Spoof*; do
touch $REMOVE/disable;
module=/data/adb/modules/
conflict=$(find /data/adb -iname "*.prop")
for i in $conflict; do
search=$(echo "$i" | sed -e 's/\// /g' | awk '{print $4}')
if grep -q 'model' $i 2>/dev/null; then
touch $module$search/remove
fi
done

0 comments on commit fdfabc3

Please sign in to comment.