10

Suppose I plan to flash my recovery with TWRP/CWM, but then later suppose I would like to move back to the stock recovery. Is it possible to take a backup of stock recovery just like we can take a backup of our ROM?

  • 4
    Check this universal thread: Making Dump of Android Partitions. Just backup the recovery.img from there – Gokul NC Dec 23 '15 at 9:37
  • 1
    Why do you you think it won't be possible? Rashr, Flashify and dd are always there to help as long as you've root access. – Firelord Dec 23 '15 at 11:51
5

EXTRACTING BOOT.IMG FROM STOCK ROM or OTHER IMG LIKE RECOVERY ETC.

REQUIREMENT:
1. Download adb required tools.
2. PC
3. Phone Drivers (for other phones google it out)
for spreadtrum phones: SCI-Usb-Jungo v4 (download here) or SCI-USB2Serial v1.5.6.1 (download here)
4. Android Phone + Usb cables

STEPS: OPEN cmd window in adb folder

type the ff:

      adb devices 
      adb shell
      su 
      cat /proc/mtd 

Now from your screen look at your files and you see mtd10 has your recovery.img

dev: size erasesize name 
mtd0: 00040000 00020000 "misc" 
mtd10: 00500000 00020000 "recovery"
mtd12: 00280000 00020000 "boot"
mtd13: 04380000 00020000 "system"
mtd14: 04380000 00020000 "cache"
mtd15: 04ac0000 00020000 "userdata"


Once u see it's LOCATION in which in this sample is in mtd10 type:

cat /dev/mtd/mtd10 > /sdcard/mtd10.img or
cat /dev/mtd/mtd10 > /sdcard/recovery.img
Source: http://howtorootcherrymobilesnap.weebly.com/adb/how-to-extract-img-files-via-adb-ex-bootimg

  • 2
    /proc/mtd is not universal. It's not there in all devices.. Change it :) – Gokul NC Dec 23 '15 at 9:37
  • But works in many devices. – Vivek Ji Dec 23 '15 at 11:15
  • /proc/mtd is not there in my device (Yuphoria). It's empty in my mom's device (Android One). – Gokul NC Dec 23 '15 at 11:17
  • 3
    And you conveniently didn't mention the original source. Please follow How to reference material written by others – Firelord Dec 23 '15 at 11:48
  • 1
    While /proc/mtd may not be valid for all devices how would anyone know trying to answer this question without first being provided what device model number/name is being worked on? This answer is good and until the question's author can provide specs I don't think I'd do any better than Vivek Ji already has. Also Firelord suggestions on dd will also work great for doing full backups over USB. – S0AndS0 Nov 9 '16 at 14:52
0

if proc/mtd not available for your device.

making a backup via cwm can give you recovery.img when you check your clockworkmod folder after backup http://howtorootcherrymobilesnapv2.weebly.com/how-to-make-back-up-via-cwm.html

another option would also be by making a ROM (dump) via adb http://howtorootcherrymobilesnapv2.weebly.com/img-pull-extract-via-adb-rom-dump.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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