Vietnamgiauphan/google-qr-sms
Chrome Extension (MV3) to downgrade Google cross-device QR code verification back to 6-digit SMS verification.
Featured achievements
The project's latest awards
#1 Repository of the day
#1 Repository of the day
#2 Repository of the day
Google QR SMS Helper (google-qr-sms)
Switch Google's mandatory cross-device QR verification (Constellation / MO-SMS) back to standard 6-digit SMS / Voice verification on desktop browsers.
📖 Background
When verifying or upgrading a Google account on desktop browsers, Google increasingly enforces /v3/signin/challenge/iap/qrcode (DevicePhoneVerificationUi), requiring a mobile phone scan to trigger:
- Android GMS Constellation (
PhoneIdentityJsBridge.verifyPhoneNumber) — hardware/SIM-bound silent carrier SMS verification. - Mobile-Originated SMS (MO-SMS) — sending an outbound international SMS to Google's gateway.
If you work in an environment without an active Android GMS device or international outbound SMS capability, google-qr-sms automates the cross-device fallback protocol (idv_xdevice=1 + non-Android GetVerificationStatus status [3, null, 4]) and maintains a consistent iPad Mini (iPadOS) header/navigator profile across the entire uplevelingstep and batchexecute verification lifecycle.
✨ Architecture & Workflow
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 "⚡ Downgrade to SMS Verification"
E->>E: Decode QR Canvas/Image via native BarcodeDetector
E->>B: Send QR URL + page token (TL)
B->>G: POST MypxBd (SelectNextVerificationMethod -> consent)
B->>G: GET /devicephoneverification/consent (extract session 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
Key Technical Details
- Cloud Shell Entrypoint (
console.cloud.google.com): Triggering verification from Google Cloud Console's Cloud Shell ([>_]) ->Verifygenerates a cleanuplevelingstep/selection?TL=...&authuser=0&flowName=GlifWebSignIn&sarp=1&scc=1continuation token without nested third-party OAuth redirects. - Native QR Extraction (
BarcodeDetector): Extracts thedevicephoneverification/beginURL directly from the DOM<img>/<canvas>element in milliseconds without external dependencies or screenshots. - Scoped
iPad MiniHeader Consistency: Uses Chrome'sdeclarativeNetRequestto enforce theiPad MiniUser-Agent (CPU OS 16_6 like Mac OS X ... Mobile/15E148) and strip desktop Client Hints (Sec-CH-UA*) strictly on/uplevelingstep/*,/_/IdvUplevelingUi/*, and/_/AalUplevelingUi/*(plusiPhoneUA on/devicephoneverification/*), leaving normal/v3/signin/*login routes untouched.
🚀 Installation
Option 1: Load Unpacked Extension
- Clone this repository or download the latest ZIP from Releases:
git clone https://github.com/giauphan/google-qr-sms.git - Open Chrome and navigate to
chrome://extensions/. - Enable Developer mode in the top-right corner.
- Click Load unpacked in the top-left corner and select this folder (or
dist/unpacked).
🛠️ Usage
- Step 1 — Open Cloud Console: Log in to your Google account and visit https://console.cloud.google.com/.
- Step 2 — Trigger Cloud Shell Verification:
Click the Activate Cloud Shell (
[>_]) icon in the top-right navigation bar (or click the extension's floating button1. Open Cloud Shell Terminal), then clickVerifyin the modal dialog. - Step 3 — One-Click Downgrade:
On the QR code verification page (
/v3/signin/challenge/iap/qrcode), click the floating button⚡ Downgrade to SMS Verificationin the bottom-right corner. - Step 4 — Receive 6-Digit SMS Code:
The page automatically transitions to the
uplevelingstep/selectionscreen. Select Verify your phone number (SMS), enter your phone number, and submit the 6-digitG-xxxxxxverification code.
📁 Project Structure (Clean Architecture)
google-qr-sms/
├── src/
│ ├── domain/ # Enterprise business rules & constants
│ │ └── constants.js # UA profiles, RPC identifiers, regex patterns
│ ├── application/ # Use cases & workflow orchestration
│ │ └── downgradeQrUseCase.js
│ ├── infrastructure/ # External services & Chrome API adapters
│ │ ├── dnrService.js # DeclarativeNetRequest rules & client hints
│ │ └── googleIdentityClient.js # Batchexecute RPC client & token parser
│ ├── background/ # Service worker entry point
│ │ └── index.js
│ ├── content/ # Content script UI & QR detector
│ │ └── index.js
│ └── inject/ # Main-world scripts
│ └── uaSpoof.js # Navigator profile spoof
├── scripts/
│ └── build.mjs # Release packaging & syntax validation script
├── manifest.json # Chrome Extension Manifest V3
├── package.json
├── LICENSE
└── README.md
🔨 Build
To validate all JavaScript files and package the distribution:
node scripts/build.mjs
Artifacts will be generated in dist/:
dist/unpacked/: Extension folder ready for Chrome Developer Modedist/google-qr-sms-v1.0.2.zip: Release archive ready for upload
📄 License
Released under the MIT License.
Similar Projects
Discover other similar projects and AI models.
Chrome Extension (MV3) to switch Google's mandatory QR code verification back to standard 6-digit SMS verification via iPad Mini profile & [3,null,4] RPC fallback.
Reverse engineer anything with agents, from app behavior down to native binaries.
📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core