extends:http://www.cnblogs.com/tt_mc/p/4269833.html adb shell dumpsys activity activities | sed -En -e '/Running activities/,/Run #0/p'
分类:
数据库 时间:
2016-02-03 17:25:37
阅读次数:
315
格式:adb shell monkey 事件参数 百分数 事件数,如:adb shell monkey --pct-majornav 100 -v 10--pct-touch 调整触摸事件的百分比。(触摸事件是指在屏幕中的一个down-up事件,即在屏幕某处按下并抬起的操作)--pct-motio....
分类:
其他好文 时间:
2016-01-26 16:33:32
阅读次数:
416
adb shell am start -a android.intent.action.CALL -d tel:555-5555mount -o rw,remount /dev/block/platform/msm_sdcc.1/by-name/system /system adb shell se...
分类:
其他好文 时间:
2016-01-25 20:55:43
阅读次数:
465
1 执行adb shell后出现root@android:/#是什么意思? 这是在linux终端里常见的格式。 说明这个shell是以root用户运行的,主机名是android,目前处于根目录/,#代表是root权限。通常adb shell默认以uid 2000即shell用户启动,需要安卓端roo...
分类:
移动开发 时间:
2016-01-21 11:59:07
阅读次数:
493
在android手机上做自动化测试,monkey比cts,Android UnitTest 好用多了,他其实是继承与adb shell中的一段的shell指令。一monkey测试的相关的原理monkey测试的原理就是利用socket通讯的方式来模拟用户的按键输入,触摸屏输入,手势输入等,看设备多长时...
分类:
其他好文 时间:
2016-01-20 12:52:21
阅读次数:
152
有两种方式可以在android模拟器或真机上使用命令行安装apk一种是使用adb install命令,网上通常是这种方式另一种是通过android提供的命令,pm install。需要先进入android命令行:adb shell然后执行对应pm命令。pm命令的说明,转载另一篇博客:Android下...
分类:
移动开发 时间:
2016-01-17 17:38:24
阅读次数:
370
用“adb shell dumpsys activity”命令再来查看一下系统运行的的任务,就会看到:ACTIVITY MANAGER ACTIVITIES (dumpsys activity activities) Stack #0: Task id #1 TaskRecord{...
分类:
移动开发 时间:
2016-01-15 22:59:53
阅读次数:
326
原文:http://www.cnblogs.com/lesliefang/p/3933640.html1 Process.killProcess 和System.exit(0) 两个都会 kill 掉当前进程。你可以打开 DDMS 查看进程号,或 adb shell 进入 shell 然后 ps 一...
分类:
移动开发 时间:
2016-01-14 20:39:15
阅读次数:
222
int main(int argc, const char * argv[]) { // insert code here... string str3 = "/Users/Ethan/Downloads/aaa/platform-tools/adb shell scre...
分类:
系统相关 时间:
2016-01-14 09:51:14
阅读次数:
234
操作设备文件系统上的文件结果遇到"... Read-only file system"。解决办法:1. 最简单的,adb remount2. 不行的话,adb shell su之后将文件系统remount为读写权限:mount -o remount rw /system。出于安全考虑,记得完事后re...
分类:
移动开发 时间:
2016-01-11 18:07:03
阅读次数:
155