How to operate with Stock ROM - Nexus 5X Q&A, Help & Troubleshooting

Hi,
I have question. All my devices (present and also all previous) I have rooted, unlock bootloader, have custom recovery and so on.... and I flash always some custom ROM. And now I have idea, that I want to used as daily driver customized Stock ROM. I know it's nothing new, but I want to keep:
- custom recovery
- unlock bootloader
- root
- busybox
I know, that it is very easy. But - and now my question (it is what I don't know) - when comes some monthly update, how can I do update to latest Stock ROM (downloaded from Google Factory Image) without lost of unlock bootloader, root without losing data and so on.....
How can I update Stock ROOTed ROM with keep all data and settings?
I can imagine, that I flash only system.img which I root after that or something like this. Maybe is this beginners question, but I want to try it and I'm not sure how to....
Can somebody describe this procedure step by step (first flash and each update).
Thank you in advance

Just extract the zip you download from Google Factory Images and flash system, vendor and boot via fastboot.

https://elementalx.org/how-to-install-android-monthly-security-updates/

....EDIT....
Everything seem to be fine. My previous problem was that I tried to flash wrong version of SuperSU....

Related

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

Gnex Toolkit option 10 = Boot into custom recovery without permanently flashing it. I understand that this means that the stock recovery won't be overwritten. Does it therefore mean that you can use a custom recovery to flash zip files from sd partition without using/losing stock recovery?
NB Why can't I ask this question at the gnex toolkit thread? I don't appear to be allowed to join in.
optom2000 said:
Gnex Toolkit option 10 = Boot into custom recovery without permanently flashing it. I understand that this means that the stock recovery won't be overwritten. Does it therefore mean that you can use a custom recovery to flash zip files from sd partition without using/losing stock recovery?
NB Why can't I ask this question at the gnex toolkit thread? I don't appear to be allowed to join in.
Click to expand...
Click to collapse
Yep, it means exactly that. You could do the same using the fastboot command fastboot boot <recovery-name>.img if you decide to ever learn to use fastboot and ADB (which you should ).
Unlawful said:
Yep, it means exactly that. You could do the same using the fastboot command fastboot boot <recovery-name>.img if you decide to ever learn to use fastboot and ADB (which you should ).
Click to expand...
Click to collapse
@Unlawful. Thank you very much for your extremely prompt reply. Perhaps you would be kind enough to indulge me further. The reason I asked the question is that I am currently rooted and using a custom rom (Gummy) but fancy some JellyBean. I understand that I need to flash stock rom 4.0.4 and then flash stock recovery in order to get OTA update (btw do I need to do a system wipe before flashing the stock rom as you do before you flash a custom rom or is is ok just to flash stock without a separate manual wipe?), reboot and see if I get the OTA update immediately. If so I can just go ahead and update. If not I have the OTA update as a flashable zip file I obtained elsewhere in XDA. Hence if I have a stock recovery installed but can use a custom recovery (CWM Touch) I can flash the update as zip using CWM and then re-root and re-flash CWM permanently, all of this being done by the toolkit. Is my thinking correct?

How I can apply Security Patches on a Rooted Rom?

Hi, I have a Nexus 5X with unlocked bootloader and with rooted. Since some days ago, I have a notification with a security update, but with the custom recovery it is not automatically installed.
Is there any way to install this OTA updates?
If you install TWRP (which you should, IMHO), it is easy. I'm not at all experienced, but I did it without losing any data. But with TWRP, you can do a full backup first. Everything I've done came from this single guide: http://forum.xda-developers.com/nexus-5x/general/guides-how-to-guides-beginners-t3206930
martyfried said:
If you install TWRP (which you should, IMHO), it is easy. I'm not at all experienced, but I did it without losing any data. But with TWRP, you can do a full backup first. Everything I've done came from this single guide: http://forum.xda-developers.com/nexus-5x/general/guides-how-to-guides-beginners-t3206930
Click to expand...
Click to collapse
i have TWRP ... and when try to install the updade i end up in recovery mode - after rebooting nothing changed ant the ota update notification is still there
Reyengine said:
i have TWRP ... and when try to install the updade i end up in recovery mode - after rebooting nothing changed ant the ota update notification is still there
Click to expand...
Click to collapse
The updates will not install on a rooted phone. Updates check if your software is stock and if not it will not update, includes recovery partition. Your best bet is to just update the ROM you're on. The ROM developer typically updates his base on a regular basis especially if it's one of the more active ones like Pure Nexus or Chroma among others.
If you really need Google updates to happen then you must go back to stock image and updates will work then.
Edit #2: If you are rooted but stock w/ TWRP, just unroot and flash stock recovery and the updates will work or you can ADB sideload the update zip w/ TWRP.
Reyengine said:
i have TWRP ... and when try to install the updade i end up in recovery mode - after rebooting nothing changed ant the ota update notification is still there
Click to expand...
Click to collapse
The link I provided has explicit instructions. I remembered wrong, though. You don't need TWRP, you need to do it in Fastboot mode, so you need to find the latest Fastboot program, or install the Android SDK. Then follow step 10 in the link I provided.

Rooted 5.01 want to flash 6.01 - will i lose root?

I have 5.01 and I want to update to 6.01. I want to wipe it clean. Got factory image from Google site.
What's the difference between the OTA and factory downloads?
I can just flash the factory in TWRP right? Will I lose root, or will TWRP ask if I want to keep root?
I still have boot loader unlocked.I just can't remember for the life of me, haven't done flashing etc in a few years.
Thanks!
So...not a single person can tell me if I lose root, or if TWRP will re-root?
Please?
N7 is no longer supported by Google and there will be no more OTA.
You can't flash the entire factory image directly from TWRP (but it is doable).
When you flash the factory image, you will lose root, TWRP and all your data.
NRT can simplify flashing, rooting and restoring TWRP.
You have unlocked boot loader
Just fastboot flash all as yiu want clean install
After that fastboot flash twrp
After that flash superSU
Done.
No need for any toolkit's, try to stay away of them and do it manually.
Sent from my XT1565 using Tapatalk
k23m said:
N7 is no longer supported by Google and there will be no more OTA.
You can't flash the entire factory image directly from TWRP (but it is doable).
When you flash the factory image, you will lose root, TWRP and all your data.
NRT can simplify flashing, rooting and restoring TWRP.
Click to expand...
Click to collapse
I know it isn't supported anymore. They still have the image's though.
Im just confused... Long time ago when I was really into all this, I just went to Googles page, downloaded the .zip and flashed it in TWRP. Now, the Google page is different and there isn't just 1 anymore. Can I just open the factory image and unzip the update part and flash that in TWRP?
The OTA files are only for updating from version to version correct? Can't go from what I'm on, 5.01 to the current 6.1 right? That's what I talking about and why I'm so confused now
Googles page used to have the OTA zip to update from prior newest to newest(5.0 to 5.01 for example) but than they also had the full OTA so you could do a 4.0 to 5.1 or whatever. Why they change the site? Which one do I use now to go from my 5.01 to current 6.1?
atifsh said:
You have unlocked boot loader
Just fastboot flash all as yiu want clean install
After that fastboot flash twrp
After that flash superSU
Done.
No need for any toolkit's, try to stay away of them and do it manually.
Click to expand...
Click to collapse
That's the pronlem, normally yes I would do that no problem. I'm in the middle of upgrading my PC after had a surge or something and fried my ****.
That's why I want to do it via TWRP like I always did before. Every time TWRP asked if I wanted to retain root after updating also. So what in the world happened in the last year that It doesn't seem like I can now? Like I said above, I can't find a full update OTA on!y the incremental OTAs...
Syntax323 said:
I know it isn't supported anymore. They still have the image's though.
Im just confused... Long time ago when I was really into all this, I just went to Googles page, downloaded the .zip and flashed it in TWRP. Now, the Google page is different and there isn't just 1 anymore. Can I just open the factory image and unzip the update part and flash that in TWRP?
The OTA files are only for updating from version to version correct? Can't go from what I'm on, 5.01 to the current 6.1 right? That's what I talking about and why I'm so confused now
Googles page used to have the OTA zip to update from prior newest to newest(5.0 to 5.01 for example) but than they also had the full OTA so you could do a 4.0 to 5.1 or whatever. Why they change the site? Which one do I use now to go from my 5.01 to current 6.1?
That's the pronlem, normally yes I would do that no problem. I'm in the middle of upgrading my PC after had a surge or something and fried my ****.
That's why I want to do it via TWRP like I always did before. Every time TWRP asked if I wanted to retain root after updating also. So what in the world happened in the last year that It doesn't seem like I can now? Like I said above, I can't find a full update OTA on!y the incremental OTAs...
Click to expand...
Click to collapse
Ok yes that's possible
If you have twrp already
Check development forum and choose one of the ROM.
Download it to your tablet plus gapps
Wipe system, cache and data leaving internal storage.
Flash ROM reboot, come back to twrp and flash gapps. ( Can do ROM + Gapps in one go)
Download SuperSU and flash to get root.
You can't flash stock image / OTA via twrp.
While you're doing all this try the 7.0 ROM its good enough now.
atifsh said:
Ok yes that's possible
If you have twrp already
Check development forum and choose one of the ROM.
Download it to your tablet plus gapps
Wipe system, cache and data leaving internal storage.
Flash ROM reboot, come back to twrp and flash gapps. ( Can do ROM + Gapps in one go)
Download SuperSU and flash to get root.
You can't flash stock image / OTA via twrp.
While you're doing all this try the 7.0 ROM its good enough now.
Click to expand...
Click to collapse
Ahhh what happened??? Why can you not flash them with TWRP???
Thats what I used to do no problem. Not referring to custom roms either.
I am wanting stock rooted.
I used to download the update when one was released from Google's site, put the update.zip in main directory, go in recovery and flash update.zip. TWRP would ask me if I wanted to keep root, I say yes, reboot, update installs... than i'm on the new Android version still rooted.
How is that not possible now?
I am so annoyed... I never had to go through ADB or fastboot to update to latest. I did everything on my N7, it kept root for me and everything.
I feel so dumb right now its ridiculous lol
So than what way can I go about updating my N7 2013 Wifi, which I currently have 5.01. I am Rooted w/ unlocked bootloader.
What is the best way not using ADB, or a PC at all for that matter to update to the latest, 6.01. If possible, how can I keep root, if not i'm not worried about it, i'll just re-root myself.
I appreciate all the responses, sorry if i'm just being an idiot. I just know for a fact I never had to use ADB or my PC to update and keep root...
I'm not familiar with Stock OTA done with twrp (if that's even possible)
Already told you get a custom ROM, get the one mostly stock or if there's a stock ROM in zip format available.
In future you might need to update that bootloader of yours for newer ROMs
Sorry if this sounds harsh why are you so into keeping root as you can't do it again? It's simple as flashing SuperSU. Root method changed after 6 you cant have old methods with 6.
Best bet for you at the moment.
http://forum.xda-developers.com/showthread.php?t=3219148
Sent from my XT1565 using Tapatalk

