#!/system/bin/sh
set -x
echo "=== magisk ver ==="
magisk -c
magisk -v
echo "=== zygisk setting ==="
magisk --sqlite 'SELECT * FROM settings'
echo "=== path ==="
MAGISK_PATH=$(magisk --path)
echo "MAGISK_PATH=$MAGISK_PATH"
ls -la "$MAGISK_PATH" 2>/dev/null | head -30
ls -la "$MAGISK_PATH/zygisk" 2>/dev/null
ls -la /data/adb/modules/
ls -la /data/adb/modules/tng_exit_guard/
ls -la /data/adb/modules/tng_exit_guard/zygisk/
echo "=== denylist tng ==="
magisk --denylist ls 2>/dev/null | grep -i tng || echo "TNG not on denylist"
echo "=== processes ==="
ps -A | grep -iE 'magiskd|zygisk|lspd|vector|tngdigital' || true
echo "=== logcat zygisk ==="
logcat -d | grep -iE 'zygisk|TngExit|tng_exit' | tail -40
