有时候我们需要设定虚拟机的语言地区等,我们可以使用-prop参数,例如日本。

The -prop command line option allows us to set any of the properties we could set:
$ emulator -avd test -no-window -no-audio -no-boot-anim -port 5580
-prop persist.sys.language=ja -prop persist.sys.country=JP &
To verify that our settings were successful, we can use the getprop command to
verify them, for example:
$ adb –s emulator-5580 shell "getprop persist.sys.language"
ja
$ adb –s emulator-5580 shell "getprop persist.sys.country"
JP
If you want to clear all the user data after playing with the persistent settings, you
can use the following command:
$ adb -s emulator-5580 emu kill
$ emulator -avd test -no-window -no-audio -no-boot-anim -port 5580\
-wipe-data
And the emulator will start afresh.


有的时候我们需要指定虚拟机需要用得网络环境,网络类型以及网速。

Option Description Speeds [kbits/s]
-netspeed gsm GSM/CSD up: 14.4, down: 14.4
-netspeed hscsd HSCSD up: 14.4, down: 43.2
-netspeed gprs GPRS up: 40.0, down: 80.0
-netspeed edge EDGE/EGPRS up: 118.4, down: 236.8
-netspeed umts UMTS/3G up: 128.0, down: 1920.0
-netspeed hsdpa HSDPA up: 348.0, down: 14400.0
-netspeed full no limit up: 0.0, down: 0.0
-netspeed <num> select both upload and up: as specified, down: as
download speed specified
-netspeed <up>:<down> select individual up and up: as specified, down: as
down speed specified

-netdelay gprs GPRS min 150, max 550
-netdelay edge EDGE/EGPRS min 80, max 400
-netdelay umts UMTS/3G min 35, max 200
-netdelay none no latency min 0, max 0
-netdelay <num> select exact latency latency as specified
-netdelay <min>:<max> select min and max latencies minimum and maximum
latencies as specified
This is an example of an emulator using these options to select the GSM network
speed of 14.4 kbits/sec and a GPRS latency of 150 to 500 msec.
$ emulator -avd test -port 5580 -netspeed gsm -netdelay gprs

更多相关文章

  1. android 获得手机号相关
  2. android网络-GoogleMap之GPS定位
  3. Android(安卓)Binder机制,虚拟机
  4. okHttpUtils(hongyang)的配置及使用(网络框架)
  5. [转]android 网络编程 HttpGet类和HttpPost类使用详解
  6. Android(安卓)几种网络请求的区别与联系
  7. android:WebView在没有网络情况下,点击当前页面内链接不跳转并弹
  8. 获取网络信息,ip,子网掩码,网关,dns
  9. android 上的一个网络接口和图片框架

随机推荐

  1. Android(安卓)istview顶部的或底部的渐变
  2. [置顶] android 设置边框圆角
  3. android 防止键盘弹出的简单方法
  4. Android(安卓)SystemUI任务栏修改
  5. android indication
  6. Android颜色渐变的分隔线(ListView)
  7. android 中 checkBox 的使用
  8. Android(安卓)深入研究LBS(基于位置的服务
  9. Android:霓虹灯
  10. 三步搞定:Vue.js调用Android原生方法