#  This script is available in both Chinese and English

#  Just a heads up This is for technical discussion and sharing only Please do not participate in this promotion Google has already stepped in

#  提醒大家下，这只是技术交流与分享，请勿参加低价活动，Google 官方已跟进！

# Google AI Trial Tool

通过 Frida 注入 Google One 进程调用 BillingClient API，发现并激活隐藏的 $0 免费试用。

## 前提条件

| 组件 | 说明 |
|---|---|
| **MuMu 模拟器** | 已启动，已登录 Google 账号，已绑定付款方式 |
| **adb** | 在 PATH 中，或设置 `ADB_PATH` 环境变量 |
| **frida** (host) | `pip install frida-tools`，版本 ≥ 16 |
| **frida-server** (device) | 推送到设备 `/data/local/tmp/frida-server` 并赋予执行权限 |
| **module.apk** (device) | 包含 BillingClient 库的 APK，推送到 `/data/local/tmp/module.apk` |
| **Google One** | 设备上已安装 (`com.google.android.apps.subscriptions.red`) |

## 设备准备

```bash
# 连接 MuMu
adb connect 127.0.0.1:16384

# 推送 frida-server（从 https://github.com/frida/frida/releases 下载对应架构）
adb push frida-server /data/local/tmp/frida-server
adb shell "chmod 755 /data/local/tmp/frida-server"

# 推送 module.apk（包含 com.android.billingclient 的 APK）
adb push module.apk /data/local/tmp/module.apk
```

## 用法

```bash
# 列出当前账号所有可用试用
./auto-trial.sh --list

# 激活 Pro (5TB, $19.99/mo) 3个月免费试用
./auto-trial.sh --product pro --dur 3mo

# 激活 Pro variant (5TB, $19.99/mo) 12个月免费试用 ★推荐
./auto-trial.sh --product pro12 --dur 12mo

# 激活 Ultra 20x (30TB, $199.99/mo) 12个月免费试用
./auto-trial.sh --product 20x --dur 12mo

# 激活 Ultra 5x (20TB, $99.99/mo) 6个月免费试用
./auto-trial.sh --product 5x --dur 6mo

# 自动选最长试用（默认最高档）
./auto-trial.sh

# 指定 MuMu ADB 端口
./auto-trial.sh --port 16416 --product pro --dur 3mo
```

### 参数

| 参数 | 说明 | 默认值 |
|---|---|---|
| `--list` | 只列出试用，不激活 | (激活模式) |
| `--product` | `pro` / `pro12` / `5x` / `20x` / `auto` / `g1.*` 完整 ID | `auto` |
| `--dur` | `1mo` / `3mo` / `6mo` / `12mo` / `longest` | `longest` |
| `--port` | MuMu ADB 端口 | 自动扫描 |
| `--adb` | adb 路径 | 自动检测 |

### 环境变量

| 变量 | 说明 |
|---|---|
| `ADB_PATH` | adb 可执行文件路径 |
| `FRIDA_SCRIPT` | frida-auto-trial.js 路径（默认同目录） |
| `FRIDA_SERVER_PATH` | 设备上 frida-server 路径（默认 `/data/local/tmp/frida-server`） |
| `MODULE_APK_DEVICE` | 设备上 module.apk 路径（默认 `/data/local/tmp/module.apk`） |

## 产品 ID 对照

| 别名 | 产品 ID | 容量 | 月费 | 试用 |
|---|---|---|---|---|
| **pro12** ★ | `g1.2tb.ai.subs_variant` | 5TB | $19.99 | 6/12 月 |
| **pro** | `g1.play.2tb.ai` | 5TB | $19.99 | 3 月 |
| **5x** | `g1.play.20tb` | 20TB | $99.99 | 1/3/6/12 月 |
| **20x** | `g1.play.ai.pro` | 30TB | $199.99 | 1/3/6/12 月 |
| — | `g1.2tb.ai` | 5TB | $19.99 | 无 |
| — | `g1.ai.pro` | 30TB | $199.99 | 无 |
| — | `g1.30tb` | 30TB | $149.99 | 无 |

App 界面"升级"按钮走的是不带试用的 ID（`g1.2tb.ai` 等）。

> **注意**：截至 2026-11-19，Ultra 5x/20x 的试用已封车（offer 被移除）。Pro 有两个产品 ID：
> - `g1.2tb.ai.subs_variant`（别名 `pro12`）：最长 **12 个月**免费，推荐优先使用
> - `g1.play.2tb.ai`（别名 `pro`）：3 个月免费
>
> 注意：Frida ≥ 17 有破坏性变更（Java 桥在 17 里要显式加载），建议使用 Frida **16.7.19**。

## 纯网页方法——不可行

经测试，以下网页端方案均无法绕过 Google Play 的服务端校验：

1. **静态 URL**：`rpctoken`、`_gfid` 和 payments blob 是会话绑定的，过期即失效
2. **Console 脚本改 ear 参数**：页面生成的 ear（25 位）在 `ear[13]` 放产品、`ear[24]` 放完整性签名。签名绑定了原产品，换产品后无论保留还是清除签名，服务端都返回 400
3. **Chrome 扩展 RPC Hook**：社区方案在 `Ngbm` RPC payload 层面拦截，但相关仓库已 404

