Device identifier of Android emulator

后端 未结 4 935

I want to test in the emulator an app that depends of the device identifier (ANDROID_ID).

I currently obtain device identifier with the following code:



        
4条回答
  •  不知归路
    2020-12-04 17:18

    If you want non-null emulator uuid, then start the emulator like this:

    emulator -avd jbx86 -prop emu.uuid=5ec33f90-a471-11e2-9e96-0800200c9a66
    

提交回复
热议问题