fix(adb): preserve directory identities and share byte capture

Use Android 8-compatible batched find/stat with NUL-framed names and raw symlink targets. Preserve malformed or invalid UTF-8 records as partial evidence with exact source bytes. List hidden direct children without synthetic navigation entries.

Share process byte capture with UTF-8 callers and screenshots, removing duplicate timeout and cancellation supervision. Verified 35 focused process, ADB, CLI and MCP tests; compatibility checked against AOSP Oreo sources. Live Android device/emulator verification was not run.
This commit is contained in:
morluto
2026-10-12 13:06:51 +08:00
parent 3bcc68c037
commit 3bdc8730bd
10 changed files with 552 additions and 180 deletions
+3 -1
View File
@@ -149,7 +149,9 @@ export const adbInputSchemas = {
.string()
.min(1)
.regex(/^\/[^\x00]*$/u, "Device path must be absolute")
.describe("Absolute device directory path to list (ls -la)"),
.describe(
"Absolute device directory path to list, including hidden children",
),
}),
list_adb_features: z.strictObject({
serial: deviceSerialSchema.describe(