yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Original Android Development] john7760:
Only if you are on the mdb08k build number. If you are on any other build number you need to flash the additional kernel [MENTION=4206980]Lexmazter[/MENTION] provided that matches your build number.
[Nexus 6P Original Android Development] cracjackson:
Damn okay. I'm on 8L
[Nexus 6P Original Android Development] john7760:
If I were you grab the updated mdb08m build here and then flash the matching mdb08m kernel in the OP so that you are on the most current build.
[Nexus 6P Original Android Development] kenbrownstone:
you know anything about why i cant flash recovery? it keeps saying oops flashing exited..Code r-.......
[Nexus 6P Original Android Development] john7760:
Not really. I'd Flash a fresh stock package, reboot bootloader, flash recovery, reboot bootloader, flash kernel then boot to recovery and sideload supersu.

Something may have gone wrong in previous flash so starting with a fresh start sometimes is the best. Good luck.
[Nexus 6P Original Android Development] wooddale:
I am on the l build I downloaded the l kernel but for some reason it would not flash the k was in there so in desperation I flasked it and it worked not quite sure why but glad it did.
[Nexus 6P Original Android Development] ursa08:
Guys,

after installing SU from the market. It's always asking to update binary :{ Normal or TWRP update not working. Any suggestions?
[Nexus 6P Original Android Development] Stephenparrigin:
So I was able to flash the mdb08k stock image. Now I'm trying to flash the recovery with no success. Keep getting oops flashing excited error. Any help is greatly appreciated!
[Nexus 6P Original Android Development] Lexmazter:
Is your bootloader still unlocked? Reboot bootloader and try again. Remember to refresh the connection to make sure that your phone is in fastboot.
[Nexus 6P Original Android Development] Stephenparrigin:
Yes it is still unlocked. Tried doing what you said multiple times and still got the same "oops error".
[Nexus 6P Original Android Development] Lexmazter:
Well, I don't know what your problem might be, for that reason in the new update there will be better error messages with the actual error.

Unfortunately I cannot release the update until Sunday evening, but it will have lots of bugfixes and some new features...
[Nexus 6P Original Android Development] Stephenparrigin:
Great! The whole reason I bought a nexus phone and I can't even get it rooted! I'll keep trying. Thanks for your input. If anybody else had any ideas I'm all ears! [emoji4]
[Nexus 6P Original Android Development] Lexmazter:
If you don't want to wait that much, you can try flashing the stock image for the last release mdb08m.

I'm really curious why you have that problem with recovery being unable to be flashed, apparently some other users had this problem as well...

Also, on what operating system are you using the tool?
[Nexus 6P Original Android Development] Stephenparrigin:
Well I started ok mdb08d build so I flashed mdb08k stock images. Which went fine. Then I tried flashing your patched kernel and the included chainfire kernel with no luck. Always the same error. Then I let the phone update to the mdb08l build just to see. But got the same error when I tried flashing your patched mdb08l kernel. I feel I've tried everything! I'm using Window 7 x64 bit.

Edit: This is what my screen looks like. Is download mode suppose to be disabled?
[Nexus 6P Original Android Development] MMM-BACONSTRIPS:
Having this same issue as you guys.

Unlocked bootloader - worked fine

Try to flash recovery - "oops flashing has exited with code R"

I've tried re-locking the bootloader and rebooting the phone to reset it and then tried again with the same end result as above.

Tried flashing a new stock image (mdb08k) with the patched kernel from OP and same issue when I try to flash recovery.

