Creating an AVD profile via ADB

故事扮演 提交于 2019-12-11 03:53:22

问题


Is there any way to get or see all the device's properties in Android Debug Bridege Shell?

adb-shell shows and retrieves only the device's, which is connected, current prosesses of the current session as I see.

I just wonder that there is an adb-shell script command to see that device's all technical product informations. I am planning to create an Android Virtual Device profile, but I don't have any technical information about the device. But if I can get those informations from adb, then I will be able to create that profile to build and to run android applications.


回答1:


To see all connected devices, you can type adb devices

To get the serial number, you can type adb serialno

Also, adb status-window opens a window with constant monitoring of the device


More crazy:

adb shell pm list features shows a list of features the device has

adb shell pm list users shows a list of users the device has (needs root)

You can't really get things like screen resolution etc through ADB unfortunately.



来源:https://stackoverflow.com/questions/17951131/creating-an-avd-profile-via-adb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!