OTA Update without data loss from 5.0.2 to 5.0.3 and Unlocked Bootloader

I have an important question.
I'm currently in stock 5.0.2, with unlocked bootloader, no custom recovery, and no root.
Now I'm getting this screen in the Update menú: "OEM unlock is detected, system will begin downloading the full upgrade package. To ensure your data integrity please perform a backup" (see attached image).
Can anybody confirm if it is safe to update (from 5.0.2 to 5.0.3, in my case) with an unlocked bootloader (with stock recovery, and no root)?
I read in some post of OP5 forums (not 5T) that upgrading from Nougat to Oreo with an open bootloader could result in a bootloop, forcing to "wipe data" for getting the device to boot, and hence losing all data... I know that if I lock the bootloader again, it will wipe my data, and I don't want to.
I also know that a modified system (with custom recovery or root) could result in a bootloop after update, but I want to emphasize that my OP5T has just an unlocked bootloader, but it has stock recovery and it is not rooted.
So, is it possible to update to 5.0.3 with an unlocked bootloader (stock recovery, no root) without any issues or data loss?
The strangest thing is that I hadn't any warning like that when I upgraded from 4.7.6 (Nougat) to 5.0.2 (Oreo)...
Thanks in advance.
I upgraded my phone with a custom recovery installed and had no issues at all, so having the OEM recovery shouldn't give you trouble at all.
The warning is there because 1+ is probably aware that people who unlock their bootloaders do so in order to install custom ROM's and kernels and hence they need a custom recovery installed. That's probably why it downloaded the full size zip instead of the smaller OTA.
HueleSnaiL said:
I upgraded my phone with a custom recovery installed and had no issues at all, so having the OEM recovery shouldn't give you trouble at all.
The warning is there because 1+ is probably aware that people who unlock their bootloaders do so in order to install custom ROM's and kernels and hence they need a custom recovery installed. That's probably why it downloaded the full size zip instead of the smaller OTA.
Click to expand...
Click to collapse
Well, thank you for your answer.
Finally, I did the update. It downloaded the full size zip (1.6 GB), and upgraded the device from 5.0.2 to 5.0.3 with no trouble at all. So, at least in my case, having an unlocked bootloader didn't make any problem to update my OP5T.

