The first method is via ODIN, which is an official tool from Samsung for flashing firmware or recoveries on your phone. The second method allows you to install stock firmware via Smart Switch.
The biggest obstacle to using a ROM to revert to stock is that you’re relying on someone else to create the ROM for you. If you have a popular phone with an active community on the XDA Developers forums, then this won’t be a problem.
This particular distribution is not an actual custom ROM in the truest sense of the term, but the extensive modifications make it quite an equivalent one in the MIUI ecosystem. The developers also offer a “Plus” variant of the ROM, which features a handful of extra customization options that aren’t present in the basic distribution. Truth be told, the LineageOS project doesn’t really need an introduction at this point.
Afterwards stock firmware ROM, in order to successfully and swiftly backup Android data, dr.fone is what you can choose to perform that. After that, we choose “Backup & Restore” from the app homepage. It is always recommended that your Android device battery must be charged above 50% at least. If in case, your device runs out of power during Android ROM backup or device backup, it may harshly impact the device.