1. 程式人生 > >Recovery command 升級命令指令碼

Recovery command 升級命令指令碼

檔案位置/cache/recovery/command 例項: --update_package=CACHE:recovery/sec_csc.zip --carry_out=csc_home --wipe_data --wipe_cache 命令講解 --wipe_data 格式化userdata分割槽 --wipe_cache 格式化cache分割槽 --update_package=CACHE:recovery/sec_csc.zip 自動更新升級包sec_csc.zip,位置在/cache/recovery/sec_csc.zip 如果更新(即卡刷)sdcard裡的update.zip可寫為 --updata_package=SDCARD:updata.zip “boot-recovery”:標示recovery正在進行,或指示bootloader應該進入recovery mode
“update-hboot/radio”:指示bootloader更新firmware /cache/recovery/command: recovery命令,由主系統寫入。所有命令如下:
--send_intent=anystring - write the text out to recovery.intent
--update_package=root:path - verify install an OTA package file
--wipe_data - erase user data (and cache), then reboot

--wipe_cache - wipe cache (but not user data), then reboot
/cache/recovery/log:recovery過程日誌,由主系統讀出
/cache/recovery/intent:recovery輸出的intent 轉自:http://blog.sina.com.cn/s/blog_547f85a70101o66o.html