yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Android Development] evolishesh:
Does the kernel force encryp?
[Nexus 6 Android Development] gerard_f:
It's your choice. You have both versions.
[Nexus 6 Android Development] mikivila:
What file extension? .sh? First comand /system/bin/sh ...../sbin/path? What

---------- Post added at 10:32 PM ---------- Previous post was at 10:24 PM ----------

Huuaaahaaahaaha, thanks work perfect , don't worry now work all
[Nexus 6 Android Development] t0p8uzz:
Can I use the un-encrypted boot.img file you've done to replace boot.img extracted from the factory image .zip when using the flash-all.bat to flash stock?
[Nexus 6 Android Development] zekooooooooo:
Can i use this kernel with pure nexus or custom Roms?
[Nexus 6 Android Development] mikivila:
hi, i think no.. only for stock (custom stock kernel) the best kernel for me for stock,
[Nexus 6 Android Development] bluetigger68:
Aosp should be no problem, not sure about cm or los.

Gesendet von meinem Pixel XL mit Tapatalk
[Nexus 6 Android Development] RegnierD:
As long as it's a rom built from Stock (like PureNexus is) then it should work.

[MENTION=1238148]gerard_f[/MENTION] Will this kernel spoof the verified boot from the bootloader about the unlock status (part of the workaround for Android Pay). I see we have the insecure boot warning disabled, but those aren't the same, I think.
[Nexus 6 Android Development] gerard_f:
The safetynet bootloader commit is not added because I forgot to add it.

I'm going to add the commit and make a update.
[Nexus 6 Android Development] gerard_f:
I forgot to add the safetynet bootloader patch in the kernel, so I make a update with the commit.

If you are not using android pay or something else that doesn't require safetynet pass you don't need to update.

N6F26Q v2

Download

https://www.androidfilehost.com/?w=files&flid=144028

Changelog:

-Safetynet bootloader patch
[Nexus 6 Android Development] dimon153:
Please, add in kernel f2fs support! Thx
[Nexus 6 Android Development] elkay:
I can't seem to get SafetyNet to pass. CTS profile match failure. I've flashed the stock 7.1.1 image, this kernel, tried unSU and other things. No root installed (yet). No Magisk installed (yet). Root Checker shows no root, no Superuser, no SU, SELinux enforcing. Developer options disabled (hence also USB debugging disabled).

Bootloader *is* unlocked. Literally the only other thing I have in my user data is unencrypted (the purpose for using this kernel). Is there anything else that would be tripping up SafetyNet? I was under the impression that the kernel tricked SafetyNet with regard to unlocked bootloader, and it should pass until I install Magisk to hide a root installation. Is that not the case? Kinda confused.
[Nexus 6 Android Development] elkay:
Nevermind, answered my own question. Just had to install Magisk 10.2, phh superuser and turn on Magisk hide. Worked after that, full SafetyNet pass. Woot! :D
[Nexus 6 Android Development] Kal-El7:
Hello,

Please help redirect/correct me if I'm wrong, but I think the last modified Marshmallow stock kernel uploaded here was: MOB31H. Since then, three more have been released:

MMB31C

MOB31K

MOB31S(January 2017)

Did I miss where these can be found in the thread here or did the production stop for Marshmallow kernels after MOB31H? MultiROM for Marshmallow stock was my initial objective.

Thanks so much. =)
[Nexus 6 Android Development] pillo85:
Am stock 7.1.1 , is root need it for this kernel to ran on my Nexus? Ian looking for DTTW feature and or battery efficiency thank you
[Nexus 6 Android Development] Kal-El7:
Awesome job, bud. I personally am having trouble with Magisk. Been rooting phones for years. I typically use Chainfire's SuperSU. So what I'm doing now is backing up my phone content, then ADB wipe/reset my phone entirely. I will be brand new & unrooted. I'm wanting to root the phone this time with Magisk so that Magisk can install TopJohnWu's version of phh's SuperSU (not the original phh SuperSU). Since your SafetyNet now passed, I'm assuming you rooted with topjohnwu's phh SuperSU.