Wrap-Up from custom ROM(firmaware) to a stock ROM for MOTOROLA ONE ACTION, Question ?

Wrap-Up ROM (firmware) Update ROOTED MOTOROLA ONE ACTION DEVICE
This is my personal Q/A notes
QUESTION #1:
What are the Prerequisites for Automatic OTA (Over-The-Air) Update
ANSWER #1
Prerequisites
- Stock Firmware
- Stock Recovery
- UnRooted device
- Locked or Unlocled Bootloader, doesn't mater
Ref @binary**#: Bootloader Locking/Unlocking has nothing to do while receiving OTAs
https://forum.xda-developers.com/on...-bootloader-leads-to-integrity-t4010813/page2
QUESTION #2: What are the Prerequisites for Manual Flash firmware Update
ANSWER #2
Prerequisites
- Of course Firmware files
- Fastboot installed on your PC or other flashing tool...
- Unlocked bootloader is requires only if you want to downgrade security patch level firmware
Reférence from @ arsradu: https://forum.xda-developers.com/showpost.php?p=81945853&postcount=15
QUESTION #3:
Can I FLASH for upgrade security patch without losing my ROOT and DATA !
ANSWER 3a, Yes from tys0n's guide and post
https://forum.xda-developers.com/showpost.php?p=82476605&postcount=166
ANSWER #3b, Yes, If you're not able to boot “TWRP-3.3.1_Motorola_One_Vision.img” on this phone, you can also try " twrp-3.3.1-test2.img" and the method describe below. This file “twrp-3.3.1-test2.img’ was built by @Stricted and all credit is for him ! The file can be download here https://images.stricted.net/test/troika/twrp-3.3.1-test2.img
I tested with success another variant inspired by ANSWER #3a @tys0n and @sfoot13 at post #3 of thread "[TWRP + MAGISK] Root your Motorola One Action".
I used method in answer #3a as it, but in fastboot I also flashed the latest stock boot.img and the twrp-3.3.1-test2.img instead of the “TWRP-3.3.1_Motorola_One_Vision.img” and in TWRP I flashed the Magisk-v20.4.zip instead of the magisk_patched.img.
Method tested with succes for Updating, rooting, and keep your data intact.
Process was performed XT2014-4 from QSBS30.62-17-2 to QSBS30.62-17-4
1) Download Magisk-v20.4.zip to phone's SDcard. You'll have to flash it later through TWRP to avoid the fastboot flash error.
2) Remove vbmeta.img from your adb/fastboot folder. (You already have the patched vbmeta flashed and we don't wanna flash stock vbmeta.)
3) Make sure that your "flash.bat" doesn't have any wipe commands in it, and also no reboot system command at the end.
4) Boot to fastboot and flash the update. Don't mind the errors about vbmeta.
5) When flash is finished, boot TWRP. The file "twrp-3.3.1-test2.img" can be downloaded here. Code: fastboot boot twrp-3.3.1-test2.img
6) Once TWRP is booted, flash Magisk-v20.4.zip again because the phone was unrooted boot.img was flashed (step2), and last flash the "Disable_Dm-Verity_ForceEncrypt.zip" so that you don't boot to system with these things enabled. If you do, you will have to reset.
Now boot to system. Updated, rooted, and with your data intact !
QUESTION #4:
Are the vbmeta and vbmeta_patched files are related to Android Version (9.0 Pie ,8.0 Oreo, 7.0 Nougat ect …) or to the market or even the secury patch, are they comptible in betwen all moto one variant, such as Moto One... Vision, Power, Action ?
ANSWER #4:
So far vbmeta is compatible on Android 9 and 10 on variant xt2013-1, xt2013-2 xt2013-3 but NOT ON xt2013-4 on both Android version.
QUESTION #5:
If I do not want an automatic OTA update, should I only desactivate “automatic system update” under developer options ? Will it be enough ?
ANSWER #5a for a ROOTED Device:
If you are ROOTED or on a non-stock ROM, you will not receive OTA.
ANSWER #5b for a STOCK firmware/ROM:
In the case of you're on a STOCK firmware/ROM ... probaly yes, but I will let somebody confirm it.
PS: I will edit the original post with answers as far as they coming.
Thanks for your questions, answers and knownlege sharing !

Categories

Resources