I'll wait till Sunday for the new tool and see if that yields any different results or at the very least a better error message to pass along so hopefully I or we can get this figured out and help anyone else. Phone is back to stock mdb89d, which is what it shipped with. If that information makes any difference at all.
[Nexus 6P Original Android Development] Stephenparrigin:
Did you try and flash any other factory images or just the mdb08k?
[Nexus 6P Original Android Development] Lexmazter:
Hello there, unfortunately there will be no release today as some functionalities are not properly working and still need to figure out why, maybe I will add some more in the process. Will take some time but I believe it's worth it.
[Nexus 6P Original Android Development] VanGolfer:
Hi: If I just root use this tool over the stock rom, would I lose all the existing setting and data? Also could any of you who use this tool successfully root N6P can make a youtube video so others can follow the steps? Many thanks!
[Nexus 6P Original Android Development] Lexmazter:
Well, in order to root you need to unlock bootloader, that means factory reset... I don't have the device yet so I cannot make a video, but I will do as soon as I get my hands on it, still unavailable to buy it...
[Nexus 6P Original Android Development] MMM-BACONSTRIPS:
Sorry this took forever to reply. I did not try any other. Figured if that didn't work, no real reason to keep going further. It is what it is, I'll just wait for now. Most of the roms are still being updated and everything so I'm in no real rush as of right now. Give it a few more weeks and if I still can't get it, I'll be itching for a fix.
[Nexus 6P Original Android Development] badboy47:
This works great! I was able to unlock and flash custom recovery with no problems. The best part is you don't need any drivers to install and I very much prefer this over skipsoft tool.
[Nexus 6P Original Android Development] pr0cl1v1ty:
I can't for the life of me figure out which version kernel to use, can someone help me please? I'm stuck in bootloader. Thanks.
[Nexus 6P Original Android Development] john7760:
What build number is your phone on?
[Nexus 6P Original Android Development] pr0cl1v1ty:
Not sure how to find out now that I'm stuck in bootloader but it was the most recent t-mobile update around a week ago.
[Nexus 6P Original Android Development] john7760:
Newest update should be mdb08m. Download the matching kernel form the OP and flash it.
[Nexus 6P Original Android Development] pr0cl1v1ty:
Thank you!

Edit: quick question, since you're so helpful :) I don't see a good explanation on how to sideload properly. Could you explain how to do the sideload for superuser?
[Nexus 6P Original Android Development] john7760:
Reboot into recovery and push the SuperSu zip to the downloads folder or do what I did and just copy it to the folder once in recovery. Then simply flash it while in recovery and reboot.
[Nexus 6P Original Android Development] pr0cl1v1ty:
Hm, I think my issue is that everything is encrypted and asking for a password....
[Nexus 6P Original Android Development] john7760:
I enter the password I used when I set up my pin. I think you can just bypass it by swiping.
[Nexus 6P Original Android Development] pr0cl1v1ty:
I can bypass it, but I cant mount my phone, no data shows up. I remember having this problem on the nexus 6, but I don't remember what I did to fix it.

My pin isn't working :/
[Nexus 6P Original Android Development] john7760:
Try entering anything like 0000 if you didn't use a pin with your initial phone setup.
[Nexus 6P Original Android Development] pr0cl1v1ty:
Not working, I used a finger print and the drawing dot method.
[Nexus 6P Original Android Development] john7760:
You should be able to boot now at least that you have the proper kernel installed. Boot phone and set it up with a pin then reboot to recovery and push file.
[Nexus 6P Original Android Development] pr0cl1v1ty:
Unfortunately I cant get past the password once booted. I'm going to download sdk tools and attempt to format data.

Edit: Fastboot format user data fixed my problem :D Thanks for your help!
[Nexus 6P Original Android Development] Lexmazter:
Formatting of data is also possible from within the tool, is the Erase menu.
[Nexus 6P Original Android Development] pr0cl1v1ty:
Ok, so now my only issue is not being able to see any data on my phone from my pc. The folder is just empty.

Edit: I was on the wrong kernel, needed to use the mdb08l, rebooted into recovery and all is showing now.
[Nexus 6P Original Android Development] john7760:
USB debugging turned on and set to MTP file transfer?
[Nexus 6P Original Android Development] Lexmazter:
Okay, minor release v1.1.0 is up with the changes from the changelog, for more details check the commits from github.

Have fun with it and consider reporting any bug, success or suggestions!
[Nexus 6P Original Android Development] darkcyber20:
Using your LX Multi Tool and it is awesome. Thanks! I do have a couple of questions. In the OP instructions

Q: How do I root my stock phone?

- Unlock bootloader.

- Flash recovery.

- Flash correct kernel for your variant software - VERY important!

- Then reboot into recovery and sideload supersu

