RepositoryJavaScriptVNViệt Nam
giauphan

giauphan/google-qr-sms

Chrome Extension (MV3) to downgrade Google cross-device QR code verification back to 6-digit SMS verification.

121sao
18fork
7issue
20lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: clean-architecture

#1 Repository của ngày

1
TINIX TRENDING·Chủ đề: google-verification

#1 Repository của ngày

2
TINIX TRENDING·Chủ đề: sms-verification

#2 Repository của ngày

Google QR SMS Helper (google-qr-sms)

Manifest V3 Version 1.0.2 MIT License Platform

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:

  1. Android GMS Constellation (PhoneIdentityJsBridge.verifyPhoneNumber) — hardware/SIM-bound silent carrier SMS verification.
  2. 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

  1. Cloud Shell Entrypoint (console.cloud.google.com): Triggering verification from Google Cloud Console's Cloud Shell ([>_]) -> Verify generates a clean uplevelingstep/selection?TL=...&authuser=0&flowName=GlifWebSignIn&sarp=1&scc=1 continuation token without nested third-party OAuth redirects.
  2. Native QR Extraction (BarcodeDetector): Extracts the devicephoneverification/begin URL directly from the DOM <img> / <canvas> element in milliseconds without external dependencies or screenshots.
  3. Scoped iPad Mini Header Consistency: Uses Chrome's declarativeNetRequest to enforce the iPad Mini User-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/* (plus iPhone UA on /devicephoneverification/*), leaving normal /v3/signin/* login routes untouched.

🚀 Installation

Option 1: Load Unpacked Extension

  1. Clone this repository or download the latest ZIP from Releases:
    git clone https://github.com/giauphan/google-qr-sms.git
    
  2. Open Chrome and navigate to chrome://extensions/.
  3. Enable Developer mode in the top-right corner.
  4. Click Load unpacked in the top-left corner and select this folder (or dist/unpacked).

🛠️ Usage

  1. Step 1 — Open Cloud Console: Log in to your Google account and visit https://console.cloud.google.com/.
  2. Step 2 — Trigger Cloud Shell Verification: Click the Activate Cloud Shell ([>_]) icon in the top-right navigation bar (or click the extension's floating button 1. Open Cloud Shell Terminal), then click Verify in the modal dialog.
  3. Step 3 — One-Click Downgrade: On the QR code verification page (/v3/signin/challenge/iap/qrcode), click the floating button ⚡ Downgrade to SMS Verification in the bottom-right corner.
  4. Step 4 — Receive 6-Digit SMS Code: The page automatically transitions to the uplevelingstep/selection screen. Select Verify your phone number (SMS), enter your phone number, and submit the 6-digit G-xxxxxx verification 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 Mode
  • dist/google-qr-sms-v1.0.2.zip: Release archive ready for upload

📄 License

Released under the MIT License.

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJavaScript
havenicec/google-qr-sms-helper

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.

9.5k
Oct 28, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

488.2k
Dec 3, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Oct 31, 2026
RepositoryJavaScript
react/react

The library for web and native user interfaces.

253.0k
Nov 30, 2026
RepositoryJavaScript
trekhleb/javascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

196.8k
Jul 26, 2026
RepositoryJavaScript
airbnb/javascript

JavaScript Style Guide

148.0k
Apr 16, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026
RepositoryTypeScript
vuejs/vue

This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

212.6k
Oct 10, 2024