ADB to restore recovey.img of Android Micromax A70


‘flash_image’ http://www.addictivetips.com/?attachment_id=42198 is a tool for Android devices that lets you rewrite your phone’s system partitions with partition image files and installing it to your device requires ADB.

Download flash_image and extract it from the zip file to a location on your computer. We extracted it to the main C drive (not in any folder) and will use that in the next steps.
Download the recovery from net (A70) & copy it to C:\
Enable USB debugging mode on your device from Menu > Settings > Applications > Development.
Connect your device to your computer via USB.
Open a Command Prompt window on your computer and enter the following commands:
adb push c:\flash_image /sdcard/
adb push c:\recovery.img /sdcard/
adb shell
su
mount -o remount, rw /system
cp /sdcard/flash_image /system/bin
cd /system/bin
chmod 777 flash_image
flash_image recovery /sdcard/recovery.img
This will first transfer flash_image and recovery.img to your phone. Then it will copy flash_image to the /system/bin folder of your Android device and make it executable. Finally, it will flash the custom recovery image to your device using flash_image.
If you extracted the files elsewhere, use the appropriate paths and if your recovery image has a different name, use the appropriate name in the first two lines.

You must have SuperUser OPEN while trying to SU from ADB. I don't remember this being needed on my Nexus One, but it's working now. I will keep this up for others that might need it....

Hi guys, I finally got my droid rooted but when typing cp command. It is said that it's not found. Anyway to fix this? Thanks!
This would be because you havent installed busybox. By default the droid doesnt contain the cp command.


Complete How-To Root, Busybox, Flash/Recovery, Framework-res.apk, custom boot ani...

BusyBox
download busybox binary to your adb tools directory http://content.modaco.net/dropzone/busybox
Install busybox; here's instructions from modaco

- Download busybox

adb push c:\busybox /data/local/busybox
adb shell
su
cd /data/local
chmod 755 busybox
./busybox
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
mkdir /system/xbin
/data/local/busybox cp /data/local/busybox /system/xbin
/data/local/busybox cp /data/local/busybox /system/bin
cd /system/xbin
busybox --install .
mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
sync
reboot

Comments