yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] :
Okay Heisenberg. I messed up and would really appreciate help here. I got my Nexus 5X two weeks ago. Decided I wanted to root it in order to gain the extra functionality. Now I'm no stranger to the process and have done it before, but not with the new seamless root and never with TWRP. I wanted to unlock the bootloader, use this fancy new seamless root method, and be done. It went something like this:

Prereqs: check

Step 1: check. I performed a backup as per adb backup, then unlocked the bootloader. No problem. Nexus booted back up with an opened lock under the Google logo. So far so good. I then restored that backup, to no avail. No problem, right? I already backed up my important files just in case of this. I pressed on.

Step 2: check. I flashed the recovery image easy as you please. Booted into TWRP and made a backup. At this point, I made a grave error. I swiped to install the TWRP SuperSU (thinking I was rebooting the phone) instead of downloading the correct (seamless) version. I now have a phone that will not be recognized by adb/fastboot, so I don't know of a way to push the SuperSU zip into it, if it were even possible. I can get into the bootloader. I can boot into TWRP, but it has no real use currently. If I try to start Android, it presents me with the message that my phone is corrupt, at which point it launches endlessly into the 4 colored circles boot screen. Is there a way to fix this? I'm not concerned about losing any user data, but I really don't want to brick my brand new phone that I need. Thank you in advance.

EDIT:

Wiping dalvik/cache has done nothing. May try flashing a stock ROM if I have time before work.
[Nexus 5X General] cspctec:
So I've been trying to unlock/root my Nexus 5x for the last 30 minutes, but I've run into some problems. I followed the guide and rebooted into the bootloader, unlocked the bootloader with "fastboot oem unlock", and flashed TWRP. I made a backup of the system as suggested, but then when I tried to reboot into recovery (TWRP) from the bootloader, I get an android with a red triangle exclamation. The phone waits for a minute then reboots into the ROM.

I read around online and they suggested removing the "recovery-from-boot.p" file from /system. However, using adb shell, I can't do that because I don't have root and cannot remount the system to r/w (su is not found).

I tried re-flashing TWRP, but that didn't fix anything. Still the same dead android with a red triangle when trying to boot into recovery.

I don't know what else to try. Can someone help me?

I'm doing all of this through Linux Mint.
[Nexus 5X General] churchey360:
Did you try to hold power and press volume up when that happens? I know that is what you do to get into stock recovery
[Nexus 5X General] cspctec:
I just tried that, and that does put me into stock recovery, but I shouldn't have to do that, since I have already flashed TWRP recovery. When I choose recovery from the bootloader, it should put me straight into TWRP, and it was doing that, but suddenly stopped after I backed up the system.

I've done this with several phones before and never had this happen. Not sure what I did to mess it up.

---------- Post added at 11:27 PM ---------- Previous post was at 10:31 PM ----------

I followed the guide on this forum to decrypt/root the phone and it worked. I'm able to boot into TWRP recovery again. I guess the encryption was messing it up (I think it would be better if Google didn't auto-encrypt the phone).

I'm still a little nervous about backing up the phone again, since that seems to be what messed up TWRP.
[Nexus 5X General] weeple2000:
I followed the guide to install twrp 2.8.7.2 with the intent to root. When I was in twrp, it asked me if I wanted to install super su (or was it root? I thought that was the same thing). I said yes. I have been at the colorful splash screen for about an hour. Am I stuck in a boot loop? Any suggestions what to do?

<edit>

I see I shouldn't have done that, from the instructions below the root portion:

Do not flash the version of SuperSU that TWRP offers to flash for you in order to give you root, it is not compatible and will cause problems. When using TWRP before you've actually flashed SuperSU 2.50+, when you attempt to reboot out of TWRP it will tell you that it's detecting that you don't have root and it will offer to root for you, skip past this.

Here are the commands I've used:

C:\Program Files (x86)\Android\android-sdk\platform-tools>fastboot oem unlock

...

OKAY [ 33.003s]

finished. total time: 33.004s

C:\Program Files (x86)\Android\android-sdk\platform-tools>fastboot reboot

rebooting...

finished. total time: 0.011s

C:\Program Files (x86)\Android\android-sdk\platform-tools>fastboot flash recover

y twrp-2.8.7.2-bullhead.img

target reported max download size of 536870912 bytes

