1、adb remount
scripting:
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>adb get-devpath - prints: <device-path>
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
2、使用adb shell,一次执行多条shell命令
adb shell "ls -la /system/app | grep -i google"
3、创建多级目录
adb shell mkdir -p /system/app/TestApp/lib/arm
-p, --parents
no error if existing, make parent directories as needed
4、adb push可以拷贝本地文件夹到手机上
adb push D:\SrcDir /system/app/DesDir
device commands:
adb push [-p] <local> <remote>
- copy file/dir to device
('-p' to display the transfer progress)
adb pull [-p] [-a] <remote> [<local>]
- copy file/dir from device
('-p' to display the transfer progress)
('-a' means copy timestamp and mode)
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
5、COLOR [attr]
批处理,设置默认的控制台前景和背景色