首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何从adb获取GSF (Google Service Framework) ID?

如何从adb获取GSF (Google Service Framework) ID?
EN

Stack Overflow用户
提问于 2018-02-16 23:54:06
回答 1查看 10.4K关注 0票数 4

我发现它可以在java中通过

代码语言:javascript
运行
复制
Uri URI = Uri.parse("content://com.google.android.gsf.gservices"); 

play商店上的许多应用程序都可以做到这一点。但是,有没有可以通过adb获得的gsf id呢?

我试过了:

代码语言:javascript
运行
复制
content query --uri content://settings/secure/android_id #to get the android id
content query --uri content://settings/secure/ #to see the list of dictionaries but gsf id not in there
content query --uri content://com.google.android.gsf.gservice #doesn't return a value, and this should be where the java code in the app get the value from, already granted superuser for the shell.
EN

回答 1

Stack Overflow用户

发布于 2018-03-30 21:59:29

代码语言:javascript
运行
复制
$ adb root


$ adb shell 'sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "select * from main where name = \"android_id\";"'

这可能会有所帮助,在启用USB调试器的情况下,将手机连接到PC。然后在PC的adb文件夹中打开powershell或cmd,并输入提供的命令。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48830406

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档