Do you have to flash a kernel after you unlock the bootload and flash TWRP? It says to make sure you flash the correct kernel...your tool comes with a kernel in it. How does someone know if that is the correct kernel? The kernel that came with my phone is 3.10.73 and the build is MDA89D.

After installing TWRP I rebooted and tried to make a backup and I get a Failed error message when trying to make a nandroid backup. Also, when I select the location for the backup it shows internal storage = 0 and cannot select USB option. So, any reason why a backup cannot be made?

One final thing, after I unlocked the bootloader and installed TWRP I rebooted the phone after TWRP couldn't make a backup and when the phone booted up I got a screen asking for a password (which I have never put one on my phone) and then an Google error message something about corruption (this is beyond the first one) and said that the phone had to be reset...i.e. factory reset. I chose that option, because it was the only option.
[Nexus 6P Original Android Development] Lexmazter:
Well, as you said, you are on build MDA89D so you need to flash that kernel, in the first post, in the download links section you can find a patched kernel for that build/variant.

TWRP might not properly detect your stuff without that kernel. Also, after unlocking bootloader, a factory reset is performed, you cannot backup after, only before.
[Nexus 6P Original Android Development] simar7:
Crashes on startup

Whenever I try to open the app, it crashes instantly on launch. I'm on Mac OS X 9.5 and here's the stack dump from the crash: http://pastebin.com/VwgvRxaX
[Nexus 6P Original Android Development] Lexmazter:
Hello there, thanks a lot for the stack dump, I know what the problem is, will fix it soon.

Edit: Reuploaded again, check if it works now, if not I can only make a proper fix after I go home from work (4 hours).
[Nexus 6P Original Android Development] darkcyber20:
OK, so flashing a new kernel is basically required then...correct?

When you speak of backing up before unlocking are you speaking of just copying off your data from your Nexus 6P to your computer? I'm talking about making a nandroid backup from within TWRP. When I try to make a backup with TWRP I get failed and storage space is = 0. So, this may be caused by not flashing the patched kernel. Will give that a try.

Thanks!
[Nexus 6P Original Android Development] cd993:
Hmm this crashes upon loading for me too, though I'm a Windows user.

Is there a log I can provide or is this an issue you are aware of?

Edit: Running Windows 7 x64
[Nexus 6P Original Android Development] evodon84:
Anyone able to get this tool working on OS X 10.11? I've tried on 2 different macbooks and not working on either. I did the chmod as well.
[Nexus 6P Original Android Development] Lexmazter:
I'm not aware of this problem... Can you check the older version and report if that one works?

Like above, can you check the older version an report?

The folder with the older version is here https://www.androidfilehost.com/?w=files&flid=43243
[Nexus 6P Original Android Development] evodon84:
[MENTION=4206980]Lexmazter[/MENTION] - yes this older version works for me

Thank you!
[Nexus 6P Original Android Development] darkcyber20:
OK, I got my Nexus 6P unlocked, flashed TWRP Recovery, and flashed the correct patched kernel for my phone. Now I am booting into recovery and see this message : "TWRP can leave your system partition unmodified to make it easier for you to take official updates. TWRP will be unable to prevent the stock ROM from replacing TWRP and will not offer to root your device". So, I guess here I want to allow modifications...correct? What happens either way...if you leave it read only or if you allow modifications?
[Nexus 6P Original Android Development] cd993:
Ahhh that works! I'll be getting my Nexus 6P on Wednesday so was getting this software ready in excited preparation and yes now the v1.02 loads!

Many thanks
[Nexus 6P Original Android Development] darkcyber20:
OK, I have unlocked my Nexus 6P, flashed the TWRP recovery kernel (did this all a couple of days ago and got busy). I haven't sideloaded SuperSU yet and that is what I'm about to do. When I open up MxMulti Tools now all the Fastboot command are active and work, but all the ADB commands are grayed out. Under Reboot Options Normally and Bootloader are active and Recovery is grayed out.

Now, to my question, can i sideload SuperSU from MxMulti Tools? If so, how? Because is Sideload grayed out.

UPDATE: Never could get the tools to do it. I finally just flashed SuperSU the old fashion way :)
[Nexus 6P Original Android Development] Lexmazter:
There is a FAQ section in the thread where you can read how Sideload works, in order to use the ADB features you must be either booted with USB debugging on, or in Recovery (for Sideload for example)

