yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] andrea68:
Thanks a lot. I've used fastboot command and all is fine. Sorry for my bad english.
[Nexus 5X General] DJBhardwaj:
You're welcome. And don't be sorry, please.
[Nexus 5X General] Tigerstown:
PM sent.
[Nexus 5X General] exploreresp:
[MENTION=5317224]Tigerstown[/MENTION] Hey Tiger :) could you post the boot from the 19T update ? or the 19Q would work also on the latest firmware ?

Cheers.
[Nexus 5X General] Tigerstown:
I plan on it today. I was working on my rom for 6P last night. I haven't checked on 5x if boot.IMG got updated up. On 6P it looks like the same one. But either way I'll just post a new one.
[Nexus 5X General] exploreresp:
thank you sir :)
[Nexus 5X General] Tigerstown:
Soon as I'm out of work this evening I'll throw it up I'm currently at work and didn't leave PC on at home or I could remote in and build one.
[Nexus 5X General] Tigerstown:
OP updated with may boot.img like before i have no 5X so i can not test but it will work. Just heads up
[Nexus 5X General] khanjui:
Boot.img for root tested by myself and working fine.
[Nexus 5X General] Tigerstown:
would you mind posting the screen shot i had you take showing it installed to system? thanks and tanks again for testing :good: i would post pics of my device to OP like my 6P thread i just dont have a 5x guys sorry . enjoy the System Root.
[Nexus 5X General] khanjui:
:good:
[Nexus 5X General] :
Cool to see you here op! I had 6p and now 5x. Thanks!
[Nexus 5X General] LudoGris:
Forgive my ignorance, been stuck in Samsung world for so long things with the Nexus line have changed on me. Is this boot.img basically Stock Rom Rooted?
[Nexus 5X General] smohanv:
Thanks. It works to decrypt..
[Nexus 5X General] encinocr:
I have to decrypt every month or is it?
[Nexus 5X General] Tigerstown:
As expected but thanks for another confirm I do appreciate it.

No not at all. You can flash this and use it to decrypt and if you never flash a force encryption pure stock boot.img or a kernel but I'm guessing all kernel devs has force encryption changed to encryptable. So you only have to decrypt once that is if you want to. My devices have been decrypted sense I first unlock the 6P and N6.
[Nexus 5X General] Tigerstown:
This is not rooted And it's a stock boot.img with force encryption removed/DM checks removed which means you can decrypt your device on this stock boot.kmg and stay decrypt unlike on the pure stock one. And it also have a modified sepolicy that will allow system root to install and boot up with no issues.
[Nexus 5X General] simondo22:
Thats what I'm looking for.

Great
[Nexus 5X General] Razvansx:
[MENTION=5317224]Tigerstown[/MENTION] it will be great if you can make a modified boot image for the Android N Preview 3 for our Nexus 5X. Thanks!
[Nexus 5X General] Tigerstown:
You know I will... I already done with 6P preview 3;)
[Nexus 5X General] beastes:
cool thx very nice
[Nexus 5X General] Tigerstown:
Should be up within the hour. Have a few family things to do real quick then I'll download 5X imgs
[Nexus 5X General] Tigerstown:
Decrypted 5X Android N boot.img. Just like before I have no 5X to test but it will work. Just a heads up. Enjoy

https://drive.google.com/file/d/0B4yuQy7Zn1WSTklfZW1McXZxQUk/view?usp=sharing

Will update OP in a few but link is here
[Nexus 5X General] beastes:
try this next hour and come back thx
[Nexus 5X General] Tigerstown:
if anyone had to ask for permission to download i fixed that and posted link a few post ago
[Nexus 5X General] xatornet:
I can confirm this works on latest Android N preview v3 as far i've tested. Thanks!
[Nexus 5X General] beastes:
work great for me too cool
[Nexus 5X General] MrGohut:
What if my n5x is enctypted? Can i still flash this?

Wysłane z mojego Nexus 5X przy użyciu Tapatalka
[Nexus 5X General] DJBhardwaj:
Yes of course. But you will loose the data on the internal storage, and all the apps. So make sure to backup first.
[Nexus 5X General] MrGohut:
Still no root

Wysłane z mojego Nexus 5X przy użyciu Tapatalka
[Nexus 5X General] drewski_1:
what build are you on? how did you try to root after flashing the boot.img?
[Nexus 5X General] MrGohut:
that's what i did:

1. unlock bootloader

2. flash http://xdaforums.com/nexus-5x/general/4-17-16-t3360574

3. format userdata

4. reboot

DP3

Wysłane z mojego Nexus 5X przy użyciu Tapatalka
[Nexus 5X General] drewski_1:
This boot image allows for root, but doesn't actually root the phone.

Flashing SuperSU v2.72 will root the phone and can modify the boot.img to remove forced encryption too.
[Nexus 5X General] MrGohut:
Okay, so:

1. unlock

2. format userdata (to decrypt) is it necessary?

3. flash http://xdaforums.com/nexus-5x/general/4-17-16-t3360574

4. flash supersu

5. reboot

right?
[Nexus 5X General] drewski_1:
I've read about issues with entering TWRP, if you are not decrypted.

I've been decrypted from the start so I can neither confirm nor deny.
[Nexus 5X General] MrGohut:
Thanks, i'll do that, and what about Viper4Android? Is it working with N and this?

---------- Post added at 08:17 PM ---------- Previous post was at 08:04 PM ----------

Can't flash root. oh my god :> I'm so crappy with this N version...

---------- Post added at 08:38 PM ---------- Previous post was at 08:17 PM ----------

Finally! I made it!
[Nexus 5X General] Smultie:
How [MENTION=5723753]MrGohut[/MENTION]?
[Nexus 5X General] MrGohut:
Well:

1. unlock bl

2. fastboot flash boot

3. fastboot format userdata

4. fastboot format cache

5. flash TWRP

6. flash SuperSU 2.74
[Nexus 5X General] Smultie:
Not possible without the modified boot.img and without formatting userdata and cache?
[Nexus 5X General] MrGohut:
Can't really tell. Sorry :/
[Nexus 5X General] bhavstech:
is the latest npd35k n preview image decrypted?

and does it support twrp?
[Nexus 5X General] Razvansx:
[MENTION=5407721]bhavstech[/MENTION] The answer is yes for both of your questions.
[Nexus 5X General] oeusr:
Sorry if this has been asked before, but since TWRP supports flashing images, would we be able to flash this in TWRP? Only asking because my laptop with fastboot set up is having issues.

I see TWRP is supported but I didn't know if that means supported installing it or using it to install.

Thanks in advance
[Nexus 5X General] tlxxxsracer:
I flashed the img. Am I supposed to still see "encrypted" in security tab? after flashing N beta. I wiped internal data/factory reset. then I flashed this img
[Nexus 5X General] pbailey212:
You need to format everything, not wipe
[Nexus 5X General] tlxxxsracer:
?? How do I go about that
[Nexus 5X General] shjin01:
[MENTION=2786614]tlxxxsracer[/MENTION]

fastboot format userdata
[Nexus 5X General] tlxxxsracer:
So do that, then flash the img? or vice versa
[Nexus 5X General] shjin01:
Don't quote me on it but i think it shouldn't matter because the encryption of the user partition takes place during the first boot of the os.
[Nexus 5X General] drewski_1:
this is correct. they both just need to happen before you reboot.

formatting userdata removes encryption.

the modified boot.img prevents the auto/forced encryption when you reboot
[Nexus 5X General] Tigerstown:
This is a thread for modified boot.imgs. Which includes changing force encryption to encryptable so yes.
[Nexus 5X General] Tigerstown:
Boot.img yes. Not all of new N update tho.
[Nexus 5X General] Tigerstown:
Flash boot.img

Flash userdata

Boot to os

You R now decrypted and can access twrp.
[Nexus 5X General] dml1851:
Ok I was trying to get working twrp and I fastboot flashed this boot.img, then format userdata, fastboot erase cache, then flash twrp 3.0 and twrp works correctly but when I reboot phone doesn't boot, i think I'm in a bootloop since it's taking a while...any advise?

