Files
driver-manager/post-fs-data.sh
sssnake b88141a9c5 Driver Manager v2.0.0 - LSPosed-style rewrite
Complete rewrite with:
- Per-app driver scoping via mount namespace isolation (LSPosed-style)
- System-wide driver mode selection
- .ko kernel module manager with autoload and dependency tracking
- Driver integrity protection (monitor/enforce modes)
- Driver registry with auto-discovery and SHA256 hashing
- LSPosed-style dark WebUI with 6 tabs: Dashboard, Drivers, Apps, Modules, Protection, Logs
- RESTful API handler for WebUI communication
- Zygote process monitor for auto-applying scopes to new app launches

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 06:01:07 -07:00

26 lines
840 B
Bash

#!/system/bin/sh
# Driver Manager v2 - Early Boot Script
# Runs before most system services start
# Keep minimal to avoid boot delays
MODDIR=${0%/*}
LOGFILE="$MODDIR/logs/boot.log"
echo "[$(date)] post-fs-data: starting" > "$LOGFILE"
# Load any kernel modules marked for early loading
if [ -f "$MODDIR/config/autoload.conf" ]; then
while IFS= read -r mod; do
[ -z "$mod" ] && continue
[ "${mod#\#}" != "$mod" ] && continue
MODFILE="$MODDIR/modules/$mod"
if [ -f "$MODFILE" ]; then
insmod "$MODFILE" 2>> "$LOGFILE" && \
echo "[$(date)] Loaded early module: $mod" >> "$LOGFILE" || \
echo "[$(date)] FAILED to load early module: $mod" >> "$LOGFILE"
fi
done < "$MODDIR/config/autoload.conf"
fi
echo "[$(date)] post-fs-data: complete" >> "$LOGFILE"