[Q] Restore stock rom without wiping? - Nexus 5 Q&A, Help & Troubleshooting

Is there any way to restore stock rom without wiping? I currently have stock rom with mods and franco kernel.

Someone told me to flash a .zip of the stock rom on one of the threads on here to achieve that.
I wanted to go back to stock after trying Franco. Then I tried elementalx and my battery life went up so much I don't want to go back.
Sent from my Nexus 5 using xda app-developers app

overkillZ said:
Is there any way to restore stock rom without wiping? I currently have stock rom with mods and franco kernel.
Click to expand...
Click to collapse
Flash the system.img and boot.img files (found in the factory image) using fastboot.

If you backed up your phone or made a nandroid before messing around with your phone, that's usually your best option.
I'd personally advise against just flashing without wiping, because the part of the point would be to remove the garbage files, which wouldn't really happen.

overkillZ said:
Is there any way to restore stock rom without wiping? I currently have stock rom with mods and franco kernel.
Click to expand...
Click to collapse
You can flash stock ROM and kernel (system.img and boot.img) from the factory image without wiping. While it's okay to go from a custom kernel back to stock kernel, I wouldn't go from a custom ROM back to stock ROM without completely reflashing.

BirchBarlow said:
You can flash stock ROM and kernel (system.img and boot.img) from the factory image without wiping. While it's okay to go from a custom kernel back to stock kernel, I wouldn't go from a custom ROM back to stock ROM without completely reflashing.
Click to expand...
Click to collapse
I have stock rom but but with small mods like dalvik optimizing and xposed etc

Related

[Q] Flashing kernals and roms questions

I have a kernel that i found that i want to flash. When you flash a kernel, does it replace a flashed ROM or do they combine?
Also, when you flash anything (ROM or kernel) does it replace the stock ROM or does it take a spot next to it? Can you make several spots so there can be more than one ROM? What is wiping out a ROM? If you leave a ROM, can you save your setting so when you go back you don't have to start over again? Can you back up contacts,messages, and apps from stock ROM and extract the data to the new ROM?
I AM CONFUSED
pranker98 said:
I have a kernel that i found that i want to flash. When you flash a kernel, does it replace a flashed ROM or do they combine?
Also, when you flash anything (ROM or kernel) does it replace the stock ROM or does it take a spot next to it? Can you make several spots so there can be more than one ROM? What is wiping out a ROM? If you leave a ROM, can you save your setting so when you go back you don't have to start over again? Can you back up contacts,messages, and apps from stock ROM and extract the data to the new ROM?
I AM CONFUSED
Click to expand...
Click to collapse
1. No, they "combine"
2. It replaces it when you flash
3. Yes, but its more complicated than just flashing multiple roms. There is an app but it doesn't support Sensation.
4. Wiping a ROM is just that, wiping your phone of the ROM along with all your app,data and anything else on the phone(SD card not effected).
5. Umm. I don't understand your question completely but yes flashing a new ROM over an old ROM will preserve your data but you can flash a different rom and expect it to work. For example ARHD-->ARHD(updated) is OK but ARHD --> Insertcoin wont work.
6. Yes, its called titanium backup. Look it up.
thanks. after reading this, I stumbled on radios. what are radios?
pranker98 said:
thanks. after reading this, I stumbled on radios. what are radios?
Click to expand...
Click to collapse
Radio is what gives your phone signal. which version works best for you will depend on your location and carrier so you will just have to experiment. its generally advised that you flash the latest recommended version stated on the rom your using
pranker98 said:
I have a kernel that i found that i want to flash. When you flash a kernel, does it replace a flashed ROM or do they combine?
Also, when you flash anything (ROM or kernel) does it replace the stock ROM or does it take a spot next to it? Can you make several spots so there can be more than one ROM? What is wiping out a ROM? If you leave a ROM, can you save your setting so when you go back you don't have to start over again? Can you back up contacts,messages, and apps from stock ROM and extract the data to the new ROM?
I AM CONFUSED
Click to expand...
Click to collapse
kevinliu2336 said:
1. No, they "combine"
2. It replaces it when you flash
3. Yes, but its more complicated than just flashing multiple roms. There is an app but it doesn't support Sensation.
4. Wiping a ROM is just that, wiping your phone of the ROM along with all your app,data and anything else on the phone(SD card not effected).
5. Umm. I don't understand your question completely but yes flashing a new ROM over an old ROM will preserve your data but you can flash a different rom and expect it to work. For example ARHD-->ARHD(updated) is OK but ARHD --> Insertcoin wont work.
6. Yes, its called titanium backup. Look it up.
Click to expand...
Click to collapse
The only thing I'd add is that for:
o If you leave a ROM, can you save your setting so when you go back you don't have to start over again?
You can do a Nandroid backup from CWM recovery, it takes a snapshot of the ROM, Kernel, Data,.. You can then play with other ROMs. Then at a later date restore the Nandroid backup from CWM and you're back at the earlier ROM.
It's extremely important that when you play with ROMs you backup a working version. It saves a lot of swearing when you lose a nice working system unintentionally. It's happened a couple of times to me and it's a bugger.

