Skip to content

feat(computer): a driver may run beside the device it drives, over adb on Android (FD-6950) - #922

Draft
michaelzheng67 wants to merge 1 commit into
mainfrom
feat/computer-driver-read-files
Draft

michaelzheng67 wants to merge 1 commit into
mainfrom
feat/computer-driver-read-files

Conversation

@michaelzheng67

@michaelzheng67 michaelzheng67 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

this patch looks to provide initial support for an android environment by 1. allowing for drivers to run beside the device as android driver will reach its device emulator through adb and 2. allow for read / write of files on android through adb commands

note: since we don't run in-device, things such as probes are replaced with ops through the dataplane instead of python logic, etc

How it was tested

unit tests pass, adb commands confirmed with emulator run

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge based on the reviewed changes.

Summary

Adds initial support for drivers running beside Android devices.

  • Android drivers can run beside devices and send commands through adb.
  • Android drivers can move files between the device and the driver.
  • Android conformance checks verify beside-device files without device-side Python.

The previous finding about adb startup messages is fixed. No new actionable issues were established.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Caller --> Driver
  Driver -->|commands and device files| adb
  adb --> Android
  Driver -->|recordings| Home[Driver's home]
  Android --> Export[data/get]
  Home --> Export
  Export --> Result[Inline files or shared upload grant]
Loading

Reviews (8) · Last reviewed commit: "feat(computer): a driver may run beside ..." · Reviewed by Greptile

@michaelzheng67

Copy link
Copy Markdown
Collaborator Author

@greptileai

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Comments Outside Diff

These findings could not be posted inline.

  • P1 Failed exports look successful packages/agentenv-protocol/src/agentenv_protocol/computer/_android.py:63 ▶

    read_files treats every failed adb shell test -e as a missing path. If the device is offline or the connection fails, data/get can report success with no files, or omit part of an export. Distinguish a missing path from an adb failure and raise an error for the latter.

  • P1 Command output can exhaust memory packages/agentenv-protocol/src/agentenv_protocol/computer/_android.py:37 ▶

    run_in_session reads all command output into memory before applying output_bytes. A command such as cat on a large file, or a noisy long-running command, can exhaust the driver's memory despite the advertised output cap. Drain both streams while keeping only the capped bytes, as _linux.run_in_session does.

@michaelzheng67
michaelzheng67 force-pushed the feat/computer-driver-read-files branch from faa769a to a4bd660 Compare November 25, 2026 16:15
@michaelzheng67

Copy link
Copy Markdown
Collaborator Author

@greptileai

@michaelzheng67
michaelzheng67 force-pushed the feat/computer-driver-read-files branch from a4bd660 to d7e5caa Compare November 25, 2026 16:23
@michaelzheng67

Copy link
Copy Markdown
Collaborator Author

@greptileai

@michaelzheng67
michaelzheng67 force-pushed the feat/computer-driver-read-files branch from d7e5caa to ca6bdcc Compare November 25, 2026 16:38
@michaelzheng67

Copy link
Copy Markdown
Collaborator Author

@greptileai

@michaelzheng67
michaelzheng67 force-pushed the feat/computer-driver-read-files branch from ca6bdcc to 2b4ed92 Compare November 25, 2026 16:52
@michaelzheng67

Copy link
Copy Markdown
Collaborator Author

@greptileai

@michaelzheng67
michaelzheng67 force-pushed the feat/computer-driver-read-files branch from 2b4ed92 to 0c9b49b Compare November 25, 2026 17:15
@michaelzheng67

Copy link
Copy Markdown
Collaborator Author

@greptileai

@michaelzheng67
michaelzheng67 force-pushed the feat/computer-driver-read-files branch from 0c9b49b to fd77c0a Compare November 25, 2026 17:25
@michaelzheng67

Copy link
Copy Markdown
Collaborator Author

@greptileai

@michaelzheng67
michaelzheng67 force-pushed the feat/computer-driver-read-files branch from fd77c0a to 979ec89 Compare November 25, 2026 18:24
@michaelzheng67

Copy link
Copy Markdown
Collaborator Author

@greptileai

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant