yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Original Android Development] retundamonkey:
I need some help here. I unlocked the bootloader, flashed Chainfire's insecure kernel, and when I boot up I get a continuous "google.gapps has closed" and it won't go away. Now no matter what I do, it won't go away. I've even downloaded a stock image and flashed it, to no avail. What have I done wrong? What do I do from here?
[Nexus 6P Original Android Development] Lexmazter:
What stock variant did you download? What variant do you have on your device right now? (You can see the version in about software, something like that in settings)
[Nexus 6P Original Android Development] retundamonkey:
Ok I think that was the problem, I had L, and I tried to flash M. I'm good now I think. Thanks for the quick reply though!
[Nexus 6P Original Android Development] Lexmazter:
If you're at it, can you please try for me the patched kernels from here to see if it works with whatever variant you have flashed.

I just want to make sure it works as I don't have a device and you can always flash back your original one.

The kernel needs to be extracted in the kernel subfolder, there are instructions in the first post. It should appear boot.img in your menu from the tool.
[Nexus 6P Original Android Development] retundamonkey:
I would but your link takes me to a MediaFire signup page...
[Nexus 6P Original Android Development] Lexmazter:
Well, apparently in order to view folders you need to have an account...

Will try to find out an alternative...

Edit: [MENTION=3372912]retundamonkey[/MENTION] - I added to the main post separate links for each kernel.
[Nexus 6P Original Android Development] retundamonkey:
Ok I'll give it a shot. By the way, how the hell do you root this thing? I can't flash a SuperSU binary without the thing going into a bootloop, which causes me to have to re-flash stock and start all over again. I'm on turn 6 at the moment. Any help would be appreciated.

EDIT: missed the part about the modified boot image. All good now.
[Nexus 6P Original Android Development] mskip:
Sorry it took a while to get back to you I had to go out. Where did you get the adbd binary for Android 6? Also in Android 5+ you need to patch the SePolicy binary to make it fully permissive. If these 2 things can be done then along with the text changes to the ramdisk you can make an insecure kernel. Im not sure whether chainfires patch does this on the fly as it has required the source to be edited before, if it does then all we need is the patched adbd binary. Even if the kpatch is not needed for an insecure kernel I think its still worth doing because if someone with root boots the kernel without it the device will go in to a bootloop.

If you have knowledge about building from source I would appreciate it if I could pick your brains sometimes (figuratively not actually, that would be gross). I have tried over and over to build a working environment on my laptop (running ubuntu) so that I can try building a kernel from source and I just keep getting into loops and confusion after downloading the source files. Toolchains, builds, branches, devices, I get stuck somewhere.. Some guidance would be greatly appreciated.

Mark.
[Nexus 6P Original Android Development] john7760:
Is it safe to install the system update after flashing back to MDB08K to root or will that break everything? Thanks in advance.
[Nexus 6P Original Android Development] Lexmazter:
Well, I need to set up again my environment, the adbd binary, original one is in the ramdisk of the kernel.

Still, I don't know yet the benefits of an insecure kernel, i've been out of Android development since jellybean, will need to catch up with all these security stuff.

Also, i'm still confused with this kpatch, as far as I know, kpatch is a technology that lets you patch a kernel without having to recompile, so far I found no reason to do this...

I have provided in the main link some modified kernels for all variants, I did not tested them yet, but of they work I can keep providing them. With those it should work on any variant. Should.
[Nexus 6P Original Android Development] michaelearth:
I just unlocked my bootloader, flashed recovery, flashed a kernel and a rom through recovery but I am stuck on the boot. Any suggestions?

Thank you
[Nexus 6P Original Android Development] mskip:
You should really direct your question to the Rom thread if you flashed a custom rom/kernel.

But anyway, which rom/kernel did you flash? Are you in a bootloop (stuck at animation screen) or stuck at the 'google' message?

MArk.
[Nexus 6P Original Android Development] michaelearth:
I'm stuck at the animation screen. Below is what I all flashed:

Rom: Pure Nexus Project

Kernel: mda89d (from OP)

