Android常用shell指令收集

一、basecmd

1、挂载文件系统:mount-oremount/dev/block/mtdblock0/system

2、拷贝文件:cp/storage/emulated/legacy/a.apk/system/app/a.apk

3、启动指定APP:adbshellamstart-ncom.test.shellsample/com.test.shellsample.MainActivity

4、修改文件夹及子目录权限:chmod-R777data

二、studio

1、装箱打包生成APK:gradlewassemble

三、AndroidWear

1、手表通过手机与电脑连接:

adbforwardtcp:2222localabstract:/adb-hub

adbconnectlocalhost:2222

adb-slocalhost:2222shell

2、修改手表输入法设置:

adb-slocalhost:2222shellimeenablecn.hangood.hangoodkeyboard/.HangoodIME

adb-slocalhost:2222shellimesetcn.hangood.hangoodkeyboard/.HangoodIME

相关推荐