sending 'recovery' (16325 KB)...

OKAY [ 0.553s]

writing 'recovery'...

OKAY [ 0.267s]

finished. total time: 0.822s

</edit>
[Nexus 5X General] weeple2000:
I followed step 10 to recover this.

10. How To Update To A New Build Of The Stock ROM

Here are the commands I ran to fix this, I wound up back to stock with twrp again. This time I'll follow the instructions.

fastboot flash bootloader C:\bullhead-mmb29k\bootloader-bullhead-bhz10k.img

fastboot reboot-bootloader

fastboot flash radio C:\bullhead-mmb29k\radio-bullhead-m8994f-2.6.30.0.68.img

fastboot reboot-bootloader

fastboot flash boot C:\bullhead-mmb29k\image-bullhead-mmb29k\boot.img

fastboot erase cache

fastboot flash cache C:\bullhead-mmb29k\image-bullhead-mmb29k\cache.img

fastboot flash recovery C:\bullhead-mmb29k\image-bullhead-mmb29k\recovery.img

fastboot flash system C:\bullhead-mmb29k\image-bullhead-mmb29k\system.img

fastboot flash vendor C:\bullhead-mmb29k\image-bullhead-mmb29k\vendor.img

fastboot flash recovery twrp-2.8.7.2-bullhead.img
[Nexus 5X General] hopesrequiem:
Is it possible to make a backup of your EFS partition AFTER you've unlocked the bootloader, installed custom recovery, rooted, and flashed a new rom? My rom is working great I would just like to be safe.
[Nexus 5X General] Mesmurized:
Sure. No problem.
[Nexus 5X General] parthabhatta:
Can flash system less supersu 2.6.4 over 2.6.2? I am on stock 6.0.1 with EX kernel. If not what is the procedure I should follow?
[Nexus 5X General] parthabhatta:
Did it. Flashed stock boot.img followed by SuperSU 2.6.4 followed by EX kernel, all in one go, cleaned cache and dalvik and booted.
[Nexus 5X General] mnehring:
TWRP ROOT - I just want to post a warning... Twice now. First time I thought my phone was hosed... When twrp offers to root my phone, it wont boot. Had to get a stock image set from google and fully reset the thing as a twrp restore wouldnt work... I cant believe after twice in a row, Im not seeing more issues floating around xda. Im typing this while staring at the boot animation over and over... Going back in for a possible restore now... if not then a full on flash-all.bat script through fastboot again... very depressing to set your phone up again and again. Im going to take a break from mods for a few months.

---------- Post added at 08:01 AM ---------- Previous post was at 07:58 AM ----------

Yup restore failed in exactly the same way... freezes on restoring system and poof, reboot and then it wont even get to the boot animation... Just google.
[Nexus 5X General] Heisenberg:
Did you not see the bold warning in both root sections?
[Nexus 5X General] queerquirks:
Lol yep take a break then read again. Lots of text but worth it
[Nexus 5X General] ilyasking:
Thanks

Nk yoi very much rhats is helpfull
[Nexus 5X General] mnehring:
My bad

Looking back i see the warnings plain as day. I however am an idiot putting my faith in twrp for the last few years and didnt even come here till there was an issue. Guess I hijacked your thread for my hate speech. Ive been doing it so long, I didnt even think to check for errors. Thanks for the heads up. Its just weird I hadnt seen this the first time around with a few google searches and assumed it was user error and did it twice.
[Nexus 5X General] ericBG:
Whenever I try to decrypt the data with TWRP 2.8.7.2, it just fails even though I'm 100% sure I got the right pattern. Ideas why?
[Nexus 5X General] baddoor:
help with flashing K boot image to run the camera

hi everyone

so after reading a bit i realized (or atleast maybe realized) that the issue with my camera not working was having the M boot image rather than the K boot image .

So far what i've done with my phone was the following

flashing the bootloader, reboot, flash radio, reboot, flash boot, flash cache/recovery/system/vendor. [ALL from the stock images file from 6.0.0 M boot image on the google developers website]

Flashed TWRP, formatted the drive to decrypt it, then rooted with SU 2.64 (system-less)

installed CM13 , and reflashed vendor & radio

currently it's 6.0.1 with the M boot image

if i wanna flash the K boot image (which would hopefully resolve the issue) , how should i do that without wiping personal data or having to restarted from scratch? just flash the file? restart the above steps from a certain point?

