CellGuard: LTE/5G-NR lock + IMSI-catcher detection KSU module
- cgcap.ko: cpif CP-frame capture via kprobe/kallsyms, stock-GKI build - ratlock.sh: hold modem to LTE+NR(5G), block 2G/3G downgrade - cgdetect.sh: always-on behavioral cell-site-simulator detection - cgctl.sh + WebUI: block/detect toggles, status + alerts - build-stock-gki.sh: reproducible stock-GKI module build pipeline
This commit is contained in:
22
uninstall.sh
Executable file
22
uninstall.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/system/bin/sh
|
||||
# CellGuard — cleanup on uninstall
|
||||
|
||||
CONFIG_DIR="/data/adb/cellguard"
|
||||
PID_FILE="$CONFIG_DIR/webui.pid"
|
||||
|
||||
# Stop WebUI server
|
||||
if [ -f "$PID_FILE" ]; then
|
||||
kill $(cat "$PID_FILE") 2>/dev/null
|
||||
fi
|
||||
|
||||
# Release the kernel-enforced RAT lock before unloading so the modem
|
||||
# can return to user-selected preference instead of being stuck.
|
||||
if [ -c /dev/cellguard ]; then
|
||||
echo "release" > /dev/cellguard 2>/dev/null
|
||||
fi
|
||||
|
||||
# Unload kernel module
|
||||
lsmod 2>/dev/null | grep -q cellguard && rmmod cellguard 2>/dev/null
|
||||
|
||||
# Remove persistent config
|
||||
rm -rf "$CONFIG_DIR"
|
||||
Reference in New Issue
Block a user