Until then, use the older version. First post updated with the folder for the older versions.

The latest release has been reuploaded, found a way to properly deploy on Windows and the MAC version has been proper deployed now.
[Nexus 6P Original Android Development] darkcyber20:
I followed all the instructions on the FAQ before I posted...still couldn't get it to find my device. I downloaded the tools earlier this week...maybe it is the older version. Anyway, I just flashed supersu the old fashion way and I'm good. Every thing else worked in tools expect getting adb. I really love this tool...makes using adb so much easier...especially for folks that don't use adb much.
[Nexus 6P Original Android Development] SSBMMASTER:
when i try to sideload the supersu zip in twrp i jut get

error: device '(null)' not found
[Nexus 6P Original Android Development] john7760:
Just copy to the device while it's in recovery and flash
[Nexus 6P Original Android Development] Hussainally:
Used your tool..it was simply perfect ..thanks
[Nexus 6P Original Android Development] steveo17:
used your tool to root.

just have a question now. which root method does this use? i'm curious because Chainfire released 2.60 Beta which has specific steps to upgrade to it depending on which root method you have.

http://xdaforums.com/showpost.php?p=64161125&postcount=3
[Nexus 6P Original Android Development] Lexmazter:
Well, your question is a little confusing since:

- There is not automated Root method provided in the tool.

- The kernels which support Root are only unsecured and have the forced encryption removed (which is a must for root).

- In the sideload folder you have SuperSU 2.52 which is NOT system-less root method.

And now I give a shot at answering your question.... If you used a kernel provided in the tool and then flashed 2.52 provided as well in the tool, you need to flash the stock system partition.

Unfortunately, this tool doesn't provide the feature to separately flash only the system partition, but I will add on my TODO list the possibility to flash any partition.

P.S. My Nexus 6P should arrive this week, that means that I can finally test the tool on the actual phone (the test phone so far was HTC One M7 for the ADB features...), new stuff will arrive soon enough for the tool.
[Nexus 6P Original Android Development] steveo17:
Excellent response. Thank you!

I restored my system and boot.

I then flashed the latest supersu (2.6) with no problems. Phone booted right up

