Java 如何从adb获得GSF(谷歌服务框架)ID?

Java 如何从adb获得GSF(谷歌服务框架)ID?,java,android,adb,Java,Android,Adb,我发现它可以在java中通过 Uri URI = Uri.parse("content://com.google.android.gsf.gservices"); play store上的许多应用程序都可以做到这一点。但是,是否可以通过adb获得gsf id 我试过: content query --uri content://settings/secure/android_id #to get the android id content query --uri content://set

我发现它可以在java中通过

Uri URI = Uri.parse("content://com.google.android.gsf.gservices"); 
play store上的许多应用程序都可以做到这一点。但是,是否可以通过adb获得gsf id

我试过:

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

这有什么帮助?如果不解释你在做什么以及为什么它能解决问题,你的答案就没有多大帮助。另外,请将您的代码放入代码块中
$ adb root


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