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.

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.

  • 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. – imz -- Ivan Zakharyaschev Apr 22 '13 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 Apr 22 '13 at 0:13
-2

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

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.