Build a custom recovery image

From Android Wiki

(Difference between revisions)
Jump to: navigation, searcha
m (Reverted edits by Ipodsoft (talk) to last revision by Loonix)
Line 18: Line 18:
'''Source(s):'''  [  Android solutions]

Latest revision as of 09:23, 31 January 2013

To explane how to create a custom recovery will spend so much time, I will only give you a brief guide here.

To build a custom recovery, you need to prepare a linux PC.

  1. You need checkout the android sdk from android offical git repository into ~/android/.
  2. The recovery source code is in the ~/android/bootable/recovery folder, you can enter "make recovery" to build your recovery application.
  3. The output file is in ~/android/out/target/product/generic/system/bin/recovery
  4. In this step, you need copy the recovery file to your recovery partition in your mobile.(Ref:
    1. Dump your recovery.img from your mobile.
    2. Un-pack your recovery.img into ~/recovery folder
    3. Replace old recovery file in ~/recovery/sbin/recovery with new one(~/android/out/target/product/generic/system/bin/recovery), and use "chmod a+x ~/recovery/sbin/recovery" command to set file mode.
    4. Pack your recovery.img
  5. Finally, you should switch your mobile to fastboot mode, and use "fastboot flash recovery recovery.img" command to flash the new recovery file.

Beside, the recovery file in the android sdk is very basic example.

To build your recovery you can download Amon RA's Recovery Image, and develop recovery image base on his recovery source code.

Personal tools