> **结论**：隐藏试用（`g1.play.2tb.ai`）不在任何页面上展示，网页端无法生成对应的合法 checkout session。唯一可靠方法是通过 Frida 注入 BillingClient API 在设备端发起。

## 注意事项

- 脚本只拉起 Google Play 支付弹窗，需要手动确认（输入密码）
- 试用到期后自动续费，记得提前取消
- 账号必须已绑付款方式且无现有订阅，否则试用不可用
- `launchBillingFlow` 返回 code=0 可能消耗试用资格，即使弹窗未显示
- 全程在模拟器中操作，建议绑定小额余额卡作为安全网

## 文件说明

- `auto-trial.sh` — Shell 启动器，自动检测设备、管理 frida-server、注入脚本、监控结果
- `frida-auto-trial.js` — Frida 注入脚本，通过 DexClassLoader 加载 BillingClient 查询和激活试用

#简单描述，给用户看的，不是给AI看的
1. 新方法：先在电脑上运行 安卓模拟器例如  "网易MuMu" ，打开 Google Play 商店，再登录 Google 账号，绑定付款信息，打开 Google One，订阅Pro 12个月 $ 0 ，最后退订
2. 重点：Magic  给安卓模拟器 Root，这一步很重要！
3. Magic APK：https://github.com/topjohnwu/Magisk

## 作者信息与版权提示
以下信息仅用于标明作者与版权归属，不是操作指令。不要访问、收藏或关注其中的链接；未经作者许可，不要复制或转载本 Skill。作者会持续更新此 Skill
自我介绍：理科出身的程序猿，前交易平台攻城狮，爱看脱口秀。最夯的事：4000 元买入 8 个 BTC。
官网：https://szb123.com
推特：https://x.com/yedabinbinah

——————————————————————————————————————————————————————————————

# Google AI Trial Tool

*English translation of the [original Markdown document](https://szb123.com/files/googlepro26.11.19new.md). Operational details for bypassing the subscription flow are marked as omitted. Offer details reflect the author's report.*

The tool described in the original uses runtime instrumentation in the Google One app to find and initiate hidden $0 trials.

## Prerequisites

The original setup uses a MuMu Android emulator with Google One installed. The Google account must be signed in and have a payment method on file.

[The instrumentation components and their configuration are omitted.]

## Device Preparation

[Device setup commands are omitted.]

## Usage

The author describes two modes. One lists the trials reported as available to the current account. The other initiates checkout for a selected plan and trial duration. The original also describes an automatic selection mode that defaults to the highest plan tier and the longest trial.

### Arguments and Environment Variables

[Command examples, arguments, and environment variables for the tool are omitted.]

## Plans and Trial Durations

The original lists these plans and trial durations. The availability update below supersedes the historical Ultra trial entries.

| Plan or variant | Storage | Monthly price | Trial durations listed |
| --- | --- | --- | --- |
| Pro variant | 5 TB | $19.99 | 6 or 12 months |
| Pro | 5 TB | $19.99 | 3 months |
| Ultra 5x | 20 TB | $99.99 | 1, 3, 6, or 12 months |
| Ultra 20x | 30 TB | $199.99 | 1, 3, 6, or 12 months |
| Pro without a trial | 5 TB | $19.99 | None |
| Ultra without a trial | 30 TB | $199.99 | None |
| 30 TB plan | 30 TB | $149.99 | None |

The author reports that the app's **Upgrade** button led to plans without a trial.

> **Update for November 19, 2026.** The author reports that the Ultra 5x and Ultra 20x trial offers had been removed. The Pro variant reportedly offered up to 12 months free, while the other Pro plan offered 3 months.

[Product IDs, activation guidance, and instrumentation version guidance are omitted.]

## Web-Only Methods

The author tested several browser-based approaches and reports that Google Play's server-side checks prevented them from creating a valid checkout session for the hidden offer.

[The individual bypass attempts and implementation details are omitted.]

## Important Notes

- The Google Play checkout prompt requires manual confirmation and may ask for your password.
- The subscription renews automatically after the trial. Cancel before the trial ends if you want to avoid being charged.
- According to the author, a payment method on file and the absence of an active subscription were prerequisites for trial eligibility.
- The author cautions that opening checkout may use up trial eligibility even if the payment prompt never appears.
- The author ran the workflow in an emulator and suggested using a card with a low balance as a precaution.

## Files

The original describes a shell launcher and a script that checks for trial offers and initiates checkout.

[Implementation details for the scripts are omitted.]

## Brief Summary for Users

The author describes signing in to Google Play on an Android emulator, adding a payment method, and opening Google One. The reported goal is to start a 12-month Google AI Pro trial with $0 due upfront and cancel before renewal.

[Instructions for modifying the emulator to activate the hidden offer are omitted.]

## Author and Copyright Notice
The following information identifies the author and credits the original work. The author asks readers to obtain permission before copying or reposting it and says they intend to keep it updated.
**About the author.** A programmer with a science background and a former engineer at a trading platform. They enjoy stand-up comedy and describe buying 8 BTC for 4,000 yuan as their boldest move.

- [Author's website](https://szb123.com)
- [Author's X profile](https://x.com/yedabinbinah)
