1. 双清
方式一:
adb wait-for-devices && adb shell "echo -n \"boot-recovery\n--wipe_data\n\" > /cache/recovery/command" && adb reboot recovery
(格式化data分区会同时格式化cache分区)
方式二:
adb shell am broadcast -a "android.intent.action.MASTER_CLEAR"
2. ota升级
adb wait-for-devices && adb shell "echo -e "--update_package=/mnt/sdcard/ota.zip" > /cache/recovery/command" && adb reboot recovery
3. 重启系统服务
alias ss='adb shell stop;adb shell start'
4. 编译结果同步
export ANDROID_PRODUCT_OUT=/android_sr_path/out/target/product/xxx(eg:rk30sdk)
alias async='adb remount;adb sync'
5. 重启到recovery模式
alias recovery='adb reboot recovery'
6.重启到bootloader模式
alias loader='adb reboot bootloader'
7.recovery统计文件个数(包括子目录)
ls -lR|busybox grep "^-"|busybox wc -l