If you don't mind, could you please PM me which path your took? I'd greatly appreciate it. =) I tried following the original guide, but oddly that didn't work for me.

Thanks again.
[Nexus 6 Android Development] gerard_f:
Sorry guys, but my nexus 6 is literally dead, so I can not update this kernel anymore. :crying:

Thanks and see you in nexus 6p forum. :good:
[Nexus 6 Android Development] Droidphilev:
argh :(

Thank you for all the nice things you made for the nexus 6. Success!!!
[Nexus 6 Android Development] hpbrasil:
What was the problem with the device?
[Nexus 6 Android Development] gerard_f:
It fell down stairs.
[Nexus 6 Android Development] bmasephol:
Is there another kernel being maintained that is similar to the stock functions this provided?
[Nexus 6 Android Development] ANDR01DN00B:
Just curious but are you willing to maintain blind builds? Like build the kernel but send it to other people to report bugs and all that?

Sad to see this go though!
[Nexus 6 Android Development] bmasephol:
I'm going to try to pickup the torch and carry a similar kernel forward, at least that is where I hope to get to. My first task is to build the last kernel (Jan) that was posted based of the sources in Gerard's git.

I'm not going to lie and say I know what I'm doing but I've been going through the information Google's site reading up some on some kernel tutorials. Each device seems to be a little different.

I believe I was able to build something, not sure what exactly, but if anybody has a minute for some questions I'm a bit confused when determining which .config to use out of the source files as well as how to package up a custom boot.img file.
[Nexus 6 Android Development] gerard_f:
You can ask me anything if you need help. :good:
[Nexus 6 Android Development] bmasephol:
Appreciate it. Do you want to do Q&A in this thread or through another means?

First question I have is how did you manage the encrypt vs no encrypt versions?
[Nexus 6 Android Development] gerard_f:
To make a non encrypt boot you need to change ramdisk.

On fstab.shamu file, in /data line:

Change "forceencrypt" to "encryptable".
[Nexus 6 Android Development] bmasephol:
Makes sense, you are just changing that in the boot.img when creating them, so the kernel is the same in each version of the boot.img you build. I'll work on figuring out how to unpack and build .img's.
[Nexus 6 Android Development] bmasephol:
I'm pretty sure I understand how the boot.img unpacking and packing works. I diff'd the fstab.shamu file and saw the difference that was there to set the encryption to optional.

Next question is about the source of you .config file before you build the kernel.

The tutorials I'm reading all talk about issuing a

make ARCH=arm XXXXXXXX_defconfig

command that will create the .config. After that you can build with

make ARCH=arm -j16

I choose the shamu_defconfig file in arch/arm/configs

Is this correct?
[Nexus 6 Android Development] gerard_f:
I guess you have the toolchain to path, right?

Next, the comands are:

$ export ARCH=arm

$ export SUBARCH=arm

$ export CROSS_COMPILE=arm-eabi-

$ make shamu_defconfig

$ make

Your compiled kernel is the "zImage-dtb" file in "/arch/arm/boot/" folder
[Nexus 6 Android Development] bmasephol:
Yes, I've managed to get that far, just wasn't 100% sure the shamu_defconfig was what I was to be using.

I managed to build and pack up a boot.img. Flashed it but no success on getting it to boot. I think it might be a toolchain issue. I downloaded the NDK, based on another tutorial, so my toolchain is version 4.9. Which version have you been using?
[Nexus 6 Android Development] gerard_f:
Use the arm-eabi-4.8

https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/

Clone it, and add to path (.baschrc):

PATH=$PATH:~/clonedirectory/arm-eabi-4.8/bin/
[Nexus 6 Android Development] bmasephol:
Thanks, with this info I managed to get a working kernel built from your N6F26Q sources. I have the encrypted version installed on my phone. Rooted and working as expected.

I'll continue to research the next steps... which would be how to reconcile googles latest sources against your changes, or apply the necessary changes to googles latest sources.
[Nexus 6 Android Development] gerard_f:
Create a github account, fork my kernel.

Clone the forked kernel:

$ git clone https://github.com/your_user/kernel_shamu_nougat

Add kernel_msm remote:

$ cd kernel_shamu_nougat

$ git remote add msm https://github.com/android/kernel_msm.git

Update msm remote:

$ git fetch msm

Search latest branch with updated commits (for example at this moment "android-msm-shamu-3.10-nougat-mr1.5") and merge it:

$ git merge msm/android-msm-shamu-3.10-nougat-mr1.5

Now you have updated kernel, you can upload to your github fork:

$ git push

Then you can compile the kernel.
[Nexus 6 Android Development] bmasephol:
Thanks a ton for going through this with me. Tonight I was able to complete all this and get N6F26U (March 2017) build running on my phone.

I'm a windows developer by day so all of this makes some sense to me, just not all that used to using linux and git.

The one issue I ran into was I got this error when creating my boot.img file...

"boot-nougat-n6f26u-mas-v1.img: updated is too big for the Boot Image (8706048 vs 8695014 bytes)"

I'm using abootimg to create a new boot.img, my command looks like this

abootimg --create boot-nougat-n6f26q-mas-v1.img -f bootimg.cfg -k zImage -r initrd.img

When I would get that error I found that I could just put the size on the end of the command like this:

-c "bootsize=8706048"

and then things worked fine.

What is the correct way to calculate what size the image is going to be?
[Nexus 6 Android Development] gerard_f:
You need to put offsets, base, cmdline, etc.

Fastest way to do this is using a tool like this https://xdaforums.com/showthread.php?t=2073775
[Nexus 6 Android Development] bmasephol:
Thanks again for all the help, I'll try out that tool next month when I build April.

---------- Post added at 11:53 AM ---------- Previous post was at 11:52 AM ----------

If anybody is interested in testing out one of the kernels I built for March let me know, I've only built 7.1.1 and have encrypt and no encrypt versions. Boot.img only as well, not update .zips.
[Nexus 6 Android Development] fitz420:
What would be a good replacement for this kernel. I have used this for a long time. I prefer as close to stock as possible, but need kcal.
[Nexus 6 Android Development] gerard_f:
I think [MENTION=1113461]bmasephol[/MENTION] has compiled this kernel with updated sources.

Any news to publish and share the updated kernel?
[Nexus 6 Android Development] bmasephol:
Yes, I will get the March 2017 kernel posted somewhere today and reply when I have that ready. I'm looking forward to the April release so I can fine tune the process.
[Nexus 6 Android Development] bmasephol:
I'm getting a file hosting solution setup, I will post them as soon as that is squared away.

---------- Post added at 08:20 PM ---------- Previous post was at 07:45 PM ----------

I've uploaded the March security update (n6f26u) to android file host.

https://www.androidfilehost.com/?w=files&flid=168787

I'll work on getting my own thread setup tomorrow as well as see about the April security update as that looks like it was released today.
[Nexus 6 Android Development] bmasephol:
I'll get my own thread created I promise.

For now the April security update for 7.1.1 (n6f26y) is up here.

https://www.androidfilehost.com/?w=files&flid=169686

I'm running the version with encryption enabled and have had no issues. But do a backup first please.
[Nexus 6 Android Development] SirOch:
Hi,

Your kernel is working perfectly.

Thank for your work ?

David

Envoyé de mon Nexus 6 en utilisant Tapatalk
[Nexus 6 Android Development] leos0000:
Wich rom u ise
[Nexus 6 Android Development] cujo6801:
It might be awhile before you get a reply his last post before the one you replied on was 16 months ago....

"Sent from the Dog Pound"
[Nexus 6 Android Development] Mega Montana:
stalker [emoji1]
[Nexus 6 Android Development] cujo6801:
No I'm not ....

but could you just move to the left just a little...

Ah that's better thanks...

"Sent from the Dog Pound"
[Nexus 6 Android Development] Bundizle:
Flashable zips maybe..with the any kernel installer..
[Nexus 6 Android Development] bmasephol:
I'm researching on how to create the flashable zips and will hopefully get something uploaded soon.

****

Flashable zips were created and uploaded to the same location. Thanks gerard for the .zip template.
[Nexus 6 Android Development] SirOch:
Hi,

I am full stock [emoji2]

David

Envoyé de mon Nexus 6 en utilisant Tapatalk
[Nexus 6 Android Development] bmasephol:
Sorry I keep hijacking this thread, haven't made my own yet...

May security update (7.1.1 n6f27c) kernels finished. I'm running encrypt and flashed with fastboot.

https://www.androidfilehost.com/?w=files&flid=177903
[Nexus 6 Android Development] Droidphilev:
Thank you for continuing Gerard's work!

A question: are your kernels also MultiRom ready?
[Nexus 6 Android Development] bmasephol:
I don't think they are MultiRom ready, I just read up on that and will see about maybe getting that support merged into this kernel. Watch for an update about it.
[Nexus 6 Android Development] Droidphilev:
Thank you for the effort!
[Nexus 6 Android Development] bmasephol:
After reviewing the MultiROM page and app, it appears that the kernel, as setup by Gerard already has the patch merged in. The kexec-hardboot patch passes the check in the app. Give it a whirl.
[Nexus 6 Android Development] gerard_f:
Yes, all commits to make multirom working are merged in my code.
[Nexus 6 Android Development] bmasephol:
June security patch (N6F27E) for 7.1.1 is up.

https://www.androidfilehost.com/?w=files&flid=188141
[Nexus 6 Android Development] bmasephol:
July security patch (N6F27H) for 7.1.1 is up.

https://www.androidfilehost.com/?w=files&flid=197020
[Nexus 6 Android Development] SirOch:
Thank you for the new kernel ?

Envoyé de mon Nexus 6 en utilisant Tapatalk
[Nexus 6 Android Development] bmasephol:
August security patch (N6F27I) for 7.1.1 is up.

https://www.androidfilehost.com/?w=files&flid=205825
[Nexus 6 Android Development] fitz420:
Flashing this results in a bootloop that sends me back to recovery. I haven't seen this before and have flashed your previous uploads without issue.
[Nexus 6 Android Development] bmasephol:
Which file (encrypt or no encrypt) and did you use the img or zip. I run the encrypt and use the img, no problem with that but I don't test all versions.
[Nexus 6 Android Development] fitz420:
I flashed the noencrypt zip
[Nexus 6 Android Development] bmasephol:
Sorry about the trouble. I've gone back and rebuilt the noencrypt img and zip files from the base kernel. I've uploaded a v2 to my n6f27i folder on android file host.

Please give that a try.
[Nexus 6 Android Development] bmasephol:
September security patch (NGI55D) for 7.1.1 is up.

https://www.androidfilehost.com/?w=files&flid=215664
[Nexus 6 Android Development] fitz420:
Thanks for keeping up with this
[Nexus 6 Android Development] jbaumert:
The noencrypt "zip" version bootlooped back to recovery. (Flashed kernel + Magisk)
[Nexus 6 Android Development] bmasephol:
Thanks, I'll redo it and post a new version. This isn't the version I use so I can't/don't test it.
[Nexus 6 Android Development] bmasephol:
I've posted a v2. Please give it a try and let me know if you have issues. Sorry about the troubles.
[Nexus 6 Android Development] jbaumert:
I have tried flashing all of the "noencrypt" files, v1 and v2 - both img and zip, and no luck booting any of them. They all return to recovery.
[Nexus 6 Android Development] bmasephol:
Well crap, I'll dig out my spare nexus 6 tonight and flash the .zip and see what experience I have. If it don't work I'll try building from scratch again.
[Nexus 6 Android Development] bmasephol:
I built a noencrypt v3 and tried flashing my spare Nexus 6 I use for my drone and it didn't seem to work. I check the phone and it is encrypted so I'm not 100% sure it should work, maybe it should.

Is anybody out there using the noencrypt version (previous months) and having luck? Or has it always been broken?

---------- Post added at 08:41 PM ---------- Previous post was at 08:00 PM ----------

Ok I think I have it sorted out, I've uploaded a v4 of the noencrypt. Should work. I'm running the .img on my spare phone but the .zip should be fine. I had to change the tools I'm using to unpack and repack the ramdisk, I must have been getting lucky all along or it never worked...
[Nexus 6 Android Development] jbaumert:
[MENTION=1113461]bmasephol[/MENTION] - v4 zip flashed and working fine. Thanks again for your time building this.
[Nexus 6 Android Development] Droidphilev:
I used working no-encrypt kernel made by you before :)
[Nexus 6 Android Development] fitz420:
Any chance of an update from latest release.
[Nexus 6 Android Development] bmasephol:
October (n6f27m) security update is posted.

