FORUMS
Remove All Ads from XDA
Honor View 10
Win an Honor 7X!

[Kernel][6.0/7.0] f2fs-fixed kernel v03

107 posts
Thanks Meter: 125
 
By tomparr, Senior Member on 28th January 2017, 09:06 PM
Post Reply Email Thread
Motorola Stock Kernel with f2fs patched and kcal added
Disclaimer: Your warranty is now void, use at your own risk. YOU are choosing to make these modifications and I am not responsible for any damages these changes might do to your device or sanity.

Why this kernel exists:
As many of you know, there is a bug with the f2fs filesystem in the stock kernel which makes it nearly impossible to use systemless modifications (SuperSU, Magisk) on the Moto Z Play. The flaw and its solution are described here.

I started this project for myself to be able to use systemless modifications again, but I hope some of you will find it useful as well. The kernel for Android 6.0 is based on Motorolas source code release (MPN24.104-44) from here and includes security fixes up to december 2016. The Android 7.0 kernel is based on release MMI-NPN25.137-15 with patch date 2017-01. It has been developed and tested with the European model and ROM, but should work on other variants as well as all retail models share the same boot image.

As of patch level 2017-03, Motorola included the f2fs fix in the official kernel. However, I will continue to work on this kernel for those of you who need the verifiedbootstate patch and kcal.


Warning
This kernel is not meant for 7.1.1 and will break your camera and probably more! Once Motorola release the source code you will find an update here.

Features:
  • f2fs patched to allow systemless modifications to work
  • kcal color control
  • Thats all for now, let me know if you need something else ...
Instructions:
If you previously rooted your phone with the chinese TWRP in system mode I would advise to un-root the phone from the SuperSU app and restore a factory image. However, deleting userdata is not necessary except for the SuperSU app. It might not recognize the new systemless mode otherwise.
  1. Optional, unroot via SuperSU app
  2. Reboot to boatloader / fastboot mode
  3. Flash modified TWRP image Flash @Alberto97 latest TWRP from here
  4. Reboot directly into recovery
  5. Optional, remove forced encryption (see below)
  6. Check with TWRP file manager that /data/.supersu is not present, otherwise delete the file.
  7. Flash kernel zip
  8. Flash SuperSU
  9. Reboot the device
Remove forced encryption (optional):
  1. Download attached RemoveForceEnc.zip
  2. Flash file from TWRP
  3. Wipe userdata (in TWRP or use 'fastboot erase userdata' in fastboot mode)
Credits:Download:
  • 03/22/2017 - Android 7.0.0 Kernel v03: Mega
  • 03/23/2017 - Android 6.0.1 Kernel v03: Mega
Archive:

Sources: Github

Changelog:

03/22/2017 | 6.0.1 / 7.0.0 | v3
Added kcal color control. Patch
02/18/2017 | 7.0.0 | v2
Remove verifiedbootstate flag to pass SafetyNet checks. Patch
02/17/2017 | 7.0.0 | v1
Initial release for 7.0
02/02/2017 | 6.0.1 | v2-test
Test build to pass safetynet checks. Removes verifiedbootstate flag. See this patch
01/28/2017 | 6.0.1 | v1
Initial release based in MPN24.104-44 and security bulletins up to december 2016
Attached Files
File Type: zip RemoveForceEnc.zip - [Click for QR Code] (823.3 KB, 2140 views)
The Following 21 Users Say Thank You to tomparr For This Useful Post: [ View ] Gift tomparr Ad-Free
 
 
28th January 2017, 09:42 PM |#2  
flashallthetime's Avatar
Senior Member
Flag Richmond Hill
Thanks Meter: 2,033
 
More
Is it just enough to flash the sprasechunks ? Is there any need to delete userdata?
28th January 2017, 09:57 PM |#3  
tomparr's Avatar
OP Senior Member
Thanks Meter: 125
 
Donate to Me
More
Yeah, system sparsechunks should be enough. Additionally, make sure the file '/data/.supersu' does not exist. There was one guide which required the file to force system mode for supersu.
The Following User Says Thank You to tomparr For This Useful Post: [ View ] Gift tomparr Ad-Free
28th January 2017, 10:11 PM |#4  
flashallthetime's Avatar
Senior Member
Flag Richmond Hill
Thanks Meter: 2,033
 
More
Quote:
Originally Posted by tomparr

Yeah, system sparsechunks should be enough. Additionally, make sure the file '/data/.supersu' does not exist. There was one guide which required the file to force system mode for supersu.

Great job, it worked, I flashed the lastest SR3-supersu without any issues

Ran into a bit of trouble, everything flashed without any issues but when I went into the SuperSU APK " no binary is installed" so it seems even though I did flash the sparsechunks , you may need to delete user data.
I was already rooted with the SuperSU that I extracted from the Chinese TWRP.
The Following 2 Users Say Thank You to flashallthetime For This Useful Post: [ View ] Gift flashallthetime Ad-Free
29th January 2017, 12:26 AM |#5  
tomparr's Avatar
OP Senior Member
Thanks Meter: 125
 
Donate to Me
More
Quote:
Originally Posted by flashallthetime

Great job, it worked, I flashed the lastest SR3-supersu without any issues

Ran into a bit of trouble, everything flashed without any issues but when I went into the SuperSU APK " no binary is installed" so it seems even though I did flash the sparsechunks , you may need to delete user data.
I was already rooted with the SuperSU that I extracted from the Chinese TWRP.

Thanks for testing. Have you tried to delete SuperSU and its app data and flash SR3 again?
29th January 2017, 12:44 AM |#6  
lpchaim's Avatar
Member
Thanks Meter: 13
 
More
Thanks a lot OP, I've been waiting for something like this. I'll give it a go.
29th January 2017, 01:28 AM |#7  
flashallthetime's Avatar
Senior Member
Flag Richmond Hill
Thanks Meter: 2,033
 
More
Quote:
Originally Posted by tomparr

Thanks for testing. Have you tried to delete SuperSU and its app data and flash SR3 again?

No I didn't.

Edit: You need to also re-flash the kernel as well as the sparsechunks. It works and I'm rooted with SR3.


Sent from my XT1635-02 using XDA-Developers Legacy app
29th January 2017, 09:17 AM |#8  
Senior Member
Thanks Meter: 117
 
More
Hi I have stock reteu with this version twrp of alberto and root with super his SR3 2.79 is this for me? Thank you


regards
29th January 2017, 03:27 PM |#9  
Senior Member
Thanks Meter: 34
 
More
So if a install this i finally will be able to install adaway? Cause with the root i have i just cant

Sent from my XT1635-02 using XDA-Developers Legacy app
29th January 2017, 05:19 PM |#10  
tomparr's Avatar
OP Senior Member
Thanks Meter: 125
 
Donate to Me
More
Quote:
Originally Posted by elgringoloco77

So if a install this i finally will be able to install adaway? Cause with the root i have i just cant

Sent from my XT1635-02 using XDA-Developers Legacy app

Yes, running AdAway (and Titanium Backup) was the main reason I started building the kernel.
29th January 2017, 05:21 PM |#11  
tomparr's Avatar
OP Senior Member
Thanks Meter: 125
 
Donate to Me
More
Quote:
Originally Posted by iron maiden

Hi I have stock reteu with this version twrp of alberto and root with super his SR3 2.79 is this for me? Thank you

regards

Depends, if you are ok with system mode root, you don't need this.
The Following User Says Thank You to tomparr For This Useful Post: [ View ] Gift tomparr Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread