[Stock Recovery] Getting back to Stock Recovery after you've flashed TWRP.

Search This thread

shihabsoft

Senior Member
Nov 1, 2013
118
44
As you know, TWRP still doesn't support FBE, so in-case if you wanna flash another system.img the Wipe data/factory reset in TWRP wouldn't work (at least didn't work for me).

That would force you to get back to stock recovery, which allows a successful factory reset.

Steps are pretty straight forward, if you already have a backup of your stock recovery just do the below steps, if else you could download one from the below link.
  • Put the device into fastboot mode. There are two ways to do that.
    1)By long pressing the power button and volume down button whilst the USB is connected.
    2)Just do a adb reboot bootloader command if you could boot into the system.
  • Then just do
    Code:
    fastboot flash recovery_ramdisk recovery_ramdisk.img
  • Then disconnect the USB and long press the power and volume up button until you see the "The device is booting now" message.

Downloads
 

Copperhead100

Member
Feb 25, 2018
10
0
Just created a md5sum of your recovery and my backed up recovery. It's exactly the same size but the md5sum is different.
A quick look with a hex editor also shows some big differences. Is that expected?
 

shihabsoft

Senior Member
Nov 1, 2013
118
44
Just created a md5sum of your recovery and my backed up recovery. It's exactly the same size but the md5sum is different.
A quick look with a hex editor also shows some big differences. Is that expected?

MD5 hash wouldn't possibly match, because the backup was taken using dd and there might be some config files modified or added when I used the stock recovery once. But, hey the thing would work if you have BKL-L09 device
 

atf2m4

Senior Member
Sep 17, 2010
226
30
As you know, TWRP still doesn't support FBE, so in-case if you wanna flash another system.img the Wipe data/factory reset in TWRP wouldn't work (at least didn't work for me).

That would force you to get back to stock recovery, which allows a successful factory reset.

Mate, will this stock recovery work in Indian model(BKL-L09-C675)?
 
Last edited:

shihabsoft

Senior Member
Nov 1, 2013
118
44
Mate, after restoring this recovery, will I be able to receive system update for the device. I have rooted with Magisk and twrp is installed. what to do to receive system update automatically?. please give detailed steps. Thank you.

Not sure, as it might check integrity before giving updates. Just download Firmware Finder app and check for updates constantly.
 
  • Like
Reactions: atf2m4

Einwod

Senior Member
Mar 1, 2011
4,260
2,132
62
Lardos, Rhodes, Greece.
Mate, after restoring this recovery, will I be able to receive system update for the device. I have rooted with Magisk and twrp is installed. what to do to receive system update automatically?. please give detailed steps. Thank you.
You will receive the updates but you won't be able to install them with TWRP. Simply flash the stock recovery and the updates will self install when they come. You'll have to root again with Magisk after the updates, but that's a simple process.

Sent from my Honor View 10 using XDA Labs
 
  • Like
Reactions: atf2m4

ankan1993

Senior Member
Feb 19, 2013
119
22
Nagpur
Hie,
How can I get back from lineage OS to stock using this? I guess I'm on the same boat as a lot of people out there and could really use some help here. I'm on Cosmos OS and can't go back to stock. I tried flashing this recovery.img but can't figure out a way back.
 

ankan1993

Senior Member
Feb 19, 2013
119
22
Nagpur
Reboot to bootloader, flash system recovery_ramdisk and ramdisk. Reboot to recovery wipe cache, reboot system enjoy.
Works every time fine for me

Powered by View 10

Can you help me with the commands please?

---------- Post added at 09:20 PM ---------- Previous post was at 09:12 PM ----------

Reboot to bootloader, flash system recovery_ramdisk and ramdisk. Reboot to recovery wipe cache, reboot system enjoy.
Works every time fine for me

Powered by View 10

Wildfire, can you please help me with the commands? I believe there's an inclusion of ramdisk in the commands now.

---------- Post added at 09:52 PM ---------- Previous post was at 09:20 PM ----------

Reboot to bootloader, flash system recovery_ramdisk and ramdisk. Reboot to recovery wipe cache, reboot system enjoys.
Works every time fine for me

Powered by View 10

Apparently, there isn't any system.img file in the Indian firmware I downloaded. The rest are there but not the system.img.
 

ankan1993

Senior Member
Feb 19, 2013
119
22
Nagpur
Someone please help me out

I can't flash system.img as I was told in an earlier reply, it returns me an error that says 'Error: Cannot load System.':crying: I tried using -P and 256M commands to see the space divided and none of these worked either. CAN SOME PLEASE HELP ME OUT WITH THIS?

I cannot find system.img in the Indian firmware either, that is making things tough for me.
 

Einwod

Senior Member
Mar 1, 2011
4,260
2,132
62
Lardos, Rhodes, Greece.
I can't flash system.img as I was told in an earlier reply, it returns me an error that says 'Error: Cannot load System.':crying: I tried using -P and 256M commands to see the space divided and none of these worked either. CAN SOME PLEASE HELP ME OUT WITH THIS?

I cannot find system.img in the Indian firmware either, that is making things tough for me.
You should have made a backup before you started "tinkering" with your device. Lesson learned, hopefully.

Sent from my Honor View 10 using XDA Labs
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    As you know, TWRP still doesn't support FBE, so in-case if you wanna flash another system.img the Wipe data/factory reset in TWRP wouldn't work (at least didn't work for me).

    That would force you to get back to stock recovery, which allows a successful factory reset.

    Steps are pretty straight forward, if you already have a backup of your stock recovery just do the below steps, if else you could download one from the below link.
    • Put the device into fastboot mode. There are two ways to do that.
      1)By long pressing the power button and volume down button whilst the USB is connected.
      2)Just do a adb reboot bootloader command if you could boot into the system.
    • Then just do
      Code:
      fastboot flash recovery_ramdisk recovery_ramdisk.img
    • Then disconnect the USB and long press the power and volume up button until you see the "The device is booting now" message.

    Downloads
    2
    Huh? The wiping only wipes the data and system partition. Not the partitions like oeminfo. I'd suggest you to stick with stock ROM after you get it repaired or somehow get it restored. Because these things are not for the faint hearted

    Woaahh! Mr. Badass! :cool:
    Not for the faint-hearted? What are we doing here, sire? Flying a ****ing fighter jet? How do you manage to be this helpful (sarcasm intended)?
    This dude you see here, oreopie, spent 2 whole days to help me out in recovering my device, and here you're, glorifying us with your kind words and warnings on not trying, if a faintheart.
    The goal here is to expedient the happening and get the man back to stock. If you can help out, well and good, if not, please do not push yourself to the limits to just demean someone with your worthy knowledge. Cheers mate! Try being a bit lenient with someone as schlimazel as I'm. Just cuz we don't have the level of knowledge pertaining to you, we wouldn't doss about since we aren't qualified enough.
    1
    Mate, will this stock recovery work in Indian model(BKL-L09-C675)?
    Ofc it does
    1
    Mate, after restoring this recovery, will I be able to receive system update for the device. I have rooted with Magisk and twrp is installed. what to do to receive system update automatically?. please give detailed steps. Thank you.

    Not sure, as it might check integrity before giving updates. Just download Firmware Finder app and check for updates constantly.
    1
    Mate, after restoring this recovery, will I be able to receive system update for the device. I have rooted with Magisk and twrp is installed. what to do to receive system update automatically?. please give detailed steps. Thank you.
    You will receive the updates but you won't be able to install them with TWRP. Simply flash the stock recovery and the updates will self install when they come. You'll have to root again with Magisk after the updates, but that's a simple process.

    Sent from my Honor View 10 using XDA Labs