https://www.androidfilehost.com/?w=files&flid=221519

I switched up how I was packaging things after last months issues, so let me know if you have any issues and I'll try to resolve right away.

I'm running the encrypted and flashed via fastboot and .img.
[Nexus 6 Android Development] SirOch:
Hi,

It works very well.

I am encrypted and I used the zip file for the installation.

Cheers

Envoyé de mon Nexus 6 en utilisant Tapatalk
[Nexus 6 Android Development] jbaumert:
Will this also work on the NGI77B (Verizon) build?
[Nexus 6 Android Development] bmasephol:
Yes, I believe the kernel between the two are the same, I believe the radios are different. You can check the thread in the general section, people usually discuss the differences. Give it a whirl.
[Nexus 6 Android Development] jbaumert:
[MENTION=1113461]bmasephol[/MENTION] - Tried "boot-nougat-n6f27m-noencrypt-mas-v1.zip" / Magisk 14.0 and the phone wouldn't boot (sat on boot animation). Reflashed stock then "boot-nougat-n6f27m-noencrypt-mas-v1.img" / Magisk and phone booted fine. Will give it a run through and report back.
[Nexus 6 Android Development] fitz420:
For some reason flashing the last version of your kernel...zip with noencrypt causes a boot loop. Is there any way you could still look at this
[Nexus 6 Android Development] clshores:
This is fabulous! Working well including Android Pay.

