Getting Android Device Identifier From ADB and Android SDK

前端 未结 12 1024
一生所求
一生所求 2021-01-30 17:24

I am looking for the easiest way to get a unique android device identifier from both the Android adb and the Android ADK itself.

For example, when i use the adb \'devi

12条回答
  •  無奈伤痛
    2021-01-30 17:41

    You would probably want to use ANDROID_ID.

    This is how you can query its value via adb shell:

    settings get secure android_id
    

    Or by querying the settings content provider:

    content query --uri content://settings/secure/android_id --projection value
    

提交回复
热议问题