Google Play services
Google 账号管理 — 登录 / 登出 / 账号查询;所有 Google 系应用共享
基本信息
| 名称 | |
|---|---|
| ID | googleservices |
| 名称 | Google Play services |
| 平台 | android |
| 分类 | system |
| 包名 | com.google.android.gms |
| 命令数 | 4 |
| 源码 | 查看 GitHub |
安装
bash
pb skills install googleservices命令
pb googleservices accounts
列出设备上所有 com.google 类型的账号(解析 dumpsys account)
pb googleservices login
触发系统 ADD_ACCOUNT_SETTINGS 流程添加 Google 账号;可选 best-effort 凭证填充
参数
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
--email | string | — | 要登录的邮箱(不传则只打开页面让人工完成) | |
--password | string | — | 密码(与 --email 配合) | |
--wait | int | 120 | 登录页打开后多少秒内轮询 dumpsys account 直到检测到新账号 |
示例
bash
pb googleservices loginpb googleservices logout
移除指定 Google 账号;不带 --email 时只打开账号设置页
参数
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
--email | string | — | 要移除的 Google 账号邮箱(不传只打开设置页) | |
--wait | int | 15 | 点 Remove account 后多少秒内轮询 dumpsys account 确认账号被移除 |
示例
bash
pb googleservices logoutpb googleservices status
查询 Google 账号高层登录态:是否已登录 / 账号数 / 默认账号 / 账号列表