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>
This commit is contained in:
sssnake
2026-04-03 06:01:07 -07:00
parent 2c57618987
commit b88141a9c5
16 changed files with 2802 additions and 0 deletions

23
uninstall.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/system/bin/sh
# Driver Manager v2 - Uninstall Script
# Runs when module is removed via KernelSU
MODDIR=${0%/*}
# Kill running processes
for pidfile in "$MODDIR"/run/*.pid; do
[ -f "$pidfile" ] && kill $(cat "$pidfile") 2>/dev/null
done
# Unmount any active driver scopes
if [ -f "$MODDIR/scripts/scope_manager.sh" ]; then
sh "$MODDIR/scripts/scope_manager.sh" unmount_all 2>/dev/null
fi
# Unload managed kernel modules
if [ -f "$MODDIR/scripts/ko_manager.sh" ]; then
sh "$MODDIR/scripts/ko_manager.sh" unload_all 2>/dev/null
fi
# Config and data stay in /data/adb/modules/driver-manager/
# which KernelSU cleans up automatically