Thanks for the great job!
[Nexus 6 Android Development] jodvova:
Flashed IMG and then flashed Despair 31.2 over it.

I got rw system, but still see a triangle on boot.
[Nexus 6 Android Development] PhantomGamers:
I reflashed everything (bootloader, radio, kernel, system, recovery) and formatted cache and userdata and still got the warning. :/
[Nexus 6 Android Development] ANDR01DN00B:
The only thing I really need is vibration control. Are there any plans to add this to the kernel?

Thanks for this!
[Nexus 6 Android Development] neyenlives:
This worked perfectly. Flashed clean stock unmodified Google 58k 6.0 image using the NRT tool. Reboot, set things up, let it all settle in for a minute.... Then used NRT again to install latest TWRP recovery with "perm root option checked" as well. Reboot, let it settle in for a minute. Reboot into TWRP, install this kernel zip and the newest SU 2.49 beta zip, reboot. Bone stock Marshmallow with only root and TWRP. Runs beautifully.
[Nexus 6 Android Development] buzzwyzr:
Thank you for confirming this. That was my main question.
[Nexus 6 Android Development] 4ndroid99:
This is perfect for those who do not want to deviate from the stock experience too much.

My steps were as follows:

-Flashed MRA58K image using fastboot, went through initial boot+setup, went back to fastboot