AND IF i do flash the K boot image, what other files must be flashed or changed to avert disasters?
[Nexus 5X General] Mawth:
You should be able to simply flash the K boot.img without disaster. And surely you'd make a nandroid before doing that, so you'd have a safety net. But there's no guarantee that the stock Google boot.img will play nicely with the rest of CM13.
[Nexus 5X General] baddoor:
thanks

though i meant that i'll be flashing

bullhead-mmb29k-mboot.zip

that was posted on post #265 on this thread.
[Nexus 5X General] droiddog:
I apologize if this is in the thread from somewhere, but I couldn't find it. I rooted my phone through the systemless method (supersu 2.65). I then shelled in to change the build.prop file. The camera wasn't working so I flashed the boot image from here. I then lost root, but everything else is working fine (camera, modified build.prop and android pay). If I reflash the supersu, will that mess up the camera again? Thanks.
[Nexus 5X General] joetheshmo:
Doubtful that root will mess up the camera, but nandroid backup before just in case so you have an easy way to fall back
[Nexus 5X General] berndblb:
Look at the post you linked to:

You flashed a kernel that works with system root. For systemless root you need to flash the stock kernel

---------- Post added at 09:49 PM ---------- Previous post was at 09:43 PM ----------

Again, with systemless root flash the k stock boot.img, then flash the k vendor.img and the camera should be working fine

https://developers.google.com/android/nexus/images?hl=en
[Nexus 5X General] baddoor:
flash it with stock K image boot file or the modifited bullhead-mmb29k-mboot.zip ??

update:

just flashed it with the stock k image follow by the vendor... got into a bootloop

then reflashed it with the modified boot images (from post 265).. also got into a bootloop

reflashed it with the boot.img that came with the CM13 ROM and then the vendor .. got back into the system ... camera works now!... and even when i checked the system, its running on M boot image!

dont make sense to me

update 2:

now i noticed that although cell network is running, got no data

so i flashed the radio of the K image and rebooted, working fine, but still no data connection

