codex icon indicating copy to clipboard operation
codex copied to clipboard

Remote Control blocks ChatGPT Android enrollment on official unrooted GrapheneOS

Open preyevates opened this issue 3 months ago • 33 comments

What version of Codex / ChatGPT is affected?

ChatGPT for Android 1.2026.216 (build 2621629)

Subscription

ChatGPT account with Remote Control available

Host

Codex Remote Control host enrollment succeeds and fresh QR/manual pairing codes are generated. The host receives no client claim when the Android failure occurs.

Summary

Codex Remote Control cannot enroll a controller from ChatGPT Android on GrapheneOS. The Android app rejects the request before it claims or contacts the waiting host.

This reproduces on both:

  • an unrooted Pixel 5 running an official GrapheneOS release, with sandboxed Google Play services and Play Store installed; and
  • a Pixel 8 Pro running GrapheneOS with a user-controlled AVB signing key.

The unrooted official GrapheneOS reproduction rules out root, Magisk, and custom signing as necessary causes.

Steps to reproduce

  1. Install ChatGPT from Google Play on an unrooted Pixel running an official GrapheneOS release.
  2. Install sandboxed Google Play services and Google Play Store.
  3. Sign into the same ChatGPT account used by the Remote Control host.
  4. Open Remote Control in ChatGPT Android.
  5. Scan a fresh QR code or enter a fresh manual pairing code.
  6. Observe:

Pairing failed. Something went wrong while pairing. Try scanning the code again.

The same result occurs with repeated fresh codes.

Android-side evidence

During the failed attempt, ChatGPT Android sends:

POST https://android.chat.openai.com/backend-api/codex/remote/control/client/enroll/start

The response is:

HTTP 403
{"cf_details":"Request is not allowed. Please try again later.","type":"dc"}

The application classifies it as a Cloudflare error.

The failure occurs at the initial controller enrollment request, before Android device-key creation, step-up authentication, pairing-code claim, or communication with the host. The waiting host receives no pairing claim.

The APK contains Play Integrity/device-check integration including the _playintegrity cookie and oai-android-play-integrity-token handling. GrapheneOS's Play Store reports the device as not certified even on the unrooted official installation.

This makes a Play Integrity or device-certification gate the strongest explanation. Please confirm the actual policy because the generic UI message currently hides it.

Why this is not an authentication failure

Both endpoints are already authenticated to the same ChatGPT account:

  • ChatGPT Android works normally.
  • Codex/Desktop works normally.
  • Remote Control host enrollment and pairing-code generation work.
  • The controller enrollment endpoint rejects the phone before the pairing protocol begins.

Google Play certification does not establish account authorization. It also rejects locked, verified and current alternative operating systems while accepting any OS licensed by Google.

Requested changes

  1. Confirm and document whether Android controller enrollment requires a Play Integrity verdict.
  2. Support standard Android hardware key attestation and permit official GrapheneOS verified-boot keys.
  3. Provide an account-bound fallback using explicit host approval plus password/OTP step-up.
  4. Return a specific diagnostic error for device-policy rejection instead of “Pairing failed.”
  5. Ensure the security property is possession of an enrolled non-exportable key, not Google certification of the operating system.

GrapheneOS publishes a signed, maintained verified-boot-key feed and implementation guidance:

https://grapheneos.org/articles/attestation-compatibility-guide

This permits verification of genuine hardware, verified boot, OS patch level, application identity and hardware-backed key possession without weakening the Remote Control security model or requiring Google Play certification.

Related issue

  • #37897 reports the same generic Android failure and absence of host-side activity, but attributes it to the Linux host. The evidence above shows the Android controller is rejected at client/enroll/start, before host type or the pairing code is evaluated.

I can provide sanitized Android telemetry privately if an OpenAI engineer needs the Cloudflare Ray IDs or full event sequence.

preyevates avatar Aug 12 '26 05:08 preyevates

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

  • #37897

Powered by Codex Action

github-actions[bot] avatar Aug 12 '26 05:08 github-actions[bot]

Reviewed #37897. This is related but not a duplicate.