-Flashed this kernel and twrp using fastboot, went into twrp and flashed the latest beta supersu zip

-Deleted docs, slides, sheets from system/app folder using root browser to make space

now adaway and busybox works perfectly.
[Nexus 6 Android Development] Mike02z:
Thanks!

This worked great for me. Flashed kernel then flashed SuprSU 2.49 and the boot warning is gone and I still have R/W.
[Nexus 6 Android Development] Zer0_Cool:
Maybe try flashing the actual supplied cache and userdata files instead of just formatting them, and give a factory reset a try?

More details here:

https://support.google.com/nexus/answer/6185381?p=verified_boot&rd=1

http://www.droid-life.com/2015/07/27/operating-system-warnings-may-soon-come-to-your-boot-screen/
[Nexus 6 Android Development] PhantomGamers:
The supplied userdata file is for a 32GB device and my phone is 64GB, so that's not an option, but I will try factory resetting it.
[Nexus 6 Android Development] fury683:
Last night I flashed Elemental X, TWRP and the SuperSU zip in TWRP. I left all the options in the kernel on default.

Can I just reflash this kernel zip over what I have or do I need to system and such over again?
[Nexus 6 Android Development] HolyAngel:
FYI: In order for system to be R/W enabled you need to unencrypt your phone. Guarantee it works after that with this kernel.
[Nexus 6 Android Development] Mike02z:
Yup. I'm unencrypted and I have no issue with R/W.
[Nexus 6 Android Development] drawde40599:
If you do a clean install r/w system dosent work ? I thought dirty Flashing ( skipping Userdata.img) was reasom for r/w system issues
[Nexus 6 Android Development] 4ndroid99:
System r/w worked for me while the phone was encrypted (I flashed the kernel after going through initial boot, encryption, setup). The only thing I had to do was free up some space in the system partition by deleting a few apps (docs, slides, sheets).
[Nexus 6 Android Development] fury683:
I flashed the kernel and SuperSU and r/w works fine with encryption on. I had to enable a symlink in AdFree and it worked. Also was able to edit build.prop with root Explorer and installed GSAM root assistant.

