Updating firmware with rooted phone and custom kernel - ONE Q&A, Help & Troubleshooting

I rooted my OnePlus when it first came out and had a custom kernel on it, and since then I haven't updated it. I want to update to CM13 but am not familiar with the process that needs to be done without losing any data or risk bricking my phone. I believe it has TWRP recovery and Franco kernel (I don't have the phone with me so can't verify).
Do I simply unlock the bootloader, backup data and then flash the new custom ROM? Would I be able to flash a custom ROM without losing root? I want to keep the root but go back to stock kernel.
Thanks

When you unlock your bootloader you'll lose all your data. However if your bootloader is already unlocked, proceed to flash this TWRP version (unofficial TWRP 2.8.6.0.6 by kumajaya): www.androidfilehost.com/?fid=23991606952609056
Other versions of TWRP have bugs not updating the firmware properly.
You'll lose your root but CM13 nightlies have their own root in the developer settings. Or you can flash SuperSU 2.67 on top after you flash the ROM if you prefer SuperSU.
Oh and make a TWRP nandroid backup first before you do anything. Backup the firmware partition too if it's not checked by default.

Related

[Q] GNex TOOLKIT V7 Drivers, Backup, Unlock, Root, CWM, Flash, Mods + MUCH MORE [GSM

The toolkit states that a full bootloader unlock, root, and cwm recovery installation is possible either separately or with “1 –click”. Elsewhere in the forum it is stated that android will revert to stock recovery if cwm is flashed to a stock ROM. Does the toolkit method solve the problem of reverting to stock recovery if not immediately flashing a custom ROM and staying with stock ROM? Or does this mean it will always revert to stock recovery when booting back into stock ROM unless the specific file listed is removed from /system?

[Q] Root + Custom Rom

Hello Everybody!
I am new to android and this rooting/custom recovery scene. I have rooted my Nexus 5 on 4.3, updated to 4.4 then rereooted, but that's it.
I have now done this:
Previously running stock android 4.4.2 with root/unlocked bootloader/TWRP/SuperSU working great
Wiped device (via TWRP bootloader)
Flashed custom rom (Omnirom, 4.4.2)
Installed SuperSU from gplay store
I opened SuperSU and it says I'm not rooted. What have I done wrong? And can you help me understand this process, because evidently the custom Rom (or the wipe beforehand?) broke my root. Can I get it back without flashing Omnirom again?
Thanks!
Adam
P.S. Anybody know a good Multiwindow Rom for Nexus5?
Download and flash the SuperSU.zip through TWRP from here
Then when you open SuperSU should work. You can apply this same procedure for most ROMs if they don't come pre-rooted like Omni.
Additionally, there is a setting which you should tick "Install SuperSU backup script" which means it should remain rooted after you flash an OmniROM delta update.

[Q] Update to Lollipop without USB and with root

Hi, my N5 has a problem, it has the USB port broken so i can't connect it to the PC. It now has KitKat 4.4.4.
Here is my problem:
I want to update to Lollipop but i can't do it with Factory image and/or Sideload because the USB problem.
I tried to "unroot" but i couldn't do it right, i've downloaded the 5.0 OTA and my phone rebooted with a red triangle and it said "error" i know this is because i still keep my phone rooted.
So i would like to know 2 things:
1) How do i unroot definitely? because i did it before but it seems it didn't do right, i clicked "unroot" on SuperSU (i read that sometimes when you press "unroot" it doesn't erase all the folders and files so you have to do by your own, but what files and what folders are they?)
2) If i unroot and i if update to Lollipop, can i be root without using the USB port?
Of you're rooted, why would you want the stock ota anyway? There are PLENTY of 5.0 Roms in the development section with custom kernels (custom kernels are needed in 5.0 lollipop for root). Flash one of those in recovery. Make sure you have the latest TWRP which you can flash with flashify if you can't fastboot flash using USB.
Sent from my Nexus 5 using xda premium
Pain-N-Panic said:
Of you're rooted, why would you want the stock ota anyway? There are PLENTY of 5.0 Roms in the development section with custom kernels (custom kernels are needed in 5.0 lollipop for root). Flash one of those in recovery. Make sure you have the latest TWRP which you can flash with flashify if you can't fastboot flash using USB.
Sent from my Nexus 5 using xda premium
Click to expand...
Click to collapse
Is really needed to flash a custom kernel to get root on Lollipop? I'm asking because in this thread [ROM] [STOCK] Android 5.0 LRX21O - Stock/Flashable (11/12/14) FAQ nº 2 it says:
Q: How do I get root?
A: If you want to keep the stock kernel, use CF-Auto-Root. If you flash a custom kernel, just flash the newest SuperSU ZIP afterwards.
Click to expand...
Click to collapse
So i understand that we can have root with stock kernel, is this ok or did i misunderstood something?
If i want to flash a custom kernel, where can i get "SuperSU" Zip to get root? and does it need to clean something after or before flashing this file? caché, data, etc?
Yes CF AUTO ROOT will allow your to root the stock image. However since youre already rooted youre running into issues flashing it successfully. I attached the SU zip below. My recomendation is if you want the stock ota image, download it from the developer thread, flash francos custim kernel for lollipop ans then flash the root zip i have attached below. I would complete a full wipe of system, data, and both caches (not internal storage or you will lose all on sd card) before flashing. Once you wipe just flash the the rom, kernel and root zip in that order.
Pain-N-Panic said:
Yes CF AUTO ROOT will allow your to root the stock image. However since youre already rooted youre running into issues flashing it successfully. I attached the SU zip below. My recomendation is if you want the stock ota image, download it from the developer thread, flash francos custim kernel for lollipop ans then flash the root zip i have attached below. I would complete a full wipe of system, data, and both caches (not internal storage or you will lose all on sd card) before flashing. Once you wipe just flash the the rom, kernel and root zip in that order.
Click to expand...
Click to collapse
Thanks!!!
It worked perfectly!
I tried first with CF AutoRoot but it failed, but it worked with SuperSU.

