Skip to content

Windows: ADB blocked under Full access, but succeeds with explicit approval #49355

Open

Description

@InterfazHombreMaquina

In Codex desktop 26.928.1915.0, using native Windows and PowerShell, the exact same ADB command produces different results depending on the permission mode:

  • Full access (approval_policy=never): rejected before the process starts, with rejected: blocked by policy.
  • Ask for approval (approval_policy=on-request): after explicitly approving execution outside the sandbox, the command exits with code 0 and Android receives the intent.
  • Switching back to Full access: the same command is blocked again.
    The device is connected and authorized, and adb devices -l works. Reinstalling Codex did not resolve the issue.
    Please investigate this difference between execution modes and identify the policy responsible for the rejection. The error does not specify the matching rule or explain why the command is blocked.

The command:
adb -s DEVICE_SERIAL shell am start -n com.example.agent/.MainActivity -a com.example.agent.CONFIGURE_AND_SYNC --es baseUrl http://192.0.2.10:8085 --es username example_user --es deviceId example_device --es label Example_Device

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Sep 29, 2026
  2. github-actions commented on Sep 29, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. InterfazHombreMaquina commented on Sep 30, 2026

    @InterfazHombreMaquina
    Author

    Any help?

  4. saperm244-art commented on Oct 14, 2026

    @saperm244-art

    Additional observation on Windows / Codex Desktop 26.1007.9446.0 (14 October 2026). Please clarify the supported diagnostic and approval path; we are not requesting that security safeguards be bypassed.

    An owner-authorized physical Android phone was successfully paired via wireless ADB. adb devices -l reports device, including after a Windows restart. However, a tool request containing adb shell getprop ro.product.model followed by adb shell am start -a android.intent.action.VIEW -d <public Instagram profile URL> com.instagram.android was rejected before process execution with CreateProcess ... Rejected ... blocked by policy. A subsequent codex execpolicy check invocation containing the Android command was also rejected before execution, so no rule-evaluation result was available.

    Read-only local checks:

    • User and project configurations specify approval_policy = "never" and sandbox_mode = "danger-full-access".
    • The inspected exec-policy load log identifies only the user rules/default.rules; that file contains 139 allow rules and no prompt/forbidden rules.
    • The original failure is logged by codex_core::tools::router at 2026-10-14 09:42:51 UTC, without a matching policy identifier or specific reason.
    • Device discovery and pairing succeed. We have not established that all Android commands are forbidden, nor established the underlying policy cause.

    Could a maintainer clarify (1) which review/policy layer emits this generic denial, (2) where its reason can be inspected, and (3) whether changing to a user-confirmed approval mode is a supported resolution for this case? No blocked command was rerouted through a wrapper or alternative executor. No permission files were changed. Private logs, account identifiers, phone serials, network addresses and pairing credentials are intentionally omitted.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions