42

Android模拟器与控制台交互命令

 4 years ago
source link: https://www.tuicool.com/articles/NVNvMri
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

已经很久很久没有写博客了,因为工作太忙,因为要处理其他事情,更多是因为现在觉得没什么东西敢写了,总觉得很多东西人家都懂的,写了有什么用?!

最近开始研究Android开发了,一是因为实在太流行,而是因为感兴趣,想掌握这方面的技术。入门么,就先跟大家分享一些基础东西了。

模拟器,搞Android开发的必然知道了,今天看到一些通过控制台与模拟器交互的命令,散出来一起记录下:

  • 连接模拟器
telnet localhost 端口号
  • 模拟特定号码的来电

gsm call 电话号码

说明:若通讯录上已经有了与该号码绑定的联系人,则会显示联系人名称

  • 模拟短消息

sms send 电话号码 消息内容

  • 发送GPS坐标

geo fix 经度 纬度 高度

  • 监视网络状态
network status
  • 操作电源设置

power capacity 99

说明:将剩余电量修改为99%

power ac off

说明:将交流充电状态设为off或on

power status full

说明:设置电池状态(unknown、charging、discharging、not-charging、full)

power present true

说明:电池是否存在(true、false)

power health good

说明:电池健康状态(unknown、good、overheat、dead、overvoltage、failure)

power display

说明:查看当前电源设置


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK