将 Google 桌面端强制跨设备扫码验证(MO-SMS / GMS Constellation)一键降级回传统的「输入手机号接收 6 位短信验证码」流程。
Switch Google's mandatory cross-device QR verification back to standard 6-digit SMS / Voice verification on desktop browsers.
- 前往本仓库的 Releases 页面,下载最新的
google-qr-sms-helper-v1.1.0.zip并解压到本地文件夹。 - 打开 Chrome / Edge / Brave 浏览器,在地址栏输入
chrome://extensions/并回车。 - 打开页面右上角的 「开发者模式 (Developer mode)」 开关。
- 点击左上角的 「加载已解压的扩展程序 (Load unpacked)」,选中刚才解压出来的文件夹即可完成安装。
git clone https://github.com/havenicec/google-qr-sms-helper.git然后在 chrome://extensions/ 中开启「开发者模式」,点击「加载已解压的扩展程序」并选择 google-qr-sms-helper 目录。
Important
核心前提(必看):不要直接从第三方客户端(如 Antigravity / Gemini Code Assist 授权页)弹出的二维码页面降级(因为其 continue 参数包含多层嵌套重定向,会被 Google 重新拦截回二维码)。
必须先打开 Google Cloud Console 通过 Cloud Shell 唤出原生的 Verify 窗口!在这里过完一次短信验证后,你的 Google 账号权限将全局解锁,再回 Antigravity 等工具登录即可直接丝滑通过。
- 在浏览器中登录你需要验证的 Google 账号,访问 https://console.cloud.google.com/。
- 如下图所示,点击页面右上角导航栏的 「激活 Cloud Shell」终端图标
[>_](或者直接点击页面右下角插件悬浮窗里的1. 自动点击 Cloud Shell 终端图标按钮)。 - 在底部弹出的
Verify your account窗口中,点击蓝色的Verify按钮:
- 点击
Verify后,会弹出 Google 的二维码验证页面(/v3/signin/challenge/iap/qrcode)。 - 等待二维码图片加载出来后,点击页面右下角插件悬浮面板上的 「⚡ 一键降级到短信选择框」 按钮:
- 插件会自动调用浏览器原生
BarcodeDetector识别页面上的二维码; - 自动在后台向 Google 发送
MypxBd与YDtwf ([null, uuid, dsh, 7, null, tl, false])数据包,拿到[3, null, 4](非 Android 设备回退短信验证状态); - 自动将当前标签页的请求头与环境伪装为
iPad Mini(无需手动按 F12 切换设备),并重定向到uplevelingstep/selection?...&idv_xdevice=1。
- 插件会自动调用浏览器原生
- 页面会自动跳转进带有单选框的 验证方式选择页 (
/uplevelingstep/selection):- 勾选 Text message (SMS) / 短信(或语音通话),点击下一步。
- 在手机号输入框中填入你的接码手机号(支持任意国家/地区的接码平台号码或实体卡号),点击发送验证码。
- 收到
G-xxxxxx的 6 位数字验证码后填入并点击 Next,即可完成账号验证! - 验证通过后,回到 Cloud Shell 或 Antigravity / Gemini CLI 刷新即可正常使用。
- 原因:只有从
https://console.cloud.google.com/点击右上角 Cloud Shell[>_]->Verify唤出的二维码页,其continue参数才是纯净的https://accounts.google.com/uplevelingstep/selection?TL=...&authuser=0&flowName=GlifWebSignIn&sarp=1&scc=1。请务必按「第 1 步」从 Cloud Shell 入口进入。
- 原因:Google 的
uplevelingstep/selection接口会校验User-Agent:- 桌面端(Windows / macOS)以及 Chrome F12 中的
iPad Pro 13发送的都是Macintosh; Intel Mac OS X桌面级 UA,Google 检测到桌面环境会无视idv_xdevice=1强行跳回二维码。 - 而
iPad Mini发送的是纯移动端iPad; CPU OS 16_6 like Mac OS X ... Mobile/15E148请求头,且在提交 6 位验证码的/_/IdvUplevelingUi/data/batchexecute接口上必须保持前后完全一致的iPad Mini请求头(已在 v1.1.0 中通过declarativeNetRequest全路径自动覆盖,无需手动开 F12)。
- 桌面端(Windows / macOS)以及 Chrome F12 中的
- 请确认使用的是 Chrome / Edge 88+ 浏览器(支持原生
BarcodeDetector接口),并等待页面上的黑色二维码图案完全显示后再点击按钮。
sequenceDiagram
participant U as Desktop Browser (User)
participant E as Extension (Content + DNR)
participant B as Background Service Worker
participant G as Google Identity Backend
U->>G: 1. Trigger Verify from Cloud Console (Cloud Shell)
G-->>U: Render /v3/signin/challenge/iap/qrcode
U->>E: 2. Click "⚡ 一键降级到短信选择框"
E->>E: Decode QR Canvas/Image via native BarcodeDetector
E->>B: Send QR URL (devicephoneverification/begin)
B->>G: POST MypxBd (SelectNextVerificationMethod -> consent)
B->>G: GET /devicephoneverification/consent (extract request UUID)
B->>G: POST YDtwf [null, uuid, dsh, 7, null, tl, false]
G-->>B: Return ["wrb.fr", "YDtwf", "[3, null, 4]"] (Non-Android Fallback)
B-->>E: Fallback state locked
E->>G: Redirect to uplevelingstep/selection?...&idv_xdevice=1 (with iPad Mini UA)
G-->>U: Render SMS / Voice Radio Selection & 6-Digit Code Input
google-qr-sms-helper/
├── assets/
│ └── cloud-shell-verify.png # Cloud Shell Verify 入口示意图
├── manifest.json # Chrome Extension Manifest V3 配置文件
├── background.js # DNR 全路径 iPad Mini 请求头伪装 + [3,null,4] RPC 注入
├── content.js # 悬浮控制面板 + BarcodeDetector 二维码识别 + URL 清洗跳转
├── ua_spoof.js # Main-world navigator 属性对齐
├── LICENSE # MIT 开源协议
└── README.md # 项目说明与图文教程
Released under the MIT License.