Thanks
[Nexus 6P Original Android Development] Lexmazter:
Pure Nexus should already contain a boot image inside, I guess you should have not flashed a kernel.
[Nexus 6P Original Android Development] michaelearth:
Ooops. Should I just return to stock and start over?
[Nexus 6P Original Android Development] Lexmazter:
No, just make a factory reset from TWRP and flash again the ROM, it should work then.
[Nexus 6P Original Android Development] michaelearth:
I still am unable to fully boot. Not sure what the problem is...
[Nexus 6P Original Android Development] mskip:
I was you I would play it safe and flash back to stock, then start again. You know you have a good clean base to work with then.

Mark.
[Nexus 6P Original Android Development] michaelearth:
Good idea. But I just flashed back to stock using the Android Multi Tool and it will boot up completely. However, after I've used the Multi Tool to unlock the bootloader and flash twrp, I'll boot into recovery to flash the Pure Nexus rom and it still gets stuck on the boot animation.
[Nexus 6P Original Android Development] Lexmazter:
I guess you need to take your discussion to Pure Android rom thread, as the functionality of this tool works as intended, I guess you need more details about what needs to be done in order to have it fully working. Also you should check the comments there, maybe others had this problem and they solved it.
[Nexus 6P Original Android Development] mskip:
Make sure you have followed the correct procedure for flashing a custom rom. If you still get stuck after that then ask in the roms thread or try a different rom.

Download a ROM and appropriate Gapps package and place on your device.

Boot into your custom recovery.

Perform a full wipe.

Select the wipe option from the TWRP home screen.

Select advanced wipe.

Check the system, data, cache, and dalvik cache options.

Swipe to wipe.

Install the ROM.

Select the install option from the TWRP home screen.

Navigate to where you have the ROM zip stored on your sd card and select it.

Swipe to install.

Navigate to where you have the Gapps zip stored on your sd card and select it.

Swipe to install.

Reboot the device.

Mark.
[Nexus 6P Original Android Development] michaelearth:
Thanks for all of your guys help. Unfortunately, I just noticed that my 6p has a purple tint on the screen. I just got off the phone with Google and already have my RMA ordered.

Thanks again
[Nexus 6P Original Android Development] john7760:
Has anyone had any luck with the patched kernels that were added to the OP? Specifically the MDB08M variant.
[Nexus 6P Original Android Development] Lexmazter:
Are you on mdb08k? If yes, then you can try my patched kernel for mdb08k, if it boots and works fine, that means the others will work as well and you can move on to mdb08m, if it doesn't work then you can flash back chainfire's one.

And in this way you can confirm if my work is ok or not :D
[Nexus 6P Original Android Development] john7760:
Well that makes too much sense, lol. Backing up now and will give it a go and report back. I'm assuming that just by flashing a new kernel it won't wipe anything but once bitten twice shy!
[Nexus 6P Original Android Development] Lexmazter:
Flashing will not screw anything, but just in case, make a full backup from TWRP, that will also help if you go to the new release and something goes wrong :)
[Nexus 6P Original Android Development] john7760:
Unfortunately It hung at the first "Google" image and never booted.
[Nexus 6P Original Android Development] Lexmazter:
Well, that means - back to the drawing board :D
[Nexus 6P Original Android Development] john7760:
To adapt a quote from Jaws.....I'm gonna need a bigger board!
[Nexus 6P Original Android Development] Lexmazter:
Okay, there is a slight possibility that I got something wrong while unpacking and packing the kernel, the patching seems to be the same as in chainfire's version.

Can you try this one for me. :)
[Nexus 6P Original Android Development] john7760:
That booted just fine :)
[Nexus 6P Original Android Development] Lexmazter:
Thanks a lot for being my guinea pig (joke :)), will patch up the rest of the kernels available and upload them in like 10 minutes.
[Nexus 6P Original Android Development] john7760:
No worries my pleasure. Your hard work is appreciated. Before I flash the new MDB08M update, will the back up and restore feature back up all apps and settings and restore them or will I need to go down the titanium backup root?
[Nexus 6P Original Android Development] Lexmazter:
The back up function from the tool only does backup for data applications and settings, no system stuff will be available in the backup, also you will be asked on the phone what to backup and what not while using that feature.

If you want to backup some system stuff, you need to use titanium backup.

Also, the first post has been updated with new links for all the variants with the new patching, I really hope it works on mdb08m, hopefully yes. :)
[Nexus 6P Original Android Development] john7760:
I am happy to report that I have Flashed the MDB08M Stock image, Twrp, and your patched MDB08M kernel and all is well. Couldn't be happier....well if when I flash the stock image it wouldn't erase the contents of my internal memory, there is that but otherwise very happy!!!

