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:
@@ -174,7 +174,7 @@ export const ADB_TOOL_CONTRACTS = [
|
||||
name: "list_adb_directory",
|
||||
...toolContractMetadata("list_adb_directory"),
|
||||
description:
|
||||
"List one absolute device directory (`ls -la`): names, kinds, permissions, owner, group, sizes, dates, and symlink targets. Recognizes the standard errors for absent paths and denied reads. Read-only.",
|
||||
"List the immediate children of one absolute device directory, including hidden entries: names, kinds, permissions, owner, group, sizes, dates, and symlink targets. Names and targets preserve embedded newlines. Recognizes the standard errors for absent paths and denied reads. Read-only.",
|
||||
kind: "adb-provider",
|
||||
inputSchema: adbInputSchemas.list_adb_directory,
|
||||
outputSchema: evidenceResultOf(adbResultSchemas.list_adb_directory),
|
||||
|
||||
Reference in New Issue
Block a user