Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Question 1: what's the android recovery mode? Does it run a full linux kernel?
Question 2: where the recovery.img is installed? (/somewhere_in_filesystem)

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted
  1. Recovery mode is used mainly by carriers/manufacturers for replacing bad firmware that causes the phone to be otherwise unbootable. Users can install signed update.zip packages (such as OTA updates) through it as well. It does not run a full Linux kernel. Custom recovery modes such as Clockworkmod exist also, which allow more complex things such as full backup and restore of the device software and data.
  2. I'm not sure where recovery.img is unpacked to, but you can let the system handle that by using the following: adb shell flash_image recovery <path-to-recovery-image>, where the path is normally something like /sdcard/custom_recovery.img (wherever you put the image)
share|improve this answer
    
thank you, matthew! I mean 'unpack to', the img file should be unpacked to somewhere in the filesystem. –  lovespring Jan 25 '11 at 20:23
    
I've updated it :) –  Matthew Read Jan 25 '11 at 20:57
add comment

Recovery mode is a minimal OS that boots from another partition. It does run a Linux kernel without some display/network/3g modules. On some ROMS you can actually start adb shell while the device is in recovery mode and see the kernel running (adb shell ps)

the recovery.img image is installed in a block device (partition) usually /dev/mmcblk[x]p[y]

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.