Skip to content

Google Play services ​

Google 账号管理 — 登录 / 登出 / 账号查询;所有 Google 系应用共享

基本信息 ​

名称
IDgoogleservices
名称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 凭证填充

参数

参数类型必填默认值说明
--emailstring—要登录的邮箱(不传则只打开页面让人工完成)
--passwordstring—密码(与 --email 配合)
--waitint120登录页打开后多少秒内轮询 dumpsys account 直到检测到新账号

示例

bash
pb googleservices login

pb googleservices logout ​

移除指定 Google 账号;不带 --email 时只打开账号设置页

参数

参数类型必填默认值说明
--emailstring—要移除的 Google 账号邮箱(不传只打开设置页)
--waitint15点 Remove account 后多少秒内轮询 dumpsys account 确认账号被移除

示例

bash
pb googleservices logout

pb googleservices status ​

查询 Google 账号高层登录态:是否已登录 / 账号数 / 默认账号 / 账号列表