Hello Team, currently I have the following setup on my N5X:
Factory DP4 + magisk root + elementalx 5.02 and I want to update it to latest Oreo version, how can I do it without wiping my data?
Thanks!
You can't ATM. You have to either wait for a custom ROM, or tweak the image to not wipe data.
You can download the dev image file zip and edit the flash-all script/bat and remove the '-w' option (which is wipe) - or you could extract all the img files from the zip and manually flash each one in fastboot - again, except /user. OR, you can flash latest 7.1.2 August kernel, system, and boot imgs (unroot, restore stock images) then check for an ota - I just did this
Thanks! @Bingley
Related
Im running stock ROM 7.1.1 with Latest ElementalX Kernel and latest Magisk + MagiskSU. Also Running latest TWRP 3.1
I haven't updated yet. so I have the march patch, and this recent patch im behind on my 5x. I thought maybe i could just accept the OTA and just reflash magisk and the elementalX kernel afterwards. Oh, and likely would have to do TWRP as well. But accepting the update clicking to restart and install just rebooted me into TWRP. Flashfire doesn't work yet either been waiting a month on that. I get that failure during "uncrypting" error.
I'm slightly new back on the modding scene, until recently have been out of it for years. I did recently make a mistake with an audio mode and had to download the full image and use fastboot to throw that back on my device. Anyway with 7.1.2 out i really do want to update so i need to do it manually, and hopefully without losing my data. (or having to restore it from a backup if possible anyway)
I'd read somewhere that you can download the full images and extract the updated images you need and flash them to your device then your respective addons root kernel ect.. There seems to be lots of way to go about it, but little clear on how to do this so that's what brings me here to this post. What's the best way to manually update (add security patches) if im running Magisk and magiskSU.
Thanks in Advance.
https://elementalx.org/how-to-install-android-monthly-security-updates/
After you flash the /system /boot /vendor (I would also do bootloader and radio), reboot into TWRP and install kernel & Magisk.
To my understanding, I would:
1. Download and flash the latest factory images (July even though PA is June-based? Should I download/flash June?) and boot into system
2. Fastboot boot into twrp RC1 then flash RC2
3. Wipe cache, dalvik cache, system, and data
4. Install ROM and Gapps then TWRP RC2
5. Reboot into system
6. Reboot into recovery and install the vendor.img (again, June or July?)
7. Reboot into system
8. Reboot to recovery and flash SuperSU then TWRP RC2
9. Reboot into system and have fun
Any corrections? I'm new to this new dual-partition thing and I'm honestly very confused as to what to do. I've looked on several threads here but one step or another I end up in a bootloop or a ramdump issue.
Thanks!
If PA is June based you should flash the June factory image, not July. You should do a flash-all.bat of the June stock image separately to both slots a & b. After you flash PA there is no reason to flash the vendor image separately --it will still be there from your flash of the stock image. When you update to a July or August build of PA is when you would need to separately flash the updated vendor image because custom Roms don't automatically update the vendor image, radio or bootloader. If you are on a custom rom you are responsible for keeping those up to date yourself.
I did some searching, but could not see a guide for moving from Magisk rooted 8.1.0 to Magisk rooted 9.0. I believe I need to uninstall Magisk, then install the update, but not sure of the exact process. Also, is it better to wipe the data when going from 8.1.0 to 9.0 or doesn't matter?
Thanks in advance!
There's two ways you can do this.
One, you can sideload the OTA using ADB (if on stock recovery), or you can flash the OTA through TWRP.
Two, you can download the factory image, and manually flash the bootloader and radio, then update /system WITHOUT the -w flag, if you don't want to wipe data.
Any time you flash a software update, whether it's the OTA or the factory image, it WILL overwrite /boot, so you will lose Magisk and any custom kernel and recovery. Simply boot TWRP using fastboot, flash Magisk (and TWRP and kernel if desired), and you'll be good to go.
No need to wipe data. My process for installing OTAs and re-rooting has always been the same and it's no different with the 9.0 update other than one exception I encountered (patching the boot image AFTER updating).
I prefer the boot image patching method:
Download the latest platform-tools from Google
Download both the OTA and full factory images
Extract boot.img from the factory image
If already rooted prior to updating, re-flash current stock boot image
Sideload OTA
Patch the extracted boot image with Magisk (make sure you're on the latest version; 16.7 beta channel)
Flash patched boot image
Normally I patch the boot image prior to sideloading the OTA but it resulted in an endless boot after the 9.0 update.
Thanks guys. I actually found a thread I bookmarked previously on this topic. Do you think this would work well still? :
https://forum.xda-developers.com/pixel-2-xl/how-to/guide-how-to-install-google-software-t3760535
Also I saw some people mentioning trouble with Magisk after 9.0 update. Did you encounter that or anything special to consider there?
machx1111 said:
Thanks guys. I actually found a thread I bookmarked previously on this topic. Do you think this would work well still? :
https://forum.xda-developers.com/pixel-2-xl/how-to/guide-how-to-install-google-software-t3760535
Also I saw some people mentioning trouble with Magisk after 9.0 update. Did you encounter that or anything special to consider there?
Click to expand...
Click to collapse
Here's a bit more specific guide for updating to 9.0
https://forum.xda-developers.com/pi...de-reference-8x-oreo-to-t3826330/post77269862
I'm going nuts here. I can't get Magisk to install properly on a Pixel device.
1) Pixel XL (non-Verizon and unlocked)
2) OS - Stock Android 9.0 / Feb. 2019 - System Image just installed fresh
3) TWRP 3.2.3.1 loaded image via fastboot
4) Magisk version 18.1 installed
Issue: Device stuck at Can't load Android system. The only way to fix it is to install the Magisk uninstaller but then I still don't have root.
I tried removing my pin (read that in the thread) and the issue still persists. I also tried an older version of Magsik and tried patching the boot.img file with the same result.
Has anyone rooted a clean install of the Feb. 2019 Android 9.0 system image? I'm at a loss. The only thing I can think to do at this point is try an older system image and see what happens.
clambert11 said:
I'm going nuts here. I can't get Magisk to install properly on a Pixel device.
1) Pixel XL (non-Verizon and unlocked)
2) OS - Stock Android 9.0 / Feb. 2019 - System Image just installed fresh
3) TWRP 3.2.3.1 loaded image via fastboot
4) Magisk version 18.1 installed
Issue: Device stuck at Can't load Android system. The only way to fix it is to install the Magisk uninstaller but then I still don't have root.
I tried removing my pin (read that in the thread) and the issue still persists. I also tried an older version of Magsik and tried patching the boot.img file with the same result.
Has anyone rooted a clean install of the Feb. 2019 Android 9.0 system image? I'm at a loss. The only thing I can think to do at this point is try an older system image and see what happens.
Click to expand...
Click to collapse
I flashed the Feb 2019 Factory image and was able to fastboot boot TWRP and successfully install Magisk 18.1. Are you flashing TWRP (permanent install?) or booting it? You might try booting it only to install Magisk to minimize your variables. Have you tried reflashing the full Factory image clean to ensure you truly have a good initial install before trying to install Magisk? Platform tools up to date? Your steps seem to be pretty straightforward - so not sure what could be going wrong. Good luck!
sb1893 said:
I flashed the Feb 2019 Factory image and was able to fastboot boot TWRP and successfully install Magisk 18.1. Are you flashing TWRP (permanent install?) or booting it? You might try booting it only to install Magisk to minimize your variables. Have you tried reflashing the full Factory image clean to ensure you truly have a good initial install before trying to install Magisk? Platform tools up to date? Your steps seem to be pretty straightforward - so not sure what could be going wrong. Good luck!
Click to expand...
Click to collapse
I'm not flashing TWRP, just booting into it. My platform tools were a little out of date initially but I have since updated them. I think I was 2 major versions behind.
Guess I'll just do it again. I'll try it first without restoring data since that takes forever for me (lots of apps). Thanks for the info. It's reassuring that it should work.
clambert11 said:
I'm not flashing TWRP, just booting into it. My platform tools were a little out of date initially but I have since updated them. I think I was 2 major versions behind.
Guess I'll just do it again. I'll try it first without restoring data since that takes forever for me (lots of apps). Thanks for the info. It's reassuring that it should work.
Click to expand...
Click to collapse
If your platform-tools are r28.0.1
- fastboot flash boot boot.img --slot all
- fastboot boot twrp-3.2.3-1.img
- install ElementalX kernel
- tap Add more zips
- select Magisk-18.1.zip
- swipe slider to install
- reboot
Just wanted to update... Updating the Package Tools and reinstalling the factory image fixed my problem. Thanks for the info!
clambert11 said:
Just wanted to update... Updating the Package Tools and reinstalling the factory image fixed my problem. Thanks for the info!
Click to expand...
Click to collapse
I have a similar issue. I have updated platform-tools and still get the unbootable issue with Magisk. I installed the latest factory firmware and didn't erase -w so it is a fresh install. I do want to use the TWRP recovery, so I sideload that first and then side load Magisk-18.1.zip and it has the big G for a while, then reboots into recovery. I am able to run Magisk uninstaller and everything goes back to normal (sans root, of course). Any further advice?
Ivanstein said:
I have a similar issue. I have updated platform-tools and still get the unbootable issue with Magisk. I installed the latest factory firmware and didn't erase -w so it is a fresh install. I do want to use the TWRP recovery, so I sideload that first and then side load Magisk-18.1.zip and it has the big G for a while, then reboots into recovery. I am able to run Magisk uninstaller and everything goes back to normal (sans root, of course). Any further advice?
Click to expand...
Click to collapse
Forget side loading!
- fastboot flash boot boot.img --slot all
- fastboot boot twrp-3.2.3-1.img
- tap install select Twrp-3.2.3-1.zip
- swipe slider to install
- reboot recovery
- tap install select Magisk-18.1.zip
- swipe slider to install
- reboot
How can I ota update rooted OOS with twrp recovery?
Darkweb_182 said:
How can I ota update rooted OOS with twrp recovery?
Click to expand...
Click to collapse
Official TWRP will not be able to update with the OTA update, only with the full ROM zip. There seems to be some other recoveries capable of that but since I don't have any experience with them, I refrain from naming them.
tnsmani said:
Official TWRP will not be able to update with the OTA update, only with the full ROM zip. There seems to be some other recoveries capable of that but since I don't have any experience with them, I refrain from naming them.
Click to expand...
Click to collapse
So how can I update oos while keeping the root access and not losing twrp recovery?
Darkweb_182 said:
So how can I update oos while keeping the root access and not losing twrp recovery?
Click to expand...
Click to collapse
Assuming that you are on 9.0.2 and want to update to 9.0.3, you wipe system, caches and data (excluding internal storage) and flash 9.0.3 full zip. Then boot back into recovery (without booting into system). You should boot into TWRP. If you do, flash Magisk and boot into system. If stock recovery over writes TWRP, flash TWRP image in bootloader (fastboot) and then Magisk and boot into system.
If you are on Oreo and want OOS 9, it is slightly more complicated. You will have to format data (take a backup of your files and transfer to PC/Laptop) and then boot back into recovery and then flash the ROM and do the steps above. This is because of encryption issues.
tnsmani said:
Assuming that you are on 9.0.2 and want to update to 9.0.3, you wipe system, caches and data (excluding internal storage) and flash 9.0.3 full zip. Then boot back into recovery (without booting into system). You should boot into TWRP. If you do, flash Magisk and boot into system. If stock recovery over writes TWRP, flash TWRP image in bootloader (fastboot) and then Magisk and boot into system.
If you are on Oreo and want OOS 9, it is slightly more complicated. You will have to format data (take a backup of your files and transfer to PC/Laptop) and then flash TWRP in bootloader, boot into it and then flash the ROM and do the steps above. This is because of encryption issues.
Click to expand...
Click to collapse
Yes I'm on 9.0.2 and want to update to 9.0.3
Is there any other way to do it without losing all the data?
Darkweb_182 said:
Yes I'm on 9.0.2 and want to update to 9.0.3
Is there any other way to do it without losing all the data?
Click to expand...
Click to collapse
Beware that there are some reports of the requirement of formatting again when updating from 9.0.2 to 9.0.3, though I did not face it. A backup is a must (on PC/Laptop, not on the phone itself).
I don't know of any other 'safe' way of doing it without data loss (assuming that by data, you mean internal storage).
How to update to 9.0.3
Darkweb_182 said:
How can I ota update rooted OOS with twrp recovery?
Click to expand...
Click to collapse
You cant update with OTA updates, you need the full rom.
I dont know how you updated to (8.0 to 9.0 the first time),
i unrooted and reset my prone while still on 8.0
and then i updated to 9.0 with official recovery after that i installed twrp and rooted with magisk.
If you dit anything different you might run into problems.
1. Download and update to the latest magisk in TWRP. (If you already have it installed skip this, but still download it to a folder on your phone).
2. Download the full rom to your phone, full rom here:
https://forum.xda-developers.com/oneplus-3/how-to/rom-oxygen-os-9-0-3-android-pie-oneplus-t3937636.
3. Install the rom with twrp, no need to wipe anything.
4. Right after install the latest version of magisk.
5. Reboot your phone to system.
6. Wait until phone starts (it might take up to 7/10 minutes).
7. Done
jeffrey268 said:
You cant update with OTA updates, you need the full rom.
I dont know how you updated to (8.0 to 9.0 the first time),
i unrooted and reset my prone while still on 8.0
and then i updated to 9.0 with official recovery after that i installed twrp and rooted with magisk.
If you dit anything different you might run into problems.
1. Download and update to the latest magisk in TWRP. (If you already have it installed skip this, but still download it to a folder on your phone).
2. Download the full rom to your phone, full rom here:
https://forum.xda-developers.com/oneplus-3/how-to/rom-oxygen-os-9-0-3-android-pie-oneplus-t3937636.
3. Install the rom with twrp, no need to wipe anything.
4. Right after install the latest version of magisk.
5. Reboot your phone to system.
6. Wait until phone starts (it might take up to 7/10 minutes).
7. Done
Click to expand...
Click to collapse
I switched from custom rom to oos 9.0.2
So basically just dirty flash oos 9.0.3 from twrp?
Darkweb_182 said:
I switched from custom rom to oos 9.0.2
So basically just dirty flash oos 9.0.3 from twrp?
Click to expand...
Click to collapse
Yes, but have a backup.