8.1读取android id

1、版本要求:userdebug
2、 adb root
3、联网后测试结果如下:
root@mht-51:/home/mht-51# adb shell
X24_EU:/ # sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "SELECT * FROM main" | grep android_id
android_id|3672816052990583163
X24_EU:/ #
X24_EU:/ #
X24_EU:/ # sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "select * from main where name = \"android_id\";"
android_id|3672816052990583163
X24_EU:/ #
读取OK

备注:需要联网测试,恢复出厂需要重新读取

你可能感兴趣的:(8.1读取android id)