refactor: migrate to libsu root shell with unified exec interface
Replace custom persistent su process management (Mutex-guarded process, InputStream/OutputStreamReader) with libsu's Shell.cmd. RootShell.kt changes: - Remove: process lifecycle, mutex, stdin/stdout/stderr management, execBinary/execStreaming, sentinel health-check pattern - Add: libsu Shell.getShell()/Shell.cmd() with structured timeout, single public exec() method returning ShellResult - Keep: shellEscape() extension, ensureSession(), ShellResult data class Caller changes: - WifiManager.kt: add return-value checks for mkdir, chown, chmod; mark best-effort wifi reload as intentionally unchecked Supporting: - app/build.gradle: add libsu 6.0.0 dependency - AGENTS.md / CLAUDE.md: update GitNexus index stats
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!-- gitnexus:start -->
|
||||
# GitNexus — Code Intelligence
|
||||
|
||||
This project is indexed by GitNexus as **android-backup-gui** (933 symbols, 2388 relationships, 80 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
|
||||
This project is indexed by GitNexus as **android-backup-gui** (922 symbols, 2334 relationships, 79 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
|
||||
|
||||
> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user