Enviado desde mi iPad utilizando Tapatalk
[Nexus 5X General] DJBhardwaj:
You erased the cache partition? The command you have to use is 'fastboot format' in either case.
[Nexus 5X General] dml1851:
Maybe that was the problem

Enviado desde mi Nexus 5x mediante Tapatalk
[Nexus 5X General] folgoratore:
hi everyone, i'm trying to get this working with the new dev preview, but i've had no luck this far.

i'm starting from scratch, so i've flashed the latest factory image with the command

fastboot update -w image-bullhead-npd35k.zip

by deafult at the end of the update command the phone is rebooted, but i hold the volume buttons as soon as the procedure ends so that the phone goes into bootloader.

then i flash the modified boot and i format (not erase) the userdata and cache partitions, but the phone goes into bootloop. i also tried to flash the userdata.img and cache.img from the factory image instead of formatting them, but the result is the same.

what am i doing wrong?

thanks to everyone :)

update: nevermind, i had success using racer kernel
[Nexus 5X General] AllusionPDX:
how exactly did you fix this?
[Nexus 5X General] folgoratore:
I didn't exactly fix this, but i managed to get the phone working without encryption.

i booted I nto the twrp right after the "fastboot update" command (by "right after" I mean without letting the phone boot at all) and flashed the latest racer kernel (+ SuperSU).

first boot was quite fast, the data partition is not encrypted and SuperSU works flawlessly.

only thing is that I apparently cannot write in the system partition at all, infact SuperSU has been installed in system-less mode and the only way to get adaway to work has been by flashing a script that makes the hosts file kinda system-less, like SuperSU.
[Nexus 5X General] yhn:
https://storage.googleapis.com/androiddevelopers/shareables/preview/bullhead-npc56p-preview-6c877a3d.tgz
[Nexus 5X General] AllusionPDX:
I figured it out, was using the wrong version of boot.img the first page isn't exactly intuitive as an explanation
[Nexus 5X General] tylerdurden83:
I followed the guide at http://xdaforums.com/nexus-5x/general/guides-how-to-guides-beginners-t3206930, that says that decrypting a phone isn't neede anymore with twrp 2.8.7.1+.

So i went ahead and flashed 3.0.2.0 on an encrypted N DP3, which ofc didn't work.

Do i really have to flash the modified boot.img and unencrypt the device just to get twrp to work now?

Cheers all,

TD
[Nexus 5X General] pbailey212:
If you want twrp with "n" you have to decrypt. But with marshmallow you didn't
[Nexus 5X General] Tigerstown:
Update for new June factory imgs I'll be posting tomorrow. Just don't have time tonight. But tomorrow for sure if anyone is wondering. Sorry but something came up.
[Nexus 5X General] khanjui:
If you want to test for 5X again, I'm here.
[Nexus 5X General] iddasi22:
I'm waiting it. Thank you for your work.
[Nexus 5X General] Tigerstown:
Sounds good. I'll get at you after work tonight. I appreciate the offer too.
[Nexus 5X General] Tigerstown:
Pm sent.
[Nexus 5X General] Tigerstown:
Op updated for June update. Thanks to [MENTION=4984423]khanjui[/MENTION] for testing for me again. Enjoy
[Nexus 5X General] Tigerstown:
Multiple post my bad. Browser froze
[Nexus 5X General] djibril13:
After installation have to flash some specific version of SU ?
[Nexus 5X General] Tigerstown:
Not specific why?
[Nexus 5X General] drewski_1:
If N-preview use beta 2.74
[Nexus 5X General] czecx:
Can you update your Kernel for Android N DP4 please?

https://developer.android.com/preview/download.html#flash

https://developer.android.com/preview/download-ota.html#ota-images
[Nexus 5X General] Tigerstown:
Soon as get to the crib from work that is my plan. I should be home in under 2hrs. Stupid updates always come when I'm working. And sense I don't have a office job no PC available or I would do it now. I appreciate the link
[Nexus 5X General] noolis:
I use from DP3 no problems until now
[Nexus 5X General] Tigerstown:
anyone want to test? i'm ready Pm me

