获取Android设备的型号model name

2020-04-02  本文已影响0人  fa9cbce62562

使用 adb shell getprop 命令

adb shell getprop | grep ro.product.model | cut -d' ' -f2 | cut -d'[' -f2 | cut -d']' -f1

使用 adb devices 命令

adb devices -l | tail -n +2 | awk '{print $5}' | cut -d: -f2

相比于 getprop 得到的大量信息,这个命令执行效果更直观一些,执行过程如下图:


adb devices -l.png
上一篇下一篇

猜你喜欢

热点阅读