[Q] Decrypt if I'm already rooted with unlocked boot loader?? - Nexus 6 Q&A, Help & Troubleshooting

So I have a T-mo rooted Nexus 6 running stock rom and kernel presently. I would like to decrypt the phone as I've heard/read I will see an improvement in both performance and battery life. So first question is what would be the best/easiest method to do this and second will I lose root and have to re-root after decrypting. Thanks in advance for any help.

Basically you will have to flash a different boot image that disable the encryption flag.
This will require you to completely wipe your device and start over. Yes, you would have to re-root but if you know how to flash a stock no-encrypt image then rooting is easy and simply requires you to flash the current SuperSU zip from recovery once you are all set up.
Basically follow the long version of this guide. Technically you don't need to flash completely stock and couold just follow the guide in the next section but if you have to factory reset anyway I would want to start fresh:http://forum.xda-developers.com/nexus-6/general/guide-flash-factory-images-nexus-6shamu-t2954008
But use this no-encrypt boot image instead that matches the stock google rom you flash:http://forum.xda-developers.com/nexus-6/development/disable-forced-encryption-gain-root-t2946715
Once that is done you can flash recovery (or simply boot into TWRP temporarily if you want to keep the stock recovery) and flash Supersu.zip from here and then you're rooted again. I think you could also flash TWRP in the first step above when you are going back to stock but I usually do it at the end for some reason:http://forum.xda-developers.com/showthread.php?t=1538053

Thank you so much

Related

Straight Rooted Lollipop Method?

I was wondering if this would be possible:
Use Recovery to flash a rooted stock Lollipop system partition, then flash everything else from stock FTF, but skip system. This would overwrite the (currently useless) recovery with stock content, but you'd be rooted.
Forgive me if that's what the current method does. I'm trying to avoid a compromised/non-functional/boot-looping recovery if the current method installs one, but if the recovery in that method simply overwrites itself with stock then I'm fine with that. I just don't understand what's installed in the recovery sequence when you finish following the current method on a LB device.
i dont think it will be possible since sony is really good at patching holes in their system
I've tried, it doesn't work.

best way to update rooted N6 ?

My N6 is rooted, SuperSU and TWRP. On build LYZ28J and want to update to LYZ28K.
It seems I have 3 ways to do this:
1. Use settings in SuperSU to fully unroot, AND flash the LYZ28J recovery.img to replace TWRP. Then I can take the OTA. After that I can rerun the Chainfire Autoroot script and flash TWRP. So i'm updated with no data loss.
2. Flash the factory image. No need to unroot or remove TWRP, but all data is lost. And I still need to reroot and reflash TWRP. Correct ?
3. sideload the ota zip. Just run adb sideload <ota.zip> . No need to unroot . My problem here is that the only place I found with the ota zip is on Droid Life, not a google url. I like Droid Life, read it all the time, but still... Does anyone have a google url link to the OTA ?
Is there another method?
How are others upgrading? Is #3 as easy as I described ?
sean
1. no. to fully unroot, you need to flash a factory image. if you just remove root, itll still think tour rooted because system files have changed. so, wont work.
2. you can, but why? you gave extra time that you want to burn?
3. nope, cant flash an ots while rooted ir havd chsnged system files.
4. just flash the system.img of a factory image ehen it vomes out, and you will not lose data, but will upgrade.
I've used this thread (http://forum.xda-developers.com/nexus-6/general/using-image-to-update-nexus-6-data-loss-t3053158) to update within Lollipop through several versions. It is always best to wipe data when going from one version to the next (Lollipop to Marshmallow) but as long as you are staying within Lollipop this should work fine.
Check this out, http://forum.xda-developers.com/nexus-6/development/fxz-nexus-6-recovery-flashable-fastboot-t3066052
IMO, easiest way. DL zips to internal storage, wipe, and flash. READ the "Read Me" in the first post. When you update it will get rid of SU. Once you boot with update the first time, you can go back and root with TWRP.
Chose to use this. Did not flash the new recovery image. Updated fine, BUT locked and no root, no TWRP. I'll need to run oem unlock again, wiping all the data.
Sigh.
Wrote too soon. SuperSU and TWRP were gone (even though I did not flash recovery.img). Developer Options was gone. So I needed run CF-Autoroot and still need to flash TWRP. But all apps and data remained.
This is great news, especially if we're going to get monthly updates.