#37897 reports the generic UI symptom against a Linux CLI host and infers that the failure is in Android or the pairing backend. This issue adds the missing root-cause boundary:

  • the Android controller receives HTTP 403 from client/enroll/start;
  • rejection occurs before the pairing code or host is contacted;
  • it reproduces on an unrooted Pixel 5 running an official GrapheneOS release;
  • it specifically requests review of the Play Integrity/device-certification policy and support for GrapheneOS hardware attestation.

Closing this as a duplicate would lose the device-policy reproduction and attestation request. I have cross-linked #38128 from #37897 so maintainers can correlate the shared user-visible symptom.

preyevates avatar Aug 12 '26 05:08 preyevates

Additional reproduction on Linux desktop + Android:

Environment:

  • ChatGPT Android 1.2026.216 (versionCode 2621629) on Android 16, device model PHK110.
  • ChatGPT desktop 26.803.81509-1 on Linux.
  • The desktop Connections setting allows remote control, and the phone and desktop use the same authenticated account.

Reproduction:

  1. Open desktop Settings > Connections > allow remote control and display the phone QR code.
  2. On Android, open Work > Remote, choose that I am logged in on desktop, then try both QR scanning and the manual phone pairing-code flow.
  3. Repeat with fresh QR/code values.

Result:

  • Both methods end in the Android UI: “Pairing failed. Something went wrong while pairing. Please scan the QR code again.”
  • The desktop remains at zero remote connections and receives no visible claim.
  • ChatGPT normal HTTPS access works after removing a controlled direct-route test; there is no TLS interception in the working proxy path.

Could maintainers check the response from the Android client enrollment endpoint for this device/account and whether the failure occurs before device-key creation or host claim, as described in this issue? No pairing codes, subscription URLs, or account tokens are included here.

LIghtJUNction avatar Aug 14 '26 16:08 LIghtJUNction

I’m independently affected by this exact issue.

Setup:

  • Codex running on Windows
  • ChatGPT Android app
  • Android device is not Google Play certified, and cannot be made Play certified
  • ChatGPT itself otherwise works normally

Behavior:

  1. Codex displays the Remote pairing QR code.
  2. My phone recognizes the QR code immediately.
  3. The ChatGPT app instantly shows: “Pairing failed. Something went wrong while pairing. Try scanning the code again.”
  4. The Windows PC shows no indication that any pairing attempt ever reached it.

So this does not appear to be a QR decoding, camera, local network, firewall, or Windows-side connectivity problem. The failure happens on the Android side before the Codex host is involved.

If the Android Remote enrollment flow currently requires Google Play certification / Play Integrity, please consider supporting a fallback for non-certified Android installations. An authenticated OpenAI-account flow with explicit desktop approval, 2FA, or another device-verification mechanism would be preferable to making Google certification a hard dependency.

At minimum, the app should return a specific error explaining that device certification or attestation caused the rejection. The current generic “Pairing failed” message makes the problem look like a broken QR code or networking issue and leads users down the wrong troubleshooting path.

I’d be happy to provide further device/app details if useful.

MicaLovesKPOP avatar Aug 28 '26 09:08 MicaLovesKPOP

ChatGPT Android app checks Play Integrity, if you have root without bypass then it won't pair.

Kadeluxe avatar Aug 30 '26 22:08 Kadeluxe

Resolved with official chatgpt desktop for linux. I emailed and they came through.

preyevates avatar Aug 30 '26 22:08 preyevates

Glad to hear you got it working. Is Remote Control actually working end-to-end for you now from GrapheneOS to the Linux desktop?

If so, could you share which ChatGPT Linux desktop version you’re using and what exact steps you took to get it working?

I’m on ChatGPT Desktop 26.810.52044 with Codex CLI 0.151.0, but pairing still consistently ends with Pairing failed on my Pixel 10 Pro XL running official, unrooted GrapheneOS 2026081301 / Android 17. ChatGPT Android is 1.2026.237 (2623716).

The Linux side looks healthy here: Remote Control is enrolled, the websocket reaches Connected, and fresh pairing codes are generated normally. During the failed Android attempt, though, I don’t see any Android Remote client or pairing claim reaching the host.

So I’m especially interested in whether you changed anything besides using the official Linux desktop app, or whether support did something on the backend/account side.

SohnyBohny avatar Sep 01 '26 09:09 SohnyBohny

I can reproduce essentially the same problem on LineageOS with microG.

