MonkeyTest下没有权限问题


# su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# chmod 777 /system (Or any subdirectory you want to push to inside system)
# exit
adb push <local file> <device location>
and eventually you should restore the original directory permissions by:
# chmod 755 /system (Or any subdirectory you modified permissions to)

1. adb remount 失败,“mount: Operation not permitted”
那么直接忽略这步,可以直接从第2步进入device进行测试
2. adb shell
3. cd system/scripts/monkey
4. chmod 755 *
5.    ./monkey_test -p com.asus.calculator -t 57600

当中如果说还有其他错误,如 rm failed for /sdcard/log, Device or resource busy ,那么另外打开窗口命令删除这个目录,
cd sdcard
chmod 777 *
chmod 755 *
rm -rf sdcard/log
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值