Code:
/*
* Your warranty is now void.
*
* We're not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/
Hey.
In this tutorial i will show you how to root Huawei Y6 2018.
Devices that should work:
ATU-L11
ATU-L21
ATU-L22
ATU-L23
ATU-L31
ATU-L42
YGN-AL00
YGN-L21
YGN-L22
YGN-L23
YGN-L41
YGN-L42
YGN-L51
YGN-L61
YGN-TL10
First you need to have the bootloader unlocked and usb debugging enabled.
Download this Magisk Patched Ramdisk from here:
https://mega.nz/#!OdpDiKJb!MBjuu0fbjqSuynxGZ9n0x9JuoqXcV5YYXoZOvOaYAbU
After that go into fastboot and type:
fastboot flash ramdisk ramdisk.img
Now type
fastboot reboot. Wait your phone to boot and now it should be rooted

(You might have to install
Magisk Manager mannualy to propretly use root permissions)
Tested only on ATU-L21, use at your own risk!
Tested only on EMUI 8. I'm not sure if it would work on Lineage 15.0
Original Ramdisk:
https://mega.nz/#!bdwTiD5I!STHIWQrCle_nCoPKe4_Mgvo9z_Qn4Etnnhbt0fmG1PE
Kernel.img, if your phone shows Huawei logo and then goes blackscreen:
https://mega.nz/#!KAoR3KYT!ufZv7ZbBsB_Bf9Rw_7vovbGJMmsuPOpUeIAFgUohKE0
If something goes wrong, you could try to flash this one.
Tutorial for noobs here:
https://forum.xda-developers.com/hu...i-y6-2018-atu-xxx-t3815407/page3#post77139034
If i helped, press the Thanks button
(I don't own the device)