Thanks OP!
[Nexus 6 Android Development] Zer0_Cool:
That's not exactly true. I have r/w access and I'm using the encrypted version. The reason using the un-encrypted version works is because it requires a wipe, which is how you fix the issue if it doesn't work to begin with. People were having the same issue with r/w access with the M preview kernels, those who had issues (which wasn't everyone) got access after wiping.
[Nexus 6 Android Development] MadManMoon:
Can I "dirty flash" this over another custom kernel? Or should I reflash the stock system.img first? Will I need to do a full factory reset?

Thanks!
[Nexus 6 Android Development] SymbioticGenius:
I'm having a similar issue on M although I never got it on the previews. Do I need to factory reset again? Or do I need to fastboot flash userdata?
[Nexus 6 Android Development] specialex:
to get root with r/w, should i flash with encryption or w/o encryption ?

does this kernel (with or w/o encryption) set SELinux to permissive, in order to acquire root ?
[Nexus 6 Android Development] crazyjimbo:
I just can't get this to download - the link for the unencrypted ZIP won't load on my PC, and on my phones or tablet it is giving a 5+ hour download time. Any way to get this uploaded onto Drive or Dropbox?
[Nexus 6 Android Development] drawde40599:
The new SU no longer uses Permissive is what I'm reading 2.50. . I'm bout to to try now
[Nexus 6 Android Development] pearsonpsh:
Everything is working great! I went from LMY48M to 6.0 by formatting and flashing all the files except the boot, which encrypts by default, through adb and using a modified boot file that allows unecryption, then flashed this recovery with stock and it seemed to help with my corruption error problem I had initially. With root installed too everything is great; titanium backup and layers is working and I even got the multi-window function enabled! Android 6.0 kicks ass
[Nexus 6 Android Development] kae9797:
Thank you for this Kernel.... The pain Marshmallow was giving me on my Nexus 6 after the update was insane.

This allowed me to remove the 'your device is corrupt message warning' and allowed me to reroot the phone with no problems!:laugh:

I was also able to find and install AdAway, too cool!

This is just what I needed,.

To all involved with the making of this kernel again a BIG Thank You!