My device only receives MEETS_BASIC_INTEGRITY. The ChatGPT Android app / Codex Remote therefore isn't a usable option for me, despite the phone otherwise being fully functional and authenticated.

This is particularly problematic for Codex Remote because there is currently no equivalent web/PWA interface. My development environment is Linux, and I already have remote access through Tailscale + RDP, but remotely controlling an entire desktop from a phone is substantially slower and clumsier than the native Codex Remote UI.

I'd strongly prefer one of these solutions:

  • Allow Codex Remote on alternative Android distributions without requiring Google-certified DEVICE/STRONG integrity.
  • Provide a secure fallback enrollment mechanism, e.g. explicit host approval + account authentication / hardware-backed key.
  • Alternatively, expose the Codex Remote interface through chatgpt.com as a responsive web/PWA UI.

A web version would also solve this more generally for Linux/mobile users without weakening Android device-attestation requirements.


root without bypass

@Kadeluxe Yes I have APatch, do you know if there is a way even with microG?

D3SOX avatar Sep 03 '26 07:09 D3SOX

@D3SOX honestly I don't know, I couldn't pair for months before it finally bothered me enough, we reverse engineered ChatGPT Android app in Codex itself, remote control endpoint was always returning this to ChatGPT Android app

"cf_details":"Request is not allowed. Please try again later.","type":"dc"

Then I realized I have a root and my Play Store wasn't certified. I use KernelSU and I installed these modules TrickyStore, TrickyAddon, YuriKey, PlayIntegrityFork. After that my device passed MEETS_DEVICE_INTEGRITY and finally ChatGPT Android app was able to pair.

So ChatGPT on Android 100% checks for integrity for some dumb reason so it's at least one of the possible reasons it fails to pair.

Kadeluxe avatar Sep 03 '26 10:09 Kadeluxe

Okay thanks for the additional info, will try that later but I have little hope that you can get MEETS_DEVICE_INTEGRITY with microG. I also don't understand why the app would need that level of integrity.

D3SOX avatar Sep 03 '26 10:09 D3SOX

Okay thanks for the additional info, will try that later but I have little hope that you can get MEETS_DEVICE_INTEGRITY with microG. I also don't understand why the app would need that level of integrity.

Yes, unfortunately it might be complicated with microG. I also don't know why it's needed there at all but I guarantee that it's integrity that fixed an issue for me. Again, not saying that it's what breaks it for you but it might be.

This is what Codex told me when we were investigating:

Yes—Play Integrity is the leading suspect, rather than legacy SafetyNet. Evidence from the APK:

  • It contains a PlayIntegrityService.
  • It calls /backend-api/playintegrity.
  • Authenticated requests add a _playintegrity cookie.
  • Remote Control has a separate hardware-backed device-security gate.
  • No explicit SafetyNet API/classes were found. Because our patched APK is re-signed with a debug certificate, Google Play Integrity may reject its app identity or return no usable token. The resulting pairing request then reaches the server and receives the generic 403 Request is not allowed.

Yes, an uncertified device could cause this. Google says an uncertified device may receive no MEETS_DEVICE_INTEGRITY verdict, and apps/features may not work correctly. Play Integrity verdicts, Google certification help. There are two separate checks here:

  1. Device certification: unlocked bootloader, modified ROM, root, or missing Google certification.
  2. App recognition: our patched APK is debug-signed, so Play Integrity can identify it as tampered/unrecognized even on a certified phone. Therefore the captured 403 could be caused by either—or both. It is more accurately Play Integrity than SafetyNet. Check on the phone: Play Store → profile icon → Settings → About → Play Protect certification The decisive test is to reinstall the official ChatGPT APK from Google Play and pair again:
  • Official works, patched fails → patched APK signature/integrity rejection.
  • Official also fails → device certification, account, or backend policy is likely.

Kadeluxe avatar Sep 04 '26 00:09 Kadeluxe

Device certification: unlocked bootloader, modified ROM, root

Didn't try it yet by I think I'm passing these ones already because other apps with checks for them work.

I'm using these modules rn

ResizedImage_2026-09-04_08-16-50_3999.png

ResizedImage_2026-09-04_08-18-03_9655.png

D3SOX avatar Sep 04 '26 06:09 D3SOX

I'm having the same issue

ctd26 avatar Sep 09 '26 07:09 ctd26