Manually flashing 6.0, will this approach still work?

To start: 5.1.1 (LMY48M), rooted, with TWRP for recovery
For every 5.x update so far, this has been my procedure using fastboot:
Flash boot.img
Flash radio.img
Flash system.img
After successfully updated, I'd use WugFresh's Nexus toolkit to root and flash TWRP.
I'm a fan of not needing to flash userdata.img, as I don't think that should be necessary given that the OTA wouldn't wipe installed apps and such.
I've read other threads about using fastboot to upgrade and am concerned about the boot warnings, which seem to require a custom kernel to circumvent. My question is: will the above approach still work? Do I need to flash any other files? If I need to flash a custom kernel, where do I get it, how do I flash it (is it just a custom boot.img?), and at which point in the flash sequence should I apply it?
Secondly, has anyone tried gaining root through the Nexus toolkit once upgraded to 6.0?
I'm looking for recommendations so I don't spend hours trying to unbrick my device. Thanks!
You'll also want to flash the 6.0 bootloader and why are you using the toolkit to flash twrp when you can flash it in fastboot along with the rest of the files?
Ah OK, I'll flash the bootloader image as well. Anything else to be concerned with? The toolkit has a feature to root + flash twrp as a feature, so I just use that.
Do the bootloader first, then reboot the bootloader before you flash anything else. There are instructions floating around here some where or you can google nexus 6 flash factory images. You don't have to flash user data as this will format all you data/ apps.
Just download the latest SuperSu zip (2.50) and put it on your SDcard. If you flash as you suggested and then boot directly into recovery, you will still have TWRP. If you don't flash the stock recovery.img to replace TWRP, it will replace on first boot anyway, unless you root imeediately, but you are probably booting to use the toolkit, which replaces recovery only to have to use the toolkit to flash recovery anwyay.
So do your flashes, boot straight into recovery, flash the supersu zip on your sdcard. Done.

[Q] TWRP Flashable zip?

Hi Nexus 6 Community
Im new to own a Nexus 6 but Im an "enthusiastic flasher" per say. I've being looking around with no luck so I was hopping someone will point me to the right direction:
Usually whenever I flash anything on my previous phones I like to flash TWRP again in case of boot loops or something flashing bad that could delete or corrupt my custom recovery. I'm rooted and installed the latest TWRP through fastboot, but as I previously said, I would like to have a flashable zip to ensure my recovery will be installed and have a higher chance of not being locked out of my phone.
Or I'd notice you can flash images through TWRP, will this re-install my recovery using the TWRP .img file?
I really appreciate all for your help, thanks
Once you boot into twrp for the first time it patches /system to prevent the stock rom from replacing it unless you choose the "keep system mounted as read-only." This option is only offered to you if you boot into twrp with an untouched /system. And as for worrying about being locked out of your phone, as long as you have an unlocked bootloader you can always use a google factory image to get back to stock w/o a custom recovery.
I'd assume no one's made a flashable zip for twrp because reflashing it wouldn't accomplish much of anything if you already have twrp to flash it in.

Best way to go 100% back to stock with locked bootloader?

hey, i want to go back to completely stock, with a locked bootloader. what do i do, flash the full oos rom in twrp, use the unbrick tool which brings back to stock and locking the bootloader for me, or somethin else?
Thanks for help
I don't know if it constitutes the "best" way, but the following guide describes really well how to return to stock to lock the bootloader:
https://forum.xda-developers.com/oneplus-3t/how-to/guide-return-youre-op3t-to-stock-lock-t3569383
Basically wipe the phone, flash the full "stock" update zip, flash stock recovery, and lock bootloader.
Just use a more up-to-date full update zip, then linked in the guide.
There's no "best" method, all methods that ends in returning to stock involves losing all user data, in the same time frame. You can use the unbrick tool, or you can do as Redpoint73 above pointed out.
You need to be on stock OOS and stock recovery to lock your bootloader via Fastbpot, or otherwise your device will be in a dead state, and you'll have to use the unbrick tool.
Cheers!

Categories

Resources