Thanks again.
[Nexus 6P Original Android Development] Lexmazter:
Has the backup worked as expected?
[Nexus 6P Original Android Development] john7760:
It didn't actually back up anything for me, when I checked the folder it was empty. I had everything already backed up on PC for easy transfer back, then titanium backup will finish it off. If that's the only thing that didn't happen as expected it's a pretty good day!
[Nexus 6P Original Android Development] JDROIDS:
This sound like a noob question but I have been doing this 10 plus years. I am using a mac and downloaded the tool but when i click on the androidMultiTool file it says this computer can not open this file. Anyone know what I am doing wrong? Thank in advance for any help.
[Nexus 6P Original Android Development] Lexmazter:
I guess you extracted the folder... Check the version frome here.

Also, what version of MAC are you on, I have only tested it on El Capitan and Yosemite... And for sure it only works on MAC OSX.

Oh, make sure you have 64bit MAC, there is no support so far for x32. I could make one tomorrow if it's actually needed.
[Nexus 6P Original Android Development] john7760:
It's the security settings on the Mac. Go to System>security and allow the file to open and your fine. It's a preventative measure to keep your system from opening random files that may hurt it. Works great on my Mac.
[Nexus 6P Original Android Development] JDROIDS:
Thank you so much for the quick response. I have a 64 bit macbook pro and I am on El Capitan. Not sure what is wrong. I downloaded the one you posted above but had the same issue. Weird. I am scouring the internet looking for solutions as it seems I am the only one having this issue.
[Nexus 6P Original Android Development] john7760:
Just allow the app to open in Security and Privacy in System Preferences
[Nexus 6P Original Android Development] JDROIDS:
Thanks for your response. I did that and it still won't open. I'm clicking on the androidmultitool.app correct? I allowed it by checking it in system>security>privacy and then found the black android logo app androidmultitool and checked it and then relocked. I rebooted the computer and still won't let me open it. Amazing that I can't even open the app. I feel ridiculous.
[Nexus 6P Original Android Development] john7760:
Yeah that's odd. Once you allow the app to open it just opens for me every time.
[Nexus 6P Original Android Development] HTCotta:
I am new to the secure boot feature that checks for "corruption." I have flashed the patched kernel provided in OP (My phone is on version "L") and the tool tells me it was a successful flash, but nothing happens on the phone and when I reboot to system, I still see the orange message. This says to me that the kernel did not, in fact, flash. Am I correct here?
[Nexus 6P Original Android Development] john7760:
Are you refering to the message that first shows up on boot? Does it go beyond that point? That first orange shows up because the bootloader has been unlocked. It shouldn't have any affect on wether or not your phone boots. If you followed the flashing instructions you should be good.

Unlock bootloader > reboot bootloader

Flash TWRP > reboot bootloader

Flash matching kernel to your version > reboot normal

Once booted you should be able to rerun app and boot to revocery and sideload SuperSu and flash it then reboot system and be good to go.

PS. I'd download the the newer MDB08M version and matching kernel and update right away.
[Nexus 6P Original Android Development] Lexmazter:
I updated the FAQ section on the main post, if you want to know more about this secure feature, consider reading this.
[Nexus 6P Original Android Development] JDROIDS:
Still trying to figure out what I am missing. Does my phone need to be in fastboot mode or something for the tool to open?
[Nexus 6P Original Android Development] john7760:
No, the app will reboot the device to where it needs on it's own. Do you have usb debugging turned on in Dev Options? Make sure you have turned on OEM unlock there also.

One thing to try is go into Mac system preferences and unlock it so that things can be installed from any source until you get it up and running to make sure it isn't interfering.
[Nexus 6P Original Android Development] Lexmazter:
The tool should open no matter what, even if you have no phone connected, no binaries, no nothing, it should still open.

I found out something that might help you:

Use open a terminal, go to the application folder and paste this command.