Got a tester thanks everyone. Just waiting on them and then I'll update Op
[Nexus 5X General] Tigerstown:
OP updated for Android N NPD56N and big thanks to [MENTION=5042950]Psychofrantics[/MENTION] for testing and reporting back!
[Nexus 5X General] vasili_defy:
hey guys,

So i followed the steps of flashing bootloader,radio,vendor,cache , modified boot by tiger..

But now when i am trying to boot into recovery , I am stuck on Twrp loading screen..

Any help will be appreciated..
[Nexus 5X General] Tigerstown:
Is your device decrypted?
[Nexus 5X General] vasili_defy:
No still encrypted, I will I install it without encryption.

Update : So i am decrypted , but now half of my storage is not being shown.

Only 11 Gb out 32 GB.

Any help?
[Nexus 5X General] datagubben:
Thank you for new boot.img N4

But I can not restore from TB now, is it something I missed? :confused:

fastboot boot.img

format userdata

TWRP 3.0.2.0

SU 2.74
[Nexus 5X General] Tigerstown:
Are you on 64gig?
[Nexus 5X General] Tigerstown:
Sorry I can't help there I don't use TB to restore. TBH I never restore anything all fresh always here. Maybe someone else that uses it can help you.
[Nexus 5X General] vasili_defy:
No man, on 32 GB.

I solved the problem by changing the storage from ext to fat and then again ext.

PS. Has anyone solved the titanium backup problem , cannot restore the apps..
[Nexus 5X General] SlimSnoopOS:
Did you flash userdata.img? That is the most common occurrence for internal storage being resized that I have noticed. If so, that is not the same as "fastboot format userdata" since it may resize your storage if you're using the 32 GB 5X.
[Nexus 5X General] vasili_defy:
Yes did flash.

Now the preview has thrown me another trick, I cannot download any files .

The downloads just don't start at all. Are there any permissions issues in N ?
[Nexus 5X General] drewski_1:
Same for me (dp4 but pixel c. Did ota on n5x).

Looks like TB needs to be updated, but may not be high priority for them with constant changes until release
[Nexus 5X General] andQlimax:
what is "DM removed" ?

Thanks
[Nexus 5X General] Tigerstown:
in short it checks your system before boot up to see if your system block as been modified if so it don't boot cause it things your device as been tampered with. So if you install system root with DM verity checks enabled it will think your system is tampered/corrupt. Also called a Verified boot.
[Nexus 5X General] lightydo:
Question: Can you share the process so we can generate the boot.img ourselves?

I guess the steps are:

1. get stock boot.img (unzip from preview stock image)

2. unpack it (which unpackbootimg did you use?)

3. get Nexus 5X kernel, make relevant changes (details?) and compile it.

4. repack boot.img with new kernel (which mkbootimg did you use? any special parameters, like dtb?)

Thanks.

Daniel.
[Nexus 5X General] datagubben:
July security patch boot.img?
[Nexus 5X General] khanjui:
People have a life.
[Nexus 5X General] Tigerstown:
hey you feel like testing the N boot.img I removed force-encryption? i got it done just need to test before i post as i don't have this device...if your not o wanting to go to N it is all good, Also i'm doing the july patch boot.img tonight if you want to test the MM let me know thanks.....:highfive:
[Nexus 5X General] khanjui:
I can test the MM one, don't want to install N for now. You are welcome!
[Nexus 5X General] Tigerstown:
i would thank your post but I have used my limit for the day it said :(
[Nexus 5X General] Tigerstown:
Ok let me eat dinner and I'll do the July one real quick and send you a Pm..:svetius:

Anyone want to test the N one for me send me a Pm. Also it will work I just won't post nothing that isn't tested. Do not send me a PM asking to test if your not currently Decrypted. Thanks
[Nexus 5X General] holla420:
But but but....I wanna test but not decrypted and on a 6p. pls help. Bwuahaha jk homie had to do it lol
[Nexus 5X General] Tigerstown:
you know bruh some people just rude as heck. here i'm going out of my way for a device i never owned or even used once. o well i'm just thankful for the ones that enjoy it. just here to help the community as you know bering my boi.
[Nexus 5X General] holla420:
Yea some people are ungrateful. I know I am. Good looking on showing me the way lol :good:
[Nexus 5X General] Xdevillived666:
Modified boot image for dp5 available yet?
[Nexus 5X General] Mainak_11:
I can test N DP5 boot image :)