I can confirm this issue also affects me on a rooted/custom-ROM Android device. ChatGPT itself works normally, but Remote pairing fails immediately via both QR code and manual code.

If device certification / Play Integrity is intentionally being used as a safety check, please consider making it user-overridable rather than a hard block. Users of rooted or custom-ROM devices should not be categorically excluded from Remote access. An uncertified device is not necessarily an insecure or outdated device; custom-ROM users may deliberately maintain their devices and keep them up to date.

A better approach would be to show an explicit warning, for example:

“This device does not meet Android's standard device-integrity requirements and may carry a higher risk of account compromise. Do you want to continue pairing anyway?”

Then let the authenticated user explicitly accept that risk and proceed.

Strong warnings and informed consent seem preferable to permanently locking legitimate users out of the feature based solely on Android device certification.

Strgnoff avatar Sep 13 '26 09:09 Strgnoff

I can confirm this issue also affects me on a rooted/custom-ROM Android device. ChatGPT itself works normally, but Remote pairing fails immediately via both QR code and manual code.

If device certification / Play Integrity is intentionally being used as a safety check, please consider making it user-overridable rather than a hard block. Users of rooted or custom-ROM devices should not be categorically excluded from Remote access. An uncertified device is not necessarily an insecure or outdated device; custom-ROM users may deliberately maintain their devices and keep them up to date.

A better approach would be to show an explicit warning, for example:

“This device does not meet Android's standard device-integrity requirements and may carry a higher risk of account compromise. Do you want to continue pairing anyway?”

Then let the authenticated user explicitly accept that risk and proceed.

Strong warnings and informed consent seem preferable to permanently locking legitimate users out of the feature based solely on Android device certification.

I doubt they would do that, though I don't know exactly how heavily the app's remote functionality relies on Google Integrity Check. I suspect there is a complex authentication relationship between the ChatGPT app and Google Play Services, and OpenAI has no incentive to take on the risks associated with bypassing Google Play Services for such operations.

Waste2Time avatar Sep 13 '26 09:09 Waste2Time

Perhaps, but I'm sure they could manage. Nothing is impossible. And OpenAI is not taking any additional risk from broadening device enablement. The risk of operating any OpenAI/ChatGPT account is on the user, no matter which OS or device the user is using.

Strgnoff avatar Sep 13 '26 15:09 Strgnoff

I also noticed that existing remote connections stop working if devices stop meeting integrity checks. This is bad, I don't see why they would need to enforce that for remote control. We already authenticate using our accounts and 2FA.

Kadeluxe avatar Sep 14 '26 13:09 Kadeluxe

I found a workaround for rooted devices with a custom ROM. I tested it on a Pixel 8 Pro running LineageOS for microG on Android 16.

I replaced microG's FakeStore with the official Google Play Store, installed as the privileged com.android.vending app. After that, the device reported these states:

PLAY_RECOGNIZED
MEETS_BASIC_INTEGRITY
MEETS_DEVICE_INTEGRITY
LICENSED

Once it did, the ChatGPT Android features that had been blocked started working. I didn't change my OpenAI account or how I sign in.

I also tested Remote Control. I paired an external PC from the ChatGPT Android app, and the remote connection worked end to end.

To keep the workaround steps out of this issue, I put the full setup in a separate repository: https://github.com/D3SOX/microg-play-store-workarounds

This only helps people who have root and a custom ROM. It does nothing for official, unrooted alternative Android systems like GrapheneOS. For them, the requirement for this Play Integrity and device recognition state is still the problem.

D3SOX avatar Sep 16 '26 17:09 D3SOX

Additional reproduction with a different device profile that may help narrow the policy boundary.

Device / app

  • Huawei HBN-AL00 (Pura 70 Pro China variant), Android 12
  • ChatGPT Android 1.2026.272
  • Physical device, not rooted
  • Bootloader: locked
  • Verified Boot: green
  • dm-verity: enforcing
  • SELinux: Enforcing
  • ChatGPT itself otherwise works normally

Current Google integrity state

  • Google Play Store's built-in Play Integrity developer check returns only:
    • MEETS_BASIC_INTEGRITY
  • MEETS_DEVICE_INTEGRITY is absent
  • Play Store → Settings → About → Play Protect certification says Device not certified
  • No microG / GBox / GSpace is installed; the device has com.google.android.gms, com.android.vending, and com.google.android.gsf

