文章标题

来源:互联网 发布:淘宝代理充值怎么做 编辑:程序博客网 时间:2024/06/06 03:47

跑monkey的时候或者想抓程序log导出时,有时会提示:cannot create D:monkeytest.txt: read-only file system

为什么有时候可以有时候不可以?

后来发现跟使用使用习惯不一样,一会是先进入adb shell 再用命令,一会是直接命令进入。

进入adb shell后再用命令就会失败~

正确方法:退出shell或者执行命令时先不要进shell
C:\Documents and Settings\Administrator>adb shell monkey -p 包名
-v 300 >e:\text.txt

进入adb shell后就相当于进入linux的root下面,没有权限在里面创建文件~

原创粉丝点击