chmod +x AndroidMultiTool.app/contents/macos/*
[Nexus 6P Original Android Development] gd6noob:
Awesome tool.. thanks
[Nexus 6P Original Android Development] lynseyw:
Ok, This is probably a retarded question, but I used the tool to install the latest version with the new patched kernel. Everything is working great. Is there a way to do it without wiping everything off my device....ie my titanium backups? Or should I just pull the titanium backups off and then put them back and restore? I guess I need to use the cloud now. I miss having an sd card that would keep that stuff safe when I wiped.
[Nexus 6P Original Android Development] JDROIDS:
HEY! That worked! Thank you a million [MENTION=4206980]Lexmazter[/MENTION]!
[Nexus 6P Original Android Development] gd6noob:
Which file do I use to remove the Unlocked Bootloader screen on first boot?

The one included with the toolkit doesnt work..

sorry for the noob question,
[Nexus 6P Original Android Development] lynxznet:
You don't.
[Nexus 6P Original Android Development] tmorterlaing:
How does this work with OTA updates? Sorry if already answered, xdas search doesn't work well on mobiles devices :)
[Nexus 6P Original Android Development] john7760:
Don't do the update on the phone but just download the full stock image from Google's site (link in OP) and download the updated kernel that matches (once dev adds it)
[Nexus 6P Original Android Development] john7760:
Yeah that part does really suck, lol. I just copy off the contents from titanium onto the pc until after I've updated then copy back and restore. Would be great if it didn't completely wipe the phone though.
[Nexus 6P Original Android Development] tmorterlaing:
Argh! I'm an idiot. Is there a way of checking what variant phone I have (mdb08k) etc once I've unlocked the phone and flashed the recovery? It wont let me reboot to the system now, just stuck on Google logo animation :s
[Nexus 6P Original Android Development] john7760:
Just download the factory image for MDB08M and the matching kernel and flash them both to update phone to the current version right away. Place the files in the appropriate folders and flash.

If you know your on mdb08k then just flash the matching kernel for it, but you'll have to update anyway or look at the system update notification
[Nexus 6P Original Android Development] tmorterlaing:
OK so I:

Rebooted phone.

Unlocked phone.

Installed TWRP

Opened recovery.

Installed Super Su as per TWRP option.

Went to reboot to system.

It took aged, then I realised I hadent installed the kernel. I then:

Downloaded the latest factory image, flashed it using the utility.

I then flashed the "angler_mdb08m_boot_patched" image.

Reboot.

Still stuck on animation screen? Am I missing a step? Do I need to do it again because of my earlier messup? Sorry :s
[Nexus 6P Original Android Development] john7760:
Seems like something in the process got hung up. I'd:

Reflash the mdb08m factory image (phone should reboot when finished) and skip through till you get to settings and turn back on usb debugging

Reboot into Bootloader

Flash Recovery... reboot bootloader

Flash Kernel (patched mdb08m)

reboot into recovery and either sideload the SuperSu .zip or boot the phone if you can't push it and manually put the .zip in downloads and boot back into recovery and flash it.

Reboot system and you should be good.

Hope this helps
[Nexus 6P Original Android Development] tmorterlaing:
I'm in trouble here - Ive managed to soft brick this thing! It's been stuck on animation screen for 45 mins, so it's not just the cache rebuilding. And thats after flashing the stock image, and relocking the bootloader :s ARGH!

Any tips?
[Nexus 6P Original Android Development] john7760:
Can you hold down power and vol down and get it to boot back into bootloader?

Try to download a different build number and see if it flashes?
[Nexus 6P Original Android Development] tmorterlaing:
OK it was totally my bad :s So sorry! I'd missed I didn't flash 'vendor' before, argh! All is working and rooted now XD Very happy! Thanks so much for your help!!! Allow me to buy you a beer if youre ever in London!
[Nexus 6P Original Android Development] john7760:
Glad your up and running. More than happy to help. I'll be sure to come calling if ever in London!
[Nexus 6P Original Android Development] wooddale:
I could use some advise I unlocked flashed twrp then flashed root got stuck in a boot loop but I was able to get into twrp made a nanoid flashed it nowIm stuck on google screen. My question is can I use this tool to flash bk to stock now and start over? Thanks
[Nexus 6P Original Android Development] Lexmazter:
In order to use root on stock you need a patched kernel.

In the main post, in the FAQ section there is a question related to go to stock feature, which is available.
[Nexus 6P Original Android Development] wooddale:
So that's why I am having problems its making me loop.? Thanks
[Nexus 6P Original Android Development] tmorterlaing:
It sounds like you did what I did. Make sure you follow the instruction really carefully >

Unlock bootloader

Flash recovery

Flash correct kernel - VERY important!

Then reboot into recovery and sideload supersu

then a reboot should be fine.
[Nexus 6P Original Android Development] Lexmazter:
Updated the main post's FAQ section with this answer, I should have done it a long time ago, but still, better now than never.
[Nexus 6P Original Android Development] wooddale:
Thanks is the kernel in the kit or do we have to put it there? Should I start all over or can I just flash the kernel? Thanks
[Nexus 6P Original Android Development] tmorterlaing:
You can just flash the kernel if youre bootloader is unlocked and TWRP is flashed. You just need to make sure you flash the correct one, otherwise I suspect you'll have bootloop issues. if you're phone is up to date, itll be the one with 'M' at the end.
[Nexus 6P Original Android Development] Lexmazter:
Also, there is only one kernel included in the kit, as you can see in the description, in the next release I will include the latest "M" one instead of that one.

I didn't include all these things in order to keep the kit smaller, but you can download them from the first post, under the download links for the tool, you will find the download links for the patched kernel.
[Nexus 6P Original Android Development] wooddale:
Thanks you guys are up early to lol I am on l got it just before I unlocked so I will try l kernel first. I'm stuck on Google logo no so you think if I just flash kernel it will work instead of starting over. Thanks again you guys are life savers.
[Nexus 6P Original Android Development] john7760:
You should be able to as long as it matches the build number you have. Good luck.
[Nexus 6P Original Android Development] wooddale:
Thank you.
[Nexus 6P Original Android Development] joeyac02:
Kinda new to this can someone tell me step by step how to use this tool? Im on build MDB08L
[Nexus 6P Original Android Development] Lexmazter:
Please read the FAQ section of the first post, but anyways, if you want to root, here you have the steps:

(on Windows you need to download and install the drivers, the link is available in the FAQ section as well)

- Unlock bootloader (you device will enjoy a factory reset upon doing this)

- Reboot bootloader

- Flash recovery

- Reboot bootloader

- Download patched kernel for MDB08L, extract the .img in Data/Kernels

- Flash the kernel

- Reboot recovery

- Sideload SuperSu

- Reboot normally & enjoy
[Nexus 6P Original Android Development] joeyac02:
What about the first step Im hooked up the only options I can click are on the right side. So it doesn't give me an options to unlock the bootloader yet
[Nexus 6P Original Android Development] wooddale:
When I tried to flash insecure kernel it says apparently the flashing with code.

Update the L kernel kept giving me code error I am on L. In desperation I flashed the k which was there already and it worked. I am up and rooted on L. Again thanks so much for this tool.
[Nexus 6P Original Android Development] Lexmazter:
You need to be in bootloader mode, in order to do that, turn off the phone and turn it on by using Volume down + Power key. After that hit Refresh and you should have the options on the left.

Also, edited the main post FAQ with this question, it might come in handy.
[Nexus 6P Original Android Development] lynseyw:
Is there a way to flash a vendor.img on this? If so, how? Sorry, noob question
[Nexus 6P Original Android Development] joeyac02:
I got it! Thank you so much!
[Nexus 6P Original Android Development] Lexmazter:
So far the only way to flash the vendor.img is by flashing the stock full package, but will add this feature this weekend.

It's on my ToDo list :D
[Nexus 6P Original Android Development] lynseyw:
Awesome, Thanks!
[Nexus 6P Original Android Development] kenbrownstone:
im about to use the tool..Why would you need to flash vendor img..Ive never heard of this on any phone
[Nexus 6P Original Android Development] cracjackson:
So to get custom recovery I just open the tool put phone in fastboot and then click on the recovery option?
[Nexus 6P Original Android Development] john7760:
You are going to want to follow the instructions in the OP. There are several steps including unlocking the bootloader and flashing a matching kernel in order to be able to have TWRP working.
[Nexus 6P Original Android Development] kenbrownstone:
i keep getting :oops flashing has exited..with code R....it unlocked the phone fine but cant flash recovery
[Nexus 6P Original Android Development] cracjackson:
Oh yea I know my bootloader is unlocked ready. I just wanted to confirm that's what I had to do.

---------- Post added at 10:59 PM ---------- Previous post was at 10:39 PM ----------

So the kernal that comes with the tool the proper kernal to flash?