通过ADB创建AVD配置文件 [英] Creating an AVD profile via ADB

查看:231
本文介绍了通过ADB创建AVD配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


是否有任何方法可以在Android Debug Bridege Shell中获取或查看设备的所有
属性?

adb-shell显示并仅检索该设备的连接状态,即本次会话的当前过程。

我只是想知道是否有一个adb-shell脚本命令来查看该设备的所有技术产品信息。
我打算创建一个Android虚拟设备配置文件,但我没有有关该设备的任何技术信息。但是,如果我可以从adb获取这些信息,那么我将能够创建该配置文件以构建并运行android应用程序。

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.

推荐答案

要查看所有已连接的设备,可以键入 adb设备

To see all connected devices, you can type adb devices

要获取序列号,可以键入 adb serialno

To get the serial number, you can type adb serialno

此外,打开 adb状态窗口不断监视设备的窗口

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

更疯狂:

adb shell pm列表功能显示设备具有的功能列表

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

adb shell pm list users 显示设备拥有的用户列表(需要root用户)

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.

这篇关于通过ADB创建AVD配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