Mac Shell 中用 adb 取安卓设备的Device ID:
This is how you can query its value via adb shell: (先命令行: adb shell)
1 |
<span class="pln">settings </span><span class="kwd">get</span><span class="pln"> secure android_id</span> |
引用网址:http://stackoverflow.com/questions/5486694/getting-android-device-identifier-from-adb-and-android-sdk
停止服务与重启服务:
adb kill-server
adb start-server (一般当Mac无法识别设备的时候,可以尝试进行一下这两步)
包安装: adb install ****.apk (****可能表示路径和包名)