转: android emulator 命令详解

在命令行输入: emulator -help,即可显示emulator支持的所有命令。

Android Emulator usage:

emulator [options] [-qemu args]

options: 
    -sysdir <dir>                 在目录<dir>中搜索system.img 
    -system <file>                读取system.img文件<file>    
    -datadir <dir>                写入用户数据到目录 <dir> 
    -kernel <file>                使用指定内核kernel-qemu文件 
    -ramdisk <file>               指定ram 镜像文件ramdisk.img 
    -image <file>                  obsolete, use -system <file> instead 
    -init-data <file>              initial data image (default <system>/userdata.img 
    -initdata <file>               same as ‘-init-data <file>‘ 
    -data <file>                   data image 
                                   (default <datadir>/userdata-qemu.i 
mg 
    -partition-size <size>         分区大小MBs 
    -cache <file>                  cache.img 
    -no-cache                      禁止缓存 
    -nocache                       禁止缓存 
    -sdcard <file>                 sdcard.img 
    -wipe-data                     reset the use data image (copy it from initda 
ta) 
    -avd <name>                    使用指定AVD设备 
    -skindir <dir>                 search skins in <dir> (default <system>/skins 

    -skin <name>                   select a given skin 
    -no-skin                       don‘t use any emulator skin 
    -noskin                        same as -no-skin 
    -memory <size>                 物理内存大小MBs 
    -netspeed <speed>              最大网速 
    -netdelay <delay>              网络延迟 
    -netfast                       disable network shaping 
    -trace <name>                  enable code profiling (F9 to start) 
    -show-kernel                   显示内核消息 
    -shell                         终端启用root shell 
    -no-jni                        disable JNI checks in the Dalvik runtime 
    -nojni                         same as -no-jni 
    -logcat <tags>                 查看日志 
    -no-audio                      disable audio support 
    -noaudio                       same as -no-audio 
    -audio <backend>               use specific audio backend 
    -audio-in <backend>            use specific audio input backend 
    -audio-out <backend>           use specific audio output backend 
    -raw-keys                      disable Unicode keyboard reverse-mapping 
    -radio <device>                无线猫 
    -port <port>                   连接控制台的TCP端口. 
    -ports <consoleport>,<adbport> TCP ports used for the console and adb bridge

-onion <image>                 use overlay PNG image over screen 
    -onion-alpha <%age>            specify onion-skin translucency 
    -onion-rotation 0|1|2|3        specify onion-skin rotation 
    -scale <scale>                 窗口缩放 
    -dpi-device <dpi>              specify device‘s resolution in dpi (default 1 
65) 
    -http-proxy <proxy>            HTTP/HTTPS 代理 
    -timezone <timezone>           时区 
    -dns-server <servers>          DNS服务器 
    -cpu-delay <cpudelay>          throttle CPU emulation 
    -no-boot-anim                  disable animation for faster boot 
    -no-window                     disable graphical window display 
    -version                       版本 
    -report-console <socket>       report console port to remote socket 
    -gps <device>                  redirect NMEA GPS to character device 
    -keyset <name>                 specify keyset file name 
    -shell-serial <device>         specific character device for root shell 
    -old-system                    support old (pre 1.4) system images 
    -tcpdump <file>                记录网络数据包 
    -bootchart <timeout>           enable bootcharting 
    -prop <name>=<value>           设置系统属性

-qemu args...                 pass arguments to qemu 
     -qemu -h                      显示qemu帮助

-verbose                      same as ‘-debug-init‘ 
     -debug <tags>                 enable/disable debug messages 
     -debug-<tag>                  enable specific debug messages 
     -debug-no-<tag>               disable specific debug messages

-help                         帮助 
     -help-<option>                print option-specific help

-help-disk-images             about disk images 
     -help-keys                    supported key bindings 
     -help-debug-tags              debug tags for -debug <tags> 
     -help-char-devices            character <device> specification 
     -help-environment             environment variables 
     -help-keyset-file             key bindings configuration file 
     -help-virtual-device          virtual device management 
     -help-sdk-images              about disk images when using the SDK 
     -help-build-images            about disk images when building Android 
     -help-all                     帮助(所有)

-------------------------

模拟器至少需要: 
kernel-qemu 
ramdisk.img 
system.img 
userdata.img

还可以包括: 
sdcard.img 
userdata-qemu.img 
cache.img 
system-qemu.img

时间: 2024-08-01 09:26:53

转: android emulator 命令详解的相关文章

史上最强劲的android模拟器命令详解

史上最强劲的android模拟器命令详解 转http://www.eoeandroid.com/thread-23281-1-1.html Android模拟器ndroid SDK自带一个移动设备模拟器 - 它是一个可以运行在你电脑上的虚拟设备. Android模 拟器可以让你不需使用物理设备即可预览.开发和测试Android应用程序. Android模拟器能够模拟除了接听和拨打电话外的所有移动设备上的典型功能和行为. 如右图所示, Android模拟器提供了大量的导航和控制键,你可以通过鼠标或

android adb 命令详解

ADB (Android Debug Bridge)  是android SDK中的工具,需要先配置环境变量才能使用.起调试桥的作用,可以管理安卓设备.(也叫debug工具) ---------查看设备连接状态 ----------- adb get-serialno  获取设备的ID和序列号<serialNumber> adb devices  查询当前计算机上连接那些设备(包括模拟器和手机) adb get-state  查看模拟器/设施的当前状态. ----------发送命令到设备 -

Android pm 命令详解

一.pm命令介绍与包名信息查询 1.pm命令介绍 pm工具为包管理(package manager)的简称 可以使用pm工具来执行应用的安装和查询应用宝的信息.系统权限.控制应用 pm工具是Android开发与测试过程中必不可少的工具,shell命令格式如下: pm <command> 2.包名信息查询 shell模式下: pm list packages [options] [FILTER] 打印所有的已经安装的应用的包名,如果设置了文件过滤则值显示包含过滤文字的内容 参数 描述 -f 显示

Android pm命令详解

在看相关PackageManager代码时,无意中发现Android 下提供一个pm命令,通常放在/system/bin/下.这个命令与Package有关,且非常实用.所以研究之. 0. Usage: usage: pm [list|path|install|uninstall] pm list packages [-f] pm list permission-groups pm list permissions [-g] [-f] [-d] [-u] [GROUP] pm list instr

Android logcat命令详解

一.logcat命令介绍 1.android log系统 2.logcat介绍 logcat是android中的一个命令行工具,可以用于得到程序的log信息 log类是一个日志类,可以在代码中使用logcat打印出消息 常见的日志纪录方法包括: 方法 描述 v(String,String) (vervbose) 显示全部信息 d(String,String)(debug) 显示调试信息 i(String,String)(information) 显示一般信息 w(String,String)(w

adb shell 命令详解,android

http://www.miui.com/article-275-1.html http://noobjava.iteye.com/blog/1914348 adb shell 命令详解,android 博客分类: android 常用:1.进入模拟器的shell模式 :  adb shell 2.安装应用程序:  adb install -r 应用程序.apkadb installadb install <apk文件路径> :这个命令将指定的apk文件安装到设备上adb install  -r

赵雅智_android使用adb命令详解附图

adb是一个客户端-服务器端程序,其中客户端是你用来操作的电脑,服务器端是android设备 我们除了用可视化窗口中操作也可以采用cmd命令行进行操作. 在开始菜单的搜索栏中输入cmd打开命令行 在本地找到adb.exe路径(如图1.1),把adb.exe拖到cmd命令行敲击回车显示所有可操作帮助示例(如图1.2). 图1.1 adb.exe路径 图1.2 adb命令示例 如果不输入adb的正确路径就不能进行正常显示,如图1.3: 图1.3adb未能正确打开 为了保证adb在任何路径下都能使用,

Android SDK Manager详解

Android基础知识--Android SDK Manager详解 做Android开发时,免不了使用Android SDK Manager,安装需要的sdk版本.buildTools版本等等. 下图展示了2016.11.16号Android SDK Manager所有的package.很多Android开发的新人在使用的时候可能会疑惑了:这些package到都是什么功能呢,都要安装吗?本篇文章将为你把这些疑惑解开(如果你只想知道需要安装哪些package,直接跳至文末). 1. SDK Ma

NoSQL之Redis高级实用命令详解--安全和主从复制

Android IOS JavaScript HTML5 CSS jQuery Python PHP NodeJS Java Spring MySQL MongoDB Redis NOSQL Vim C++ C# JSON Ruby Linux Nginx Docker 所有分类  >  数据库相关  >  NoSQL数据库 NoSQL之Redis高级实用命令详解--安全和主从复制 NoSQL Redis   2014-01-09 22:52:47 发布 您的评价:       0.0   收