Unable to get OTA Updates installed on TWRP - Need to go back to stock recovery

Hi All,
Background:
Installed TWRP recovery to downgrade to KitKat from Android ver 5.0.2 / COS 12.0 YNg1TAS17L
( I guess the changes in lollipop made me to do so).
But after installing TWRP, for some reason or other I did nothing and now the issue is the OTA are not getting installed. From other similar thread I know that we can download the OTA zip and install through TWRP and I am not looking to get into that...as I am giving this device to my family.
Help Required:
1) Is there a way to uninstall TWRP and go back to stock recovery without losing any data?
( Is it as simple as flashing recovery image from the Stock ROM?)
2) Using the OnePlus tool kit can we flash the stock ROM which will also restore the stock recovery?
(If so is it possible to flash the latest ROM 5.1.1 or CM12.1)
I just need guidance here with steps on what will be the best and safe approach without frying up my device.
Please suggest
droidfry said:
Hi All,
Background:
Installed TWRP recovery to downgrade to KitKat from Android ver 5.0.2 / COS 12.0 YNg1TAS17L
( I guess the changes in lollipop made me to do so).
But after installing TWRP, for some reason or other I did nothing and now the issue is the OTA are not getting installed. From other similar thread I know that we can download the OTA zip and install through TWRP and I am not looking to get into that...as I am giving this device to my family.
Help Required:
1) Is there a way to uninstall TWRP and go back to stock recovery without losing any data?
( Is it as simple as flashing recovery image from the Stock ROM?)
2) Using the OnePlus tool kit can we flash the stock ROM which will also restore the stock recovery?
(If so is it possible to flash the latest ROM 5.1.1 or CM12.1)
I just need guidance here with steps on what will be the best and safe approach without frying up my device.
Please suggest
Click to expand...
Click to collapse
Numerous other threads on the same subject... I don't understand why you are not ready to flash the OTA through TWRP but you are through stock recovery... It's the same thing... Don't use toolkit, they are the ones, in 99% of the cases, that "fry" your phone... As soon as TWRP is installed no OTA will automatically, you will have to flash them manually.

Why is my custom kernel being lost after flashing a new rom?

Hi all. I'm a bit of a noob who just really started digging into custom roms and rooting this month. A friend helped me root Lollipop when I first got this phone and I've been putting off updating to marshmallow for 6 months, but learned how over the past weekend and I'm loving it! Small problem, though, and I don't know if it's even a real one, but here it is. After all is said and done flashing the XstreStoLite 3.3.1 rom and Aroma add on pack, everything works fine, but the arter97 kernel is no longer listed as the active kernel, even though in XstreStoLite's settings when presented with the overwrite kernel option I always selected No. Is there a reason this is happening? Can I just reflash the kernel now, and is it safe to do so without brick in the phone? Does this rom or any other necessary apps/root features require the custom kernel? Thanks! This was my process in getting my phone up and running:
Factory reset
Flash stock 6.0.1 with Odin
Flash arter97 recovery with Odin
Recovery mode to flash arter97 kernel and superSU
Flash XstreStoLite in recovery, factory reset
Flash aroma addon
Additional random question I had: at what point, if any, should I be flashing the custom bootloader and modem, and does a factory reset/cache wipe delete those or is it one and done? Thank you!
The bootloader and modem flashing is needed if you want to move from 5.x lollipop to 6.x marshmallow.
If you are allready on 6.x there is no need.
If you lost your custom kernel you can reflash it in twrp and after wipe cache/dalvik cache.
If you flash the corect version of kernel the is no problem of softbrick.
Flash a 6.x kernel on a 6.x rom

Categories

Resources