Remote Control failure When attempting Codex/ChatGPT Remote enrollment, the browser opens auth.openai.com and fails with:

preauth_cookie_device_check_failed

One visible request ID from the failure page is:

8bd1bbbe-4e94-414c-b18d-2b155a5061dd

I also captured the Android flow with ADB. Immediately before the web-auth activity, ChatGPT binds the Play Store service:

com.google.android.play.core.expressintegrityservice.BIND_EXPRESS_INTEGRITY_SERVICE
com.google.android.play.core.integrity.protocol.IExpressIntegrityService

In the reproduced attempt there were two such binds, followed ~0.4 s later by ChatGPT's WebAuthenticationActivity / Chrome Custom Tab. A sanitized view of the auth intent already contained preauth_cookie_failed=service 403 before the error page rendered.

Static inspection of the installed 1.2026.272 APK also shows:

  • Play Integrity client 1.6.0
  • StandardIntegrityTokenRequest{requestHash=...
  • PrepareIntegrityTokenRequest{cloudProjectNumber=...
  • PlayIntegrityTokenGenerator/prepareProvider
  • /backend-api/playintegrity
  • play_integrity_token
  • play_integrity_cookie
  • preauth_cookie_failed

So this looks like a server-side rejection of the Play Integrity/device pre-auth result rather than a QR, browser, LAN, or host connectivity problem.

This reproduction is useful because the phone is not rooted and does not have an unlocked bootloader. The common factor with the other reports appears to be device certification / the absence of a DEVICE verdict, not root by itself.

I have previously observed this same phone return a device-integrity pass once, but I do not currently have an archived verdict from that earlier state; the current official Play Store check consistently returns BASIC only.

If this gate is intentional, an explicit diagnostic and a user-approved fallback/step-up path would be much better than the generic pairing/auth error.

UnlastingR avatar Oct 04 '26 14:10 UnlastingR

Same root cause, different device class — Huawei/HarmonyOS devices can never pass enrollment, and it's not a security issue

Adding a data point from a non-rooted Huawei HarmonyOS 6 device (Pura X Max), which I believe complements the GrapheneOS reports.

Environment

Host: Windows 11, ChatGPT/Codex desktop app (latest), remote_control = true, remote-control WebSocket reaches Connected, QR code generates normally. Controller: Huawei Pura X Max, HarmonyOS 6, ChatGPT for Android (latest) — Android compatibility mode. Physical device, not rooted, bootloader locked (Huawei retail units cannot be rooted at all), MEETS_BASIC_INTEGRITY is not obtainable because there is no certified GMS stack. Behavior — identical to the reports above: the desktop host is healthy and generates pairing codes, but the Android app rejects the enrollment before it ever contacts the host. No request reaches the Windows host at all.

The decisive evidence is the A/B comparison in #42026:

Device Google Play certification Verdict Result
Huawei Mate20 Pro (2018, pre-ban) Play Protect: certified MEETS_STRONG_INTEGRITY ✅ pairs
Huawei Mate40 Pro (HarmonyOS) not certified no MEETS_DEVICE_INTEGRITY ❌ rejected

Same host, same account, same network. The only variable is whether the device model is in Google's certification allowlist — which is a server-side, hardware-key-backed verdict. It cannot be influenced from the client, and on Huawei retail devices it cannot be bypassed either: bootloader is locked, so Play Integrity Fix / TrickyStore (which require root) are not available; container solutions (GBox/microG) cannot forge a server-side attestation.

Request. Please consider one of the following:

Lower the remote-control enrollment requirement from MEETS_STRONG_INTEGRITY to MEETS_BASIC_INTEGRITY. The authorization subject here is the account, which is already authenticated and MFA-protected — the hardware attestation adds no meaningful protection for "control my own desktop from my own phone". Or make the check user-overridable with an explicit warning, as suggested earlier in this thread. As it stands, every uncertified-but-legitimate device (Huawei/HarmonyOS post-2019, GrapheneOS, many custom-ROM users) is categorically excluded from Remote Control, with no workaround available. That is a much larger user group than the "rooted device" framing suggests.

warmc avatar Oct 08 '26 07:10 warmc