Now to update to 6.0.1 I have to restore the system, boot (since I'm using elementalx), & recovery to take the ota right?

or

I can fastboot flash system and re root right?
[Nexus 6P Original Android Development] john7760:
Any chance we can get a patched kernel for the 6.0.1 version of marshmallow out?
[Nexus 6P Original Android Development] Lexmazter:
Yes, I will provide one this week. ?
[Nexus 6P Original Android Development] john7760:
Thanks your the man!
[Nexus 6P Original Android Development] Lexmazter:
The best way to update would be to flash all the partitions. One way to do this is to flash a stock image. The system image alone might not be enough.
[Nexus 6P Original Android Development] steveo17:
thanks!

i ended up flashing everything except the data portion and it worked fine!
[Nexus 6P Original Android Development] fairyshacker:
can i flash 6.0.1 boot loader, radio & vendor with this tool?
[Nexus 6P Original Android Development] Lexmazter:
Right now you cannot flash partitions on their own, this feature will be added in the next release.

If you have the knowledge you can modify a stock package so you flash only what you need, will look into that when I will reach home, basically there is an image_something.zip where you have different stuff.

I will come back at this post after I investigate if this can be done easily and maybe I will change the stock image to flash it without the Data partition. (Note that the System and Boot partitions still need to be flashed for a successfull update).

P.S. I have my Nexus since yesterday evening, development stuff can be done easier now. :D
[Nexus 6P Original Android Development] fairyshacker:
Thanks bro... Eagerly waiting for your update. Btw, i just got my 6p this evening....
[Nexus 6P Original Android Development] lynseyw:
Me too! Waiting on this ?
[Nexus 6P Original Android Development] Lexmazter:
Hello there, this is a status update, I just wanted to let you know that the next release will come a little later than I initially expected, mostly due to upcoming exams and school related activities.

Other than that, I'm open to suggestions as what features would be useful in the future.
[Nexus 6P Original Android Development] AngryDinosaur:
Study up bro, we can wait :good:
[Nexus 6P Original Android Development] RollsReus™:
Does this work for 6.0.1? And how do I know which kernel I'm supposed to download?
[Nexus 6P Original Android Development] ultyrunner:
OK, so I'm a little confused now that I've unlocked the bootloader, flashed the proper kernel from the OP for my 6.0 MDB08L build, and rooted with the included super SU from the toolkit. I just finished restoring my phone from my Google account, and I've finally been notified of the MMB29M 6.01 OTA update, but I know I can't sideload it as is. Is there a way to use the OTA without reverting from my current custom recovery/decrypted state? Or, what are the fastest steps to being able to update?

Or, would I be better simply using the tool to update a full 6.01 stock image? Or, still, am I really now looking at custom ROMs (which I'd like to remain as to close to stock as possible with)? I suspect what I'd like to do isn't possible, which is to use OTA updates, yet keep root and TWRP. If not, I really want to keep root/TWRP/Titanium and have as close to stock as possible.

Any thoughts would be appreciated. And, awesome toolkit BTW. In my old SGS3 days I could never get Heimdall to work like this one does.
[Nexus 6P Original Android Development] Lexmazter:
Hello there, in order to fully update you basically need to flash all the partitions besides userdata and recovery, if you want the custom recovery, that is.

As for Root, i did not provide yet the kernel for 6.0.1 without decryption and verity checks, I was rather busy + lazy lately. But you cam check Chainfire's newest systemless root methods, there are more automated as time passes. Usually the beta ones.

Regarding updating, for example I updated using stock package but lost all the data in the process (which was fine for me, i had nothing on it anyways).

Also I found a rather small bug in the stock package flashing which will be available in the next release.

If you want to test this, you can download a stock package, extract all until the end, and int the last archive, image.zip, you can delete what you don't want flashed, like userdata and recovery. After that flash with the stock functionality form the tool, not sure if it works, just a theory ?.
[Nexus 6P Original Android Development] ultyrunner:
Thanks for the quick reply. So there would have to be a kernel for each new 6.xx update and then I'd have to flash a full stock nexus image, skipping those partitions, to keep my data and custom recovery. And, yes, I'd definitely like to remain decrypted.

Sounds like it may be simpler to find a ROM close to stock which I can flash with recovery, and keep my additional 'flashables' on my sdcard, as I used to when flashing ROMs on my i9305. It's probably more efficient to do that and restore from Titanium.

And, if I'm reading between the lines correctly, there's no way to remain rooted with custom recovery and flash the OTA updates. I'm assuming I couldn't even sideload via TWRP, because the OTA updates are only for stock devices, correct?
[Nexus 6P Original Android Development] Lexmazter:
There was a long sleepy post from me, so basically for OTA you need all Stock (bootloader can be unlocked AFAIK).

If you want to update you have these choices:

- Update via Custom ROM flashable zip.

- Update via full Stock Package (will erase everything).

- Update by manually flashing all the partitions except Userdata and Recovery. (Additional stuff need to be done for Root).

But I guess there should be a stock flashable zip around there... If not I could do one in the future, just to keep the stock running smooth for rooted and custom recovery people. (Currently I only have the bootloader unlocked and that's it).
[Nexus 6P Original Android Development] ultyrunner:
Awesome, thanks for the quick response again. I won't bug you any more on this as it's enough to go on for me. I'm doing a full user data back up in Titanium and a full nandroid backup of my current MDB08L-based mostly stock system, and then I'm just going to test different things. Yeah, a rooted stock flashable zip would be really good, updated when Nexus stock images are. Looking around the 6P forum, all I can see is custom. I tend to be torn between the simplicity of total stock/OTA updates and wanting just a little bit more control and customization than stock gives me.
[Nexus 6P Original Android Development] Lexmazter:
Well, in that case I might consider doing a flashable zip file that contains only the stock stuff, so you can dirty flash the new version without having to think about it. El classico style. Or maybe provide an automated "Update" procedure in the tool. (Also for Root)

Since system root is becoming more and more outdated, please see here the latest and greatest regarding system-less root, you can root with 2.62 by simply flashing a zip file. Seems easy enough, the next release will include that zip file.