[Q] Flashing the kernel - questions

I installed the beastmode kernel on my phone a while back. I did this after flashing cleanrom 4.2.2, as I was getting what I thought were dropout issues. However, if I would like to flash my phone to a different rom, do I need to reflash the kernel back to stock, or will the rom already have the kernel included? I made a backup of my phone in TWRP before updating the kernal. If I restore the backup, will the kernel revert back to the stock kernel (I'm S-OFF)?
Thanks!
Since you are s-off, if you flash a new ROM, the kernel will also be flashed. The kernel is typically flashed automatically whenever a ROM is flashed. The exception, for those that are still s-on the kernel will not flash automatically, but needs to be done separately in fastboot.
If you simply want to revert to stock kernel and stay on the current ROM, then you can restore your nandroid (which was made pre-Beastmode) or "dirty flash" the ROM (just wipe Dalvik and cache, then flash it again).
redpoint73 said:
Since you are s-off, if you flash a new ROM, the kernel will also be flashed. The kernel is typically flashed automatically whenever a ROM is flashed. The exception, for those that are still s-on the kernel will not flash automatically, but needs to be done separately in fastboot.
If you simply want to revert to stock kernel and stay on the current ROM, then you can restore your nandroid (which was made pre-Beastmode) or "dirty flash" the ROM (just wipe Dalvik and cache, then flash it again).
Click to expand...
Click to collapse
Thank you for your quick response!!!

Android M - Kernel

I've rooted my phone using the despair kernel on Android M. I flashed via recovery but experiencing WiFi and cell drop outs every ten minutes simultaneously. Not had much experience flashing kernels - is there anything else I should have done?
You shoulda just used blackbird5308's stock root enabled kernel
Sent from my Nexus 5 using Tapatalk
Why should I? Are there known issues on despair? Can you just flash kernels without wiping?
Jinson7 said:
Why should I? Are there known issues on despair? Can you just flash kernels without wiping?
Click to expand...
Click to collapse
GIVE IT A SHOT:
you could try StephanMc's kernel. it's stock m preview 3 with root.
if your problems don't occur with this kernel they were either related to a bad dirty flash or related to the kernel.
here's the link:
http://forum.xda-developers.com/goo...om-android-m-preview-2-flashable-zip-t3157299
FROM MY EXPERIENCE:
i'm also running m preview 3 and if i want to try a new custom kernel i always flash StephanMc's kernel first (because it's purely stock + root).
then i wipe dalvik + cache and flash the desired kernel.
if you just want a rooted phone, you can simply stick to StephanMc's kernel.
PLEASE NOTICE:
some custom kernels recommend to wipe system and data and install the stock image (or custom rom) too.
IMPORTANT:
always backup your data! (see titanium backup)
SUMMARY:
as long as flashing stock kernel and wiping dalvik+cache before flashing my chosen custom kernel i will stick to this.
if you experiencing any problems completely wipe your phone, flash stock image, flash custom rom/kernel and restore your data backup.

Help. Unable to revert back to stock/stock based rom, only CM works. (N910C)

Hi.
Im a noob on XDA but have enjoyed the freedom of custom roms for some time now on my note 4 (N910C). So far it has only been stock based touchwiz roms. A few days ago i decided to give CM13 a go and since then i have been unable to revert back. Every touchwiz rom (stock and custom) i have tried just ends in a bootloop but when i flash CM13 again it boots up just fine.
I have tried flashing numerous android 6.0.1 stock roms through odin, even from different regions but still for the same version. Its always stuck in a bootloop.
Tried flashing stock and then immediately flashing custom stock based rom (both clean install after wiping and trying to dirty flash over stock rom)
I have done all the suggestions of factory resetting, wiping caches and you name it after clean flashes and even tried them with dirty flashes. Whatever i do i cannot get any stock or stock based rom to boot up.
A few months ago i tried out cm12.1 and had no problem going back to a stock based rom, but after CM13 my phone absolutely refuses to boot anything stock or stock based.
I would appreciate any advice and suggestions. Please ask if theres any more info needed of my device or roms i already tried.
JackalJC said:
Hi.
Im a noob on XDA but have enjoyed the freedom of custom roms for some time now on my note 4 (N910C). So far it has only been stock based touchwiz roms. A few days ago i decided to give CM13 a go and since then i have been unable to revert back. Every touchwiz rom (stock and custom) i have tried just ends in a bootloop but when i flash CM13 again it boots up just fine.
I have tried flashing numerous android 6.0.1 stock roms through odin, even from different regions but still for the same version. Its always stuck in a bootloop.
Tried flashing stock and then immediately flashing custom stock based rom (both clean install after wiping and trying to dirty flash over stock rom)
I have done all the suggestions of factory resetting, wiping caches and you name it after clean flashes and even tried them with dirty flashes. Whatever i do i cannot get any stock or stock based rom to boot up.
A few months ago i tried out cm12.1 and had no problem going back to a stock based rom, but after CM13 my phone absolutely refuses to boot anything stock or stock based.
I would appreciate any advice and suggestions. Please ask if theres any more info needed of my device or roms i already tried.
Click to expand...
Click to collapse
You might be having kernel issues. If the stock you're flashing is a flashable zip then it might not include the stock kernel, if it doesn't include the stock kernel then its leaving the custom kernel from CM13. If that's the case it won't work because stock won't work with a CM kernel.
You said you did the wipes when you flashed, did you mean that you did factory reset, wipe cache and wipe dalvik cache? Or did you mean that you did the advanced wipe options to wipe system partition and data partition before flashing?
If you didn't do the advanced wipe before flashing then it might help if you did them before flashing. Wipe system and wipe data then factory reset then flash ROM then wipe cache and dalvik after flashing then reboot.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS FOR EVERYONE TO SHARE
Droidriven said:
You might be having kernel issues. If the stock you're flashing is a flashable zip then it might not include the stock kernel, if it doesn't include the stock kernel then its leaving the custom kernel from CM13. If that's the case it won't work because stock won't work with a CM kernel.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS FOR EVERYONE TO SHARE
Click to expand...
Click to collapse
I flash stock roms through Odin with the .tar.md5 file.
JackalJC said:
Hi.
Im a noob on XDA but have enjoyed the freedom of custom roms for some time now on my note 4 (N910C). So far it has only been stock based touchwiz roms. A few days ago i decided to give CM13 a go and since then i have been unable to revert back. Every touchwiz rom (stock and custom) i have tried just ends in a bootloop but when i flash CM13 again it boots up just fine.
I have tried flashing numerous android 6.0.1 stock roms through odin, even from different regions but still for the same version. Its always stuck in a bootloop.
Tried flashing stock and then immediately flashing custom stock based rom (both clean install after wiping and trying to dirty flash over stock rom)
I have done all the suggestions of factory resetting, wiping caches and you name it after clean flashes and even tried them with dirty flashes. Whatever i do i cannot get any stock or stock based rom to boot up.
A few months ago i tried out cm12.1 and had no problem going back to a stock based rom, but after CM13 my phone absolutely refuses to boot anything stock or stock based.
I would appreciate any advice and suggestions. Please ask if theres any more info needed of my device or roms i already tried.
Click to expand...
Click to collapse
Usually if it bootloops after flashing with Odin, you boot to stock recovery and factory reset/wipe cache and it should boot after that.
The times that you tried stock and then went back to CM13, are you rooting and reflashing TWRP again so you can flash back to CM13? Or is it leaving custom recovery on the device even after flashing with Odin? If its leaving TWRP on the device then Odin isn't flashing correctly.
Are you flashing the full stock firmware in Odin? Or are you flashing a modified stock .tar?
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS FOR EVERYONE TO SHARE
Droidriven said:
Usually if it bootloops after flashing with Odin, you boot to stock recovery and factory reset/wipe cache and it should boot after that.
The times that you tried stock and then went back to CM13, are you rooting and reflashing TWRP again so you can flash back to CM13? Or is it leaving custom recovery on the device even after flashing with Odin? If its leaving TWRP on the device then Odin isn't flashing correctly.
Are you flashing the full stock firmware in Odin? Or are you flashing a modified stock .tar?
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS FOR EVERYONE TO SHARE
Click to expand...
Click to collapse
I have tried all the factory reset/wipe cache suggested on other threads and websites i have found regarding bootloops.
When going back to CM13 after trying methods to get stock back i flash TWRP again as flashing stock through Odin replaces TWRP with stock recovery again and then do a restore of CM13 through TWRP with all my necessary apps on, much easier than installing everything again after each try (a fresh install of CM13 also works fine with no problems). I also tried various versions of Odin just in case it was a problem with the version i used but every time i get the same same results.
I am flashing full pure stock from sammobile.

little help needed

Guys i want to try new kernels but no one mentioned how to revert back if iam not satisfied with the kernels or just i have to try different kernels as i see a note saying kernels should be flashed on stock kernel so if i want to flash another kernel over existing custom kernel i have to get back to stock how can i do that will twrp restore works and what partions should i have to restore
Manivannan9444 said:
Guys i want to try new kernels but no one mentioned how to revert back if iam not satisfied with the kernels or just i have to try different kernels as i see a note saying kernels should be flashed on stock kernel so if i want to flash another kernel over existing custom kernel i have to get back to stock how can i do that will twrp restore works and what partions should i have to restore
Click to expand...
Click to collapse
should just flash stock boot img if you want to over ride the kernel wipe the cache as of now none of the kernels use ram disc changes so dirty flashing custom kernel over another works fine for the time being
strikerdj2011 said:
should just flash stock boot img if you want to over ride the kernel wipe the cache as of now none of the kernels use ram disc changes so dirty flashing custom kernel over another works fine for the time being
Click to expand...
Click to collapse
Is this link
Not sure if flashify works with dual partitions or not but it allows u to back up boot.img
You can always just revert back to stock by downloading the full rom from oneplus, and installing it through official twrp. Usually recommend doing a wipe of everything system included, and then adb side loading the full rom. It will state there is no os installed at the end when attempting to reboot, just continue on and your phone will boot.

Categories

Resources