Running DP5 in 5x
[Nexus 5X General] Anoxymoron:
edit: nevermind, I just started new.
[Nexus 5X General] zipredictive:
Pmed ! My 5x is ready

Inviato dal mio Nexus 5X utilizzando Tapatalk
[Nexus 5X General] Tigerstown:
Have been waiting all day for a tester. Finally got a someone. So once they reply to me I'll post.
[Nexus 5X General] Tigerstown:
Good look, file has been sent
[Nexus 5X General] noolis:
One more tester....haha,i'm waiting your files!
[Nexus 5X General] zipredictive:
Worked like a charm thanks!
[Nexus 5X General] Tigerstown:
Thanks for testing :highfive:

OP has been updated with NPD90G modified boot.img. enjoy
[Nexus 5X General] Anoxymoron:
So with this new boot.img, we flash it, and install the latest version of TWRP and SuperSU as per usual?
[Nexus 5X General] kevtrysmoddin:
Thanks for the hard work finally unencrypted great work
[Nexus 5X General] Tigerstown:
Correct. If your device is decrypted already you will have no issues booting to twrp with this modified boot.img
[Nexus 5X General] Tigerstown:
No problem glad you appreciate it. I'm out of thanks for the day already or I would have thanked your post :highfive:
[Nexus 5X General] tacofromhell:
Works great! Thank you again!
[Nexus 5X General] kimikim0:
Deleted
[Nexus 5X General] kimikim0:
Boot.img for july update MTC19Z ?
[Nexus 5X General] lucian777:
+1 To that
[Nexus 5X General] dfpbld:
oh, i want MTC19Z too:)
[Nexus 5X General] nokiagye:
Hi my friends I am years on Nexus but I can't understand correctly the process with the encryption , because I haven't on any one of my Nexus stock rom I don't know how can I kept otas with root twrp and encryption off.

And after the ota the encryption will come back?

And if yes is there any way to keep it off without the use of a PC?

Sorry I make a lot questions

It's the first time that I want to keep my new phone stock and I choose the wrong phone?
[Nexus 5X General] DJBhardwaj:
Please don't be sorry for anything. We all have our first times. :good:

Disabling forced-encryption requires flashing the modified boot.img (kernel). This modified boot will disable verity checks (dm-verity) on the first boot, and that is where the actual encryption happens, once and for all. Flashing the modified boot will ensure that your storage doesn't get encrypted. And so the last step is to decrypt, by using the following commands while in bootloader mode:

fastboot format userdata
fastboot format cache

As for OTA, you can install TWRP, decrypt, and root, and you will still be able to flash the OTA updates. However, you will probably have to do it manually using FlashFire app. I update my sister's 5X the same way, since it is more user-friendly.
[Nexus 5X General] nokiagye:
Thanks and last after the ota the encryption will come back what can I do with that?
[Nexus 5X General] DJBhardwaj:
It depends, whether the OTA contains major kernel changes. At most times, this is not the case, so your device stays decrypted.

However, to overcome any chances, just re-flash the corresponding modified boot.img or custom kernel, right after flashing the OTA.
[Nexus 5X General] SlimSnoopOS:
Backup your data to a computer before running the fastboot command below. This formats your phone and erase your /sdcard contents (pics, texts, etc) in the process.

fastboot format userdata
[Nexus 5X General] dfpbld:
Hello,

I have quick question. What will happend if i relock bootloader after flashing modified boot.img (kernel)? Is it possible to brick device by doing that?
[Nexus 5X General] DJBhardwaj:
Not until you flash the wrong boot.img.

