[KERNEL][SOLUTION] Magisk 17 and higher for Stock ROMs

asderdd

Senior Member
Oct 3, 2014
57
341
0
İstanbul
This kernel fixes continuesly reboots when you install magisk v17 or higher on lastest oreo stock rom.


Requirements
  • A2017U_V2.1.0B20 Firmware
  • TWRP


Instructions
  • Install a fresh Stock ROM.
  • Boot it once.
  • Install TWRP.
  • Install the boot image over TWRP by choosing install image option.
  • Flash Magisk v17 or higher.
  • Flash custom signed kernel modules magisk module over TWRP.
  • Reboot phone.


Download




XDA:DevDB Information
[KERNEL][SOLUTION] Magisk 17 and higher for Stock ROMs, Kernel for the ZTE Axon 7

Contributors
asderdd
Source Code: https://github.com/Asderdd/android_kernel_zte_axon7/tree/zte-8.0.0

Kernel Special Features:

Version Information
Status: Stable
Current Stable Version: A2017U_V2.1.0B20

Created 2018-10-21
Last Updated 2018-10-21
 
Last edited:

foggydew88

Senior Member
Jul 20, 2007
260
90
48
Savona
Thanks for your job, I've seen your source under github, can you confirm that to avoid bootloops on Magkisk > 17 is enough to set to "n" the SeLinux policy?



Teşekkürler.
 

asderdd

Senior Member
Oct 3, 2014
57
341
0
İstanbul
Thanks for your job, I've seen your source under github, can you confirm that to avoid bootloops on Magkisk > 17 is enough to set to "n" the SeLinux policy?



Teşekkürler.
Yes, if you want use a custom init binary you need to disable zte's policyproc.


It is possible doing this for the A2017V3.0.0B17 ?
If you send me pm that includes the stock boot.img and /system/lib/modules /system/vendor/lib modules folders it's possible.


for all axon 7 phones running oreo b20 stock?
Absolutely.
 
  • Like
Reactions: foggydew88

Dodgexander

Senior Member
Mar 31, 2013
622
166
43
Thanks for this @asderdd works well. Do you know if it will still work with v17.2 or v17.3? I tried but it doesn't seem too although I know they are beta and dev versions.

Hi, thanks for your work but after this i have no wifi on G model.
This is probably because you didn't boot first. I had this too. Make sure you install stock rom first, install recovery and then after the first boot make sure to restart, go to recovery and then flash it according to the steps.
 

ppllpp

Senior Member
Feb 17, 2009
79
16
0
Thanks for this @asderdd works well. Do you know if it will still work with v17.2 or v17.3? I tried but it doesn't seem too although I know they are beta and dev versions.


This is probably because you didn't boot first. I had this too. Make sure you install stock rom first, install recovery and then after the first boot make sure to restart, go to recovery and then flash it according to the steps.
Yes i know i should have followed exactly the instruction but i flashed recovery and modem with miflash all at once then twrp and encryption is not the best...anyway problem solved. Even if custom module in twrp give me error and i don t know why, maybe encryption.
 

bluenote73

Senior Member
Jan 12, 2009
688
154
63
I have tried Oreo yet, but I'm very eager to do so. I've seen some comments that system is now only ro, does this fix this? And can i assume safetynet passes on this? Thank you!

Sent from my ZTE A2017U using Tapatalk
 

bluenote73

Senior Member
Jan 12, 2009
688
154
63
@asderdd On stock latest nougat A2017U Magisk 17.x also bootloops to recovery, is this a separate problem? I'm interested in reporting whatever you had to do to topjohnwu so he can make a fix in Magisk if possible. Or better yet if you're not to busy maybe you can advise him?

thanks
 

asderdd

Senior Member
Oct 3, 2014
57
341
0
İstanbul
I have tried Oreo yet, but I'm very eager to do so. I've seen some comments that system is now only ro, does this fix this? And can i assume safetynet passes on this? Thank you!

Sent from my ZTE A2017U using Tapatalk
Nope it doesn't effect mount status of system. I recommend you to make a magisk module that can adds, modifies or removes files systemlessly. Unfortunately b20 rom can't pass safetynet.

@asderdd On stock latest nougat A2017U Magisk 17.x also bootloops to recovery, is this a separate problem? I'm interested in reporting whatever you had to do to topjohnwu so he can make a fix in Magisk if possible. Or better yet if you're not to busy maybe you can advise him?

thanks
The solution is disabling zte's selinux policyproc feature. Lookup the commits at github for details. I don't know what had changed on magisk v17 to cause conflict with our policyproc.
 

Dodgexander

Senior Member
Mar 31, 2013
622
166
43
Unfortunately b20 rom can't pass safetynet
I am pretty sure I had safetynet passing fine with your solution before + MagiskHide props config module but I kept losing it after some time. I thought it was something I did wrong but today after a fresh reinstall I still can't pass safetynet with the MagiskHide props config module spoofing the Nougat ZTE Axon fingerprint.

Have google done something which means we can't pass safetynet on b20?
 

Predatorhaze

Senior Member
Feb 18, 2016
1,191
208
0
Gelderland
only twrp from nfound works on this rom?

---------- Post added at 12:24 PM ---------- Previous post was at 12:00 PM ----------

doesnt work for me,G version.Magisk is shown in app list,but not in drawer and no root is detected

---------- Post added at 12:29 PM ---------- Previous post was at 12:24 PM ----------

i rebooted again,works now.Magisk 17.3