Nexus Noob here. As I'm still learning, I have some questions regarding the update process. I would prefer not to have to wipe data and re setup my phone, and I found several tutorials that mention flashing everything except data.img. That all I understand.
What I'm not sure on - when I got this phone and rooted it, I needed to flash a modified boot.img file. When updating to 6.0.1 or whatever newer versions come out, do I need to do that still? I found another tutorial that mentions flashing all the img files and then reflashing supersu, but no mention of the modified boot.img (http://www.teamandroid.com/2015/12/08/root-nexus-5x-android-601-mmb29k-marshmallow-factory-image/2/) That's why I'm confused.
Any help you can give is appreciated. Thanks
That guide refers to a older version of SuperSU. The latest beta version is 2.61 (SuperSU-v2.61-20151207213702.zip) which you can find here.
http://forum.xda-developers.com/showpost.php?p=64161125&postcount=3
This is a new method that automatically patches the boot image for you so you do not need to flash a modified boot img yourself. Versions 2.60 and later do this. That is why the guide you linked does not say you need to flash a modified boot.img.
Just make sure that you haven't modified your system partition (by rooting or otherwise) before you flash this.
I did root and put some ring tones in /system/media. Will flashing system.img overwrite that all and then I can update or do I have to go back to stock completely?
Related
I know there are several threads covering similar things, however I still can't find the relevant info for my specific question.
I am on 6.0 Build L
I rooted using systemless root - I have changed nothing in my system partition as far as I know as I wanted root for AdBlock and TitaniumBU.
I am using the stock kernel too.
TWRP 2.8.7.2
I now have a 6.0.1 OTA - but I'm 100pc confused as to exactly how to go about installing this.
Some people seem to say OTA on this setup will work fine on similar setups.
Others say I need to flash 101 things to get it working.
Literally no idea.
How I Did it...
From a site with this in the title:
can_i_manually_flash_601_also_does_ota_work_with
Systemless root doesn't break ota, non-stock recovery breaks OTA.
Unlock bootloader, flash 6.0.1, flash TWRP, flash systemless root...
I did this:
Went back to stock recovery, by flashing via ADB, rebooted downloaded and attempted to install OTA on phone. Process started, rebooted, proceeded and then failed with error . Rebooted, got Factory image.
Extracted and ran flash-all.bat ONLY AFTER Removing the -w from this line:
fastboot -w update image-bullhead-mmb29k.zip
Got latest SuperSU v2.61 zip with auto boot patcher:
See androiding.how/android-6-0-1-root
Copied this to Memory on phone.
Flashed/Installed TWRP Recovery using ADB.
Booted into TWRP Recovery and installed SuperSU.
So now I'm running systemless rooted 6.01 on a Nexus 5X with mmb29k and every thing is working.
I think even though I rooted systemless 6.0, the modified Boot Image was still not letting OTA work.
We shall have to wait and see on the next OTA. Maybe just going back to stock recovery will be all that's needed.
There are some ADB commands that allow you to temporarily select a recovery image, but I'm not sure how that works.
Good Luck!
teapea said:
I know there are several threads covering similar things, however I still can't find the relevant info for my specific question.
I am on 6.0 Build L
I rooted using systemless root - I have changed nothing in my system partition as far as I know as I wanted root for AdBlock and TitaniumBU.
I am using the stock kernel too.
TWRP 2.8.7.2
I now have a 6.0.1 OTA - but I'm 100pc confused as to exactly how to go about installing this.
Some people seem to say OTA on this setup will work fine on similar setups.
Others say I need to flash 101 things to get it working.
Literally no idea.
Click to expand...
Click to collapse
Hi! So I'm looking to root my Nexus 5x following this guide. However, I can't find the modified boot.img for my build MMB29P. I have a brand new phone out of the box (my mic stopped working so this is a replacement) so I'd like to get this done in the next little while the phone has no data and I can wipe anything I need to without worry and use the restore afterwards. I also heard something about SuperSU being able to use stock boot.img or something of that nature, could someone clue me in? Thanks!
[GUIDE] Unlock/Root/Flash for Nexus 5X - Heisenberg's How-To Guide For Beginners
take a look at section 6
as an alternative there are some toolkits that may be more convenient to you (on-screen instructions and detailed faq/guides)
The latest version of SuperSU (v. 2.66 I believe) is automated for systems root. I actually used the SuperSU beta v. 2.62 to root. I just unlocked bootloader, flashed TWRP, and then flashed that version of SuperSU.
Sent from my Nexus 5X using Tapatalk
Sweet! Officially, unlocked, TWRP'd, rooted, and supersu'd So as far as upgrading? I grab the file from google officially and flash it via TWRP?
jkingaround said:
Sweet! Officially, unlocked, TWRP'd, rooted, and supersu'd So as far as upgrading? I grab the file from google officially and flash it via TWRP?
Click to expand...
Click to collapse
No, an official image cannot be flashed like that. If you fastboot flash an image you will lose recovery and root. Update officially with a factory image and root afterwards or flash a custom rom plus vendor.img.
https://www.androidfilehost.com/?w=files&flid=43558
k.s.deviate said:
No, an official image cannot be flashed like that. If you fastboot flash an image you will lose recovery and root. Update officially with a factory image and root afterwards or flash a custom rom plus vendor.img.
Click to expand...
Click to collapse
Even with systemless root?
When it comes to upgrading, there are a couple of routes you can take. Both involve downloading the official factory image ZIP first. Extract the contents, reboot into bootloader, and then you have option:
1. Edit the flash-all script (.bat for windows and .sh for Linux/Mac) by removing the -w option. Removing this option will prevent the upgrade from wiping user data. Once the option is removed, simply run the script to upgrade.
2. Flash the images individually. Sometimes certain things don't change like bootloader.img or radio.img. You should always flash boot.img, system.img, and vendor.img when updating. This is the route I take.
After flashing the images, you will need to reboot into Recovery mode and flash SuperSU. Then wipe cache and dalvik and reboot into system. If you use a custom kernel, you will need to reflash that as well after updating.
Sent from my Nexus 5X using Tapatalk
Ah makes sense. So I just need to reroot. Where do you get the "official" factory image? Have a link handy so I can bookmark it? Thanks!
Also anyway to remove the "warning" about unlocked bootloader that comes up on boot? I heard you need a custom kernel but I don't know the point of installing what (aka the benefits). Sorry for noob questions, but all the info is so scattered and hard to figure out.
jkingaround said:
Ah makes sense. So I just need to reroot. Where do you get the "official" factory image? Have a link handy so I can bookmark it? Thanks!
Also anyway to remove the "warning" about unlocked bootloader that comes up on boot? I heard you need a custom kernel but I don't know the point of installing what (aka the benefits). Sorry for noob questions, but all the info is so scattered and hard to figure out.
Click to expand...
Click to collapse
Google posts the official factory images on the developer site. Here is the link: https://developers.google.com/android/nexus/images
AFAIK the boot warning can't be removed, but I may be wrong. It's nothing to worry about though.
Having a custom kernel is not necessary, but there are benefits to using one. Custom kernels typically provide better battery life with same or improved performance. They can also make your device run cooler and use less memory. Custom kernels also allow for various tweaks such as change vibration intensty, screen DPI, headphone/speaker gain, etc. I personally use ElementalX with the Interactive Governor tweaks from the thread in the general forum, but I've read that Franco Kernel is very good as well and will probably try that out in the future.
Sent from my Nexus 5X using Tapatalk
jkingaround said:
Sweet! Officially, unlocked, TWRP'd, rooted, and supersu'd So as far as upgrading? I grab the file from google officially and flash it via TWRP?
Click to expand...
Click to collapse
Just pick a custom rom to try and follow OP instructions. Cataclysm seems to be a hit...
This update icon in my status bar is driving me nuts! I'm running rooted stock with unlocked bootloader. What's the best way to receive/flash OTA updates in this situation? Please tell me I don't have to start from scratch!
Use Chainfire's flashFire. Get it from the play store, it's free but do consider contributing. Chainfire does a lot of good work here.
Yea that's not the answer, that's just more questions. Flash what? If you're rooted and you try flashing the ota in Flashfire, it will fail. If you download the image and flash it, you'll be starting over.
I downloaded the factory image then extracted the system.img , vendor.img, and radio.img (don't flash the userdata.img) and flashed them in fastboot. That worked for me.
the easiest way is to download the OTA image from here to simply flash it in recovery via "adb sideload OTA.zip", thats it.
I agree that full OTA files from Google are the best option. Notice that you can flash them even from a custom recovery as a normal zip. Of course after that you need to re-flash custom components like supersu, kernel, etc...
Yeah, I tried FlashFire before posting this. Didn't work. So flashing system, vendor, and radio images will allow me to keep my data? I'll give that a shot. Thanks!
Update: This is the way to go. Thank you!
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....
Pulled kind of a boner. Got a Mate SE yesterday. It came with EMUI 5.1 and Android 7.0. I had read that version was still fairly easy/cheap to unlock the bootloader so I just left it as is without updating anything. Unlocked the bootloader, installed Twrp (to both recoveries) and now am unsure how to proceed with installing custom ROMs because I ended up nuking the factory ROM to install an older AOSP buggy build I found on here.
Didn’t realize that every custom ROM now seems to want you to install via fastboot with EMUI 8 required to have been installed beforehand, but I'm now stuck on this old AOSP ROM with no backup of the original & with Twrp recovery.
Sorry for all the questions but I've flash a million ROMs the old school Twrp ways since forever but this seems like a different beast. Should’ve slowed my roll. Is there some files I can flash via Fastboot or Twrp in order to use these new treble ROMs while keeping my boot loader unlocked? Thanks.
peestandingup said:
Pulled kind of a boner. Got a Mate SE yesterday. It came with EMUI 5.1 and Android 7.0. I had read that version was still fairly easy/cheap to unlock the bootloader so I just left it as is without updating anything. Unlocked the bootloader, installed Twrp (to both recoveries) and now am unsure how to proceed with installing custom ROMs because I ended up nuking the factory ROM to install an older AOSP buggy build I found on here.
Didn’t realize that every custom ROM now seems to want you to install via fastboot with EMUI 8 required to have been installed beforehand, but I'm now stuck on this old AOSP ROM with no backup of the original & with Twrp recovery.
Sorry for all the questions but I've flash a million ROMs the old school Twrp ways since forever but this seems like a different beast. Should’ve slowed my roll. Is there some files I can flash via Fastboot or Twrp in order to use these new treble ROMs while keeping my boot loader unlocked? Thanks.
Click to expand...
Click to collapse
Yes, in order to use the new "gsi" rims you need to do stock firmware upgrade. It is easy to do. But completely different then you seem to be used to , with twrp.
Just search for hwota , and I have a guide thread for 7x (basicly same as mate)
mrmazak said:
Yes, in order to use the new "gsi" rims you need to do stock firmware upgrade. It is easy to do. But completely different then you seem to be used to , with twrp.
Just search for hwota , and I have a guide thread for 7x (basicly same as mate)
Click to expand...
Click to collapse
Thank you. Just getting the files together but a little confused on one part. At the beginning, you say to extract the HWOTA package then put all the downloaded system files into the appropriate folder (HWOTA7 in my case), but at the final step you say to "From in TWRP install sdcard HWOTA--hi6250-7-8.zip", however that is the package we extracted from zip already before?
Does that mean I need to zip it back up with the system files I added in it in order to flash via Twrp? As is its just folders. Thanks. Just want to make sure I get everything right.
peestandingup said:
Thank you. Just getting the files together but a little confused on one part. At the beginning, you say to extract the HWOTA package then put all the downloaded system files into the appropriate folder (HWOTA7 in my case), but at the final step you say to "From in TWRP install sdcard HWOTA--hi6250-7-8.zip", however that is the package we extracted from zip already before?
Does that mean I need to zip it back up with the system files I added in it in order to flash via Twrp? As is its just folders. Thanks. Just want to make sure I get everything right.
Click to expand...
Click to collapse
Should be two folders. One each for 7 and 8. Each with twrp, and no-check recovery . And a zip file.
mrmazak said:
Should be two folders. One each for 7 and 8. Each with twrp, and no-check recovery . And a zip file.
Click to expand...
Click to collapse
Got it all done & went fine. Running Lineage at the moment. You're a life saver man, thanks!