BTW, why would you relock the bootloader? Any major reasons?
[Nexus 5X General] dfpbld:
no, i was just curious about any limitations.
[Nexus 5X General] Tigerstown:
I will post the Aug update boot.img here. Let's Remember I don't owe you nothing I do this to be nice to you users so I would expect the same back from you guys. I had some pretty ruthless PM's by users about how I must post boot.img and like your entitled to it is why there was no July update here for MM. I have 2 hours of work left then have to get home then I'll be posting it right away.
[Nexus 5X General] jsgraphicart:
Hello everyone. I currently have a Nexus 5 but come Thursday, will be getting myself a Nexus 5X. I've been doing some research on some stuff and see that these modified boot.img files are needed for root on the newer Nexus phones. The Nexus 5 didn't need these. I'm guessing it's because of the forced encryption? I just wanted to clear some stuff up before jumping into this when I get my 5X

1. Are the boot.img files necessary for root or are they just needed if you want to disable the encryption?

2. Does the modified boot.img break Android Pay? I currently use the systemless root on my Nexus 5 which allows Android Pay to work still.

3. I'm really familiar with rooting and ADB/Fastboot with the Nexus 5. Other than the Modified boot.img, is it basically all the same?

Thanks in advance for any feedback.
[Nexus 5X General] ClovisHD:
I thought that disabling dm-verity would skip the warning at boot, but it's still there. so what does it do?
[Nexus 5X General] DJBhardwaj:
1. Not necessary. You can root using CF-AutoRoot too. But if you want to flash files from your device, including SuperSU, ROM, kernel, etc, then it is necessary. (Without decrypting, you can flash files only from an external device, like a portable HDD or USB drive.

3. Yes, it is all the same.

As for #2, I am not sure because I have never used Android Pay.

The boot warning is not related to the boot.img (kernel). Read: https://support.google.com/nexus/answer/6185381?p=verified_boot&rd=1
[Nexus 5X General] Tigerstown:
That allows your system to boot with system root.
[Nexus 5X General] DJBhardwaj:
We here, appreciate all the work that you have done so far. Of course, you're not bound to "MUST POST" criteria. Kindly ignore such PMs. :cool:
[Nexus 5X General] jsgraphicart:
Thanks for the info. So we basically need a new modified boot.img every time an update comes out unless we use CF-Auto Root? I've never used that. I've always flashed things in recovery. Well I'll try everything out when I get the device and see how it goes. If that's the only thing that's different from the Nexus 5 then I should be fine. Thanks again.
[Nexus 5X General] sfhub:
Disabling dm-verity will get rid of the RED corrupt warning, but not the YELLOW can't verify because you are unlocked warning. You can't really get rid of the yellow warning (and the associated 5 second pause) but you can "hide" the warning by replacing the image used to generate the yellow warning.
[Nexus 5X General] Tigerstown:
Waiting for a friend to test the 5x Aug boot.img I did then I'll be posting it. Just a little update
[Nexus 5X General] jsgraphicart:
A lot of helpful info. Thanks. As you said, I'm coming from a device without all this security stuff that Google added so I just got to read up on it and get a better understanding of it. I'm not worried though. Doesn't sound too crazy. Just a little extra step to accomplish it all. Thank you.
[Nexus 5X General] DJBhardwaj:
Yes, exactly. Yes again, that's the only new thing.
[Nexus 5X General] sfhub:
If you want to read up on the security changes, these are good places to start:

https://source.android.com/security/verifiedboot/verified-boot.html

https://source.android.com/security/encryption/
[Nexus 5X General] Javi22:
Lasts post are really useful, thanks for the explanation (should be in some OP thread-info somewhere, it would solve many doubts)

However I still thinking about why would you do all this stuff of unencrypting?

I read that is because you can flash zips in recovery from internal storage. I don't get it. I have encryption and I can perfectly flash in TWRP :S

I thought this stuff was all because unencrypted is supposed to get better performance
[Nexus 5X General] Tigerstown:
OP update to Aug update Enjoy. Tested by [MENTION=4984423]khanjui[/MENTION] thanks for testing