1 常用Linus文件操作指令:
2 adb相關(guān)指令
adb shell指令
adb shell是指從PC進(jìn)入目標(biāo)設(shè)備的Linux Shell環(huán)境 ?exit命令是退出,回到原始設(shè)備
ls | grep 關(guān)鍵字 ? ? ? 列出當(dāng)前目錄下包含『關(guān)鍵字』的所有文件夾(搜索文件比較方便)
mkdir 文件路徑 ? 新建文件
ls:列出某一目錄下文件命令
cp ?-a ?src ?dst ? ? (將src目錄復(fù)制到dst下)
rm -r file 刪除file目錄
3 adb指令
adb install -r apk全路徑 ?:在當(dāng)前手機(jī)安裝已存在的apk包皂吮,-r是指已存在就覆蓋安裝
adb push 源文件絕對路徑 ?目標(biāo)路徑 ?相當(dāng)于復(fù)制粘貼功能
adb pull <remote><local> 拉取文件 adb push 的相反過程
adb reboot 重啟系統(tǒng)
adb shell screenrecord <存儲位置>? 例如adb shell screenrecord/sdcard/demo.mp4
adb shell input keyevent code碼 ? 模擬點(diǎn)擊屏幕