AND now the cyanogenmod updater doesnt work either (although i think its because there's no data connection)

re-flashed my radio with the M version, no use, re-flashed the K radio version, no use

{starting to even think now that it might be a network issue perhaps} , but how can i make sure
[Nexus 5X General] berndblb:
Flash it back to all stock and start from scratch....
[Nexus 5X General] baddoor:
that's what i was just gonna do. BUT... then i realized i was roaming on a data package that i forgot to activate and burnt my roaming package credit (yes... i feel very stupid)

guess what.. data and phone are working fine lol

camera is working fine

THANKS! really appreciate it, now atleast i can use the bloody camera for the trip lol

although still curious why flashing the CM13 boot file that comes in the package solved my issue with the camera, even though im still on M boot image
[Nexus 5X General] cicci0:
Hello. I followed all the guides and I unlocked the bootloader, I installed TWRP 2.8.7.2, I installed the root, and finally I installed the cataclism Rom.

I restarted the system, I have followed the procedures to start and then I rebooted into recovery with the intention to decrypt the system through recovery.

How can I do? I tried a wipe data, but in the system settings always tells me that it is ENCRYPTED.

I can fix? Thank you
[Nexus 5X General] joetheshmo:
Instead of wipe data try to format data
[Nexus 5X General] cicci0:
I tried and I get this:

and: flash_image / dev / block / platform / soc.0 / f9824900 ..... (other scriptures like)

error = 255
[Nexus 5X General] 2x4:
Handful of N5X Unlock/Root Questions

Hi all,

I've got fully stock N5X right now, and I'm thinking of unlocking the BL and rooting and the whole business, but I've got some basic questions which I'm having some trouble finding answers to on the forums, perhaps because I don't understand the complexities as well as others. I intend to run the stock OS, but would like root access for things like adaway.

First off, I understand some users running the stock image encrypted again after unlocking BL and rooting. Does this mean that they can no longer flash anything since TWRP can't access encrypted parts of the system? how does TWRP work with encrypted systems at all? I feel like I'm missing something.

Second, if I encrypt after unlocking BL and rooting, how would I update in the future, if TWRP cannot access encrypted areas?

Third, I've read about systemless root and it seems cool since it allows apps like Android Pay to continue working (I don't use it much tbh, but it's nice to have). Are there any drawbacks to this method though?

Finally, is there any benefits in terms of performance when running the OS unencrypted? Does this break the fingerprint sensor at all?

Thanks everyone.
[Nexus 5X General] joetheshmo:
Twrp can read encrypted partitions now. Also systemless root is hit and miss with android pay afaik. I still use system root because i don't need android pay anyways. There shouldn't be a drawback in terms of root ability with systemless though.

---------- Post added at 12:23 AM ---------- Previous post was at 12:21 AM ----------

Never seen anything like that unfortunately. Gonna leave that to someone more knowledgeable than I to help you there. I would probably flash all the stock images and start over.
[Nexus 5X General] 2x4:
Thanks for the quick answer Joe, I was not aware there was a new TWRP that could read encrypted areas.

Do you know if there is any performance benefits when running the OS unencrypted? Does this break the fingerprint sensor at all or anything else?
[Nexus 5X General] joetheshmo:
I have seen reports of people saying their phone ran better after being unencrypted but I bet the difference is negligible. I've been unencrypted since the start since I started before the twrp update and nothing has been broken in terms of fingerprint scanner, etc ;)
[Nexus 5X General] 2x4:
Awesome to hear that. Is there anything I should watch out for in terms of messing up my phone with regards to encryption or anything in the process of unlocking the BL, rooting, or further modification?

I'm very familiar with TWRP from my old nexus 5 and oneplus one, but I'm just a bit paranoid about the encryption making things different :(
[Nexus 5X General] joetheshmo:
If you follow this guide you won't run into any problems. The only thing you can do to mess anything up is to lock your BL with a custom recovery installed. Other than that you should be good to go!
[Nexus 5X General] berndblb:
The stock kernel forces encryption. So after formatting data to get rid of encryption you either have to flash a modded kernel or flash systemless root which modifies the stock kernel to stay unencrypted.

Systemless root is under very active development with a new version coming out every few days. It seems to be where Chainfire is concentrating his efforts in the future, so it probably is the future of root. But there are still many root apps that have problems with it.

If you don't care about Android Pay and OTA updates a modded kernel and system root is the tried and true. But watch what's happening with systemless. It has potential...
[Nexus 5X General] The-Kevster:
Nope enabling OEM unlock was new to me. I guess my fuse is now popped! :DD

EDIT:

Bootloader doesn't mention a qfuse status.
[Nexus 5X General] Camp As A Champ:
When I went to reboot from TWRP it asked me if I wanted to get root and install SuperSU.

Will this do anything, or will it mess up my phone?
[Nexus 5X General] henban89:
You can't root the Nexus 5X at this time, I just got my Nexus 5X today, I was able to unlock the bootloader no problem, but when I try to flash TWRP recovery and enter recovery mode somehow the recovery mode is not working, it automatically reject out of recovery mode and took me to screen that said "Your device software can't be checked for corruption. Please lock the bootloader." and it repeated entering into recovery mode and reject out over and over again. I ended up having to download the factory image to flash my Nexus 5X back to factory setting again.
[Nexus 5X General] btort1:
I'm rooted and have twrp installed, you have to flash chainfires modded boot image and then install twrp. It disables encryption to be able to flash twrp
[Nexus 5X General] Seanbest:
Does the device come encrypted? I need an encrypted device for work, but I want to root as well. With my SGS4 it's been a hassle and a no-go. Should I be able to do this fairly easily? TIA
[Nexus 5X General] Heisenberg:
I've just updated the recovery flashing section of guide, apologies for the delay. I'll be updating the root section soon.
[Nexus 5X General] redpill859:
hi after a couple of hours i was able to flash my new nexus 5x, unlocked bootloader, flashed twrp and installed SU. i'm having trouble with a couple of things

1. getting a message in twrp when backing up stating that it is unable to access "backlight"?

2. can no longer get the camera to work "camera has stopped working"

3. unable to access security options

Having read a few more posts I realised that it may be down to the build mine is MDA89e, I wonderd if the boot.IMG I used was the correct one for my phone?

any advice would be appreciated cheers
[Nexus 5X General] dave2775:
I still have the MDA89E firmware. I'm not being prompted for OTA. I already unlocked the bootloader so is that why I can't get the OTA? If I can't this way can I flash the OTA, then go ahead with root and TWRP?
[Nexus 5X General] redpill859:
so after many hours trying ive figured out that ill have to wait for a working boot.img for the mda89e:(
[Nexus 5X General] thfreedumb:
You didn't reboot/refresh/whatever the bootloader after flashing the modified boot. Heck reboot the bootloader and then let it boot all the way up. then install twrp.
[Nexus 5X General] henban89:
Yep, I figure it out, I didn't flash the boot.img first before flashing the recovery, also I forgot to perform wipe after I installed recovery, after I did all of that, right now my Nexus 5X is rooted.
[Nexus 5X General] thfreedumb:
You don't need to wipe if you adb push the supersu to the system directory when you flash it. If you wanted to keep encryption (I was just too lazy to set up my phone again) :eek:
[Nexus 5X General] Gig103:
Heisenberg, your instructions say to "Create C:\SDK" but the rest of the instructions are for "C:\Android". You might want to fix for consistency (unless I read it wrong?)
[Nexus 5X General] thfreedumb:
Not sure if this is easier (or if it's appropriate to post here) for everyone to use but i much prefer it.(http://xdaforums.com/showthread.php?t=2317790). Gives you the minimum tools to do these steps in the simplest way
[Nexus 5X General] Seanbest:
Still wondering if encryption and root are simultaneously possible? I need encryption for work, but have to have root. Is this possible? Wanting to order this phone if so. Thanks.
[Nexus 5X General] Gig103:
An update for MDA89E (kernel 3.10.73). Trying with both the SDK and also with the 5XMultiTool), "adb devices" was not returning anything. Based on a N5 thread, I tried putting it in camera mode and restarted adb. I finally got the "Do you want ___ device to connect", and adb devices lists my device.

Under fastboot mode, "fastboot devices" worked for me without any tricks. I'm now unlocked but holding off on root for now.
[Nexus 5X General] Heisenberg:
I'll fix that.

While that is an easier method of installing it I've seen issues arise later on. It doesn't contain the built in updater that the SDK has, and sometimes updating is necessary in order to flash.
[Nexus 5X General] redpill859:
ok been trying to root my nexus 5x for 2 days :mad: using build MDB08I (switched from MDA89E), as soon as i flash modified boot.img phone boots to a screen asking for a password states that phone is corrupt and then resets/wipes it's self.

adb finds the phone, bootloader is be unlocked, switched to usb debugging and switched to MTP, reboot phone flash modified boot.img get corrupt data message but phone still boots all the way, set phone up again checking debugging and MTP. flash twrp but its not able to access data without full data wipe (which i do) no matter if i install SU via twrp or not once i reboot back into recovery its not there? and then the phone gets stuck in bootloop. i've reflashed using build MDB08I about 20 times and gone through the whole process step by step.

can anyone please advise i'm sure im missing something but im not sure what it is.
[Nexus 5X General] Heisenberg:
Have a look at the conversation starting on this page of the SuperSU thread. You need to format data instead of wiping. I'm going to update the guide again to reflect this.
[Nexus 5X General] redpill859:
[MENTION=6040331]hiesenberg[/MENTION] hi thanks for the reply just to say i have formated data but once this is done and i reboot the phone twrp isnt found and the phone gets stuck in boot loop?

also getting "error opening sys/class/backlight" message

Cheers
[Nexus 5X General] 2x4:
Are there any key apps worth noting that have issues with the system less root? Is this method stable enough for everyday use? Is there any risk of a broken update to system less root with the stock kernel causing the phone to become unexpectedly encrypted?

---------- Post added at 07:21 PM ---------- Previous post was at 07:19 PM ----------

Thanks! How does the update process work btw? I expect that Ota updates won't happen automatically, but I can I just flash them through TWRP or do I need to get special zips that will work with an unencrypted phone?
[Nexus 5X General] joetheshmo:
The way I update stock rom is to download the stock images from google and open the zip to get the new files to flash. I'm out and about right now so I can't go into super detail but ill follow this up with a better explanation. Its fairly painless though.
[Nexus 5X General] 2x4:
No worries, I'm in no rush to do this all tonight regardless. Thanks for the info man
[Nexus 5X General] joetheshmo:
Heres a good guide for updating stock. The modified boot image is for if you want to be unencrypted since stock boot image automatically encrypts on boot.

http://xdaforums.com/showthread.php?p=64360861