/bootable/recovery/recovery.cpp文件如下处修改:
// Otherwise, get ready to boot the main system...
finish_recovery(send_intent);
return EXIT_SUCCESS;//添加这一句,直接return,进入recovery mode
ui->Print("Rebooting...\n");
android_reboot(ANDROID_RB_RESTART, 0, 0);
return EXIT_SUCCESS;
}