模拟器,不用还不行,改一行代码就真机测试也不实际,是吧。
adb这个指令 ,要说简单,网上一大把,但是一些细节总是不注意,
可能大家不用吧,或者ddms直接搞,但是我很喜欢命令,觉得ide环境找啊找好头疼
adb push
简单说把一个电脑文件弄到模拟器上
adb push /home/hello/somefile/hello.mp3 /sdcard/hello.mp3
爽歪歪啊
adb pull
把模拟器文件搬到电脑上
adb install
安装软件
adb install /home/hello/somefile/hello.apk
对,就是这样安装,不用在什么tools文件夹,只要电脑一个apk包
adb uninstall
卸载怎么办啊。我一个模拟器它长按那个软件只有移动快捷方式,没有卸载,咔咔咔
命令行吧
adb shell
cd /data/data
ls
看见没有,你安装的软件都在这里 这这里
exit
adb uninstall xxx.xxxxx
一定加包名称啊
如果类似 com.hello.hello_2这种把_2 去掉吧,
adb uninstall com.hello.hello
顺便解决一个报错
Failed to push selection: Read-only file system
adb shell mount -o remount rw /