2

Can I flash a custom recovery (say, the one from Replicant with heimdall flash --kernel path/to/recovery.img, or ClockWorkMod) and then be able to boot the old system?

Without reinstalling the main OS of my Samsung Galaxy S.

I'm interested in using the commands from the recovery system without re-installing the main system.

1

3 Answers 3

2

I just tried this, going from TWRP and LineageOS flashing the Replicant Bootloader.

First of all you will have to flash it using the command from the replicant guides: https://redmine.replicant.us/projects/replicant/wiki/RecoveryInstallationWithHeimdall#Flash-the-recovery-image (archive)

I won't include the table in that link, this question is not about that, but do note that some devices need you to flash to the BOOT sector of your device. This means you won't be able to boot the previously installed system. Needless to say, I was not able to boot LineageOS going from TWRP to Replicant bootloader.

However, if you were to go from stock to TWRP, most TWRP installation processes do not cause any data loss and will allow you to boot the previously installed system, see for example: How to flash and root OnePlus 3T on Linux? or Rooting already unlock phone without losing data, possible?

However, unlocking a stock bootloader will usually cause the device to factory reset (resulting in data loss), so if you need to unlock to install a custom bootloader you will not be able to boot your previously installed system. See Why does unlocking the bootloader wipe phone?

Upgrading a bootloader usually wont re-lock, or cause data loss. See Does upgrading bootloader wipe your data?

0

You can root your device without replacing the stock recovery or rom. However, if you ever want to flash a different ROM you will need to flash another recovery like ClockWorkMod or TWRP.

You can even run the stock rom with a 3rd party recovery but you most likely won't be able to take OTA OS updates since those require the stock recovery.

2
  • Yes, I wanted to "run the stock rom with a 3rd party recovery". Unfortunately, my command didn't result in such a configuration. So I was in doubt whether this is possible at all. Commented Apr 22, 2013 at 0:09
  • Once you have root and SU installed you can install ROM Manager and flash either CWM or TWRP from ROM Manager app. But, what benefit is there to 3rd party recovery if you aren't going to flash ROMs?
    – Zooks64
    Commented Apr 22, 2013 at 0:13
-2

Flashing recovery does not affect your system. So, totally, OF COURSE! 😀

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .