Remove standalone stealth system, keep only driver spoof + boot timing
This commit is contained in:
@@ -29,8 +29,6 @@ CONFDIR="$MODDIR/config"
|
||||
LOGFILE="$MODDIR/driver-manager.log"
|
||||
|
||||
mlog() {
|
||||
STEALTH=$(cat "$CONFDIR/stealth_mode" 2>/dev/null || echo "off")
|
||||
[ "$STEALTH" = "full" ] && return
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') [boot_timing] $1" >> "$LOGFILE"
|
||||
}
|
||||
|
||||
@@ -103,12 +101,6 @@ apply_after_pi() {
|
||||
mlog "Driver spoofs applied"
|
||||
fi
|
||||
|
||||
# Apply stealth
|
||||
STEALTH_MODE=$(cat "$CONFDIR/stealth_mode" 2>/dev/null || echo "off")
|
||||
if [ "$STEALTH_MODE" != "off" ]; then
|
||||
mlog "Stealth mode active: $STEALTH_MODE"
|
||||
fi
|
||||
|
||||
# Set non-stock props that we held back during PI window
|
||||
# These are the props that root detectors look for
|
||||
resetprop input.gamepad.enabled true
|
||||
|
||||
@@ -29,8 +29,6 @@ STOCKDIR="$MODDIR/drivers/.stock_meta"
|
||||
mkdir -p "$DRIVERDIR" "$STOCKDIR"
|
||||
|
||||
mlog() {
|
||||
STEALTH=$(cat "$CONFDIR/stealth_mode" 2>/dev/null || echo "off")
|
||||
[ "$STEALTH" = "full" ] && return
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') [spoof] $1" >> "$LOGFILE"
|
||||
}
|
||||
|
||||
|
||||
@@ -12,33 +12,17 @@ LOGFILE="$MODDIR/driver-manager.log"
|
||||
PIDDIR="$MODDIR/run"
|
||||
STREAMDIR="$MODDIR/streams"
|
||||
|
||||
# Use stealth wrappers if available, otherwise Termux direct
|
||||
STEALTH_BIN=$(cat "$CONFDIR/stealth_bin_path" 2>/dev/null)
|
||||
if [ -n "$STEALTH_BIN" ] && [ -d "$STEALTH_BIN" ]; then
|
||||
TERMUX="$STEALTH_BIN"
|
||||
# Map stealth names back to real tool names for this script
|
||||
RTL_TCP="$STEALTH_BIN/mediastream"
|
||||
RTL_FM="$STEALTH_BIN/audioservice"
|
||||
RTL_ADSB="$STEALTH_BIN/locationd"
|
||||
RTL_POWER="$STEALTH_BIN/powermanager"
|
||||
HACKRF="$STEALTH_BIN/usb_mtp"
|
||||
else
|
||||
TERMUX="/data/data/com.termux/files/usr/bin"
|
||||
RTL_TCP="$TERMUX/rtl_tcp"
|
||||
RTL_FM="$TERMUX/rtl_fm"
|
||||
RTL_ADSB="$TERMUX/rtl_adsb"
|
||||
RTL_POWER="$TERMUX/rtl_power"
|
||||
HACKRF="$TERMUX/hackrf_transfer"
|
||||
fi
|
||||
TERMUX="/data/data/com.termux/files/usr/bin"
|
||||
RTL_TCP="$TERMUX/rtl_tcp"
|
||||
RTL_FM="$TERMUX/rtl_fm"
|
||||
RTL_ADSB="$TERMUX/rtl_adsb"
|
||||
RTL_POWER="$TERMUX/rtl_power"
|
||||
HACKRF="$TERMUX/hackrf_transfer"
|
||||
|
||||
mkdir -p "$PIDDIR" "$STREAMDIR"
|
||||
|
||||
# Stealth-aware logging — skip logcat in stealth mode
|
||||
STEALTH_MODE=$(cat "$CONFDIR/stealth_mode" 2>/dev/null || echo "off")
|
||||
mlog() {
|
||||
[ "$STEALTH_MODE" = "full" ] && return
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') [rtl_switch] $1" >> "$LOGFILE"
|
||||
[ "$STEALTH_MODE" = "off" ] && log -t DriverManager "$1" 2>/dev/null
|
||||
}
|
||||
|
||||
# Kill any running RTL process that holds the dongle
|
||||
@@ -61,11 +45,6 @@ kill_rtl() {
|
||||
pkill -f rtl_power 2>/dev/null
|
||||
pkill -f dvbt_rx 2>/dev/null
|
||||
pkill -f sdr_tv 2>/dev/null
|
||||
pkill -f mediastream 2>/dev/null
|
||||
pkill -f audioservice 2>/dev/null
|
||||
pkill -f locationd 2>/dev/null
|
||||
pkill -f powermanager 2>/dev/null
|
||||
pkill -f usb_mtp 2>/dev/null
|
||||
sleep 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user