DEV Community

sa3i0l
sa3i0l

Posted on

[TWRP & Custom ROM]Huawei Y6 MYA-L11

[TWRP & Custom ROM]Huawei Y6 MYA-L11

Introduction

This ROM is working for Huawei Y6 MYA-L11 I fixed the cellular network (SIM card recognition), but I don't know how to fix other issues as it won't boot up if I put some Huawei libraries.

Huawei Y6 2017 (Huawei Nova Young) doesn't have an official page, not even a custom ROM, nothing, so I needed to take action on this and free ourselves from Huawei terrible practice to lock everything.

So here it is, finally custom ROM to this shady model name and device.

[What doesn't work]

  • Back camera

  • Back flashlight

  • And the front camera is capturing in upside down

  • NFC

  • Easy button (won't be recognized as it's Huawei specific hardware code)

  • GPS is kinda shady, don't know if it works or not

[What work]

  • Everything else

[Unlock bootloader]

First we unlock the bootloader on huawei that ask us for the code. We need to bypass it.

Drivers

Download file MYA-L11_FT_Drivers

Unzip it.

Extract and run Huaqin_Android_Driver_All-in-One.zip, to install the necessary drivers.

Restart PC to apply the drivers

SP flash tool

Open SP flash tool

note: these files are in _MAYA_L11 sub-folder of SP flash tool

a. select Download Agent : "MTK_AllInOne_DA.bin"

b. select the scatter file: "MT6737T_Android_scatter.txt"

Backup proinf partition

a. Press on Readback tab.

b. Press on "Add" button.

c. Double click on the new entry, and chose where you want to save the backup.

d. Select Type: Hex.

Region EMMC_USER

Start Address: 0x80000

Length: 0x300000

e. Press Read Back button " the green arrow "

f. now make sure your phone is turned off,

press and hold the down volume button and plug the USB cable..

keep pressing the volume down button untill the backup process is done.

Flash the new proinfo partition

a. Download the file: proinfo_0x80000.zip (and unzip it) [ note: you may edit it using hex editor and replace the serial keys from your backup. ]

b. Make sure to turn off your phone and disconnect the USB.

c. In SP flash tool press " ctrl + alt + v ", to enable the advanced mode.

d. from "Window " in menu bar select " Write memory"

e. New tab will be available "Write memory "open the it.

f. Set File path: the downloaded file from above "proinfo_0x80000"

Begin address: 0x80000

Region : EMMC_USER

"by DRAM"

g. click on write memory

h. now as before press and hold volume down button on your phone and plug the USB cable.

i. keep pressing the volume down button until the flash is done.

Unlock the phone

a. make sure to enable "OEM unlock" from developer option in your phone.

b. boot your phone to bootloader " fastboot" .

c. from your PC open the "minimal adb tool " or what you have ..

d. type this command :

fastboot oem unlock 5A4CB78CF6711B04

e. done !! your phone will report now and it will do a full factory reset and will delete every thing .. so make sure to have backups

f. and don't relock the bootloader (huawei problems), as it can brick device, live with an unlocked bootloader


[TWRP]

Flash TWRP recovery

now with an unlocked bootloader, time to flash TWRP recovery

in booted android go to developer options>enable USB debugging and also enable/check OEM unlock (so you can modify partitions)

download twrp-3.2.1-1.zip (note: older version also available: twrp_3.1.1.zip)

unzip file and flash in bootloader mode

fastboot flash recovery recovery.img

You can rename .img file as you want.

or use SPFlashTool.

Boot into TWRP recovery

To boot into recovery, first you need to completely turn off phone.

Then hold volume up + power button.

Release volume up and power button, moment when you see warning for unlocked bootloader (as if you hold longer it will bring you to huawei erecovery)

It should boot TWRP, but don't enjoy yet, when you see TWRP boot logo, tap on screen (anywhere) as much as you can (and as fast), because TWRP have some touch issues (buttons don't work, slider slides but don't react to it)

If slider and button work fine then you can proceed, you successfully flashed TWRP.


[Flashing custom ROM]

Backup

First you need to backup everything.

Go to Backup

And check all boxes (because huawei have hardware-specific code for their stock ROM and you don't want to screw up anything, or lose some important partitions)

Swipe to backup.

Save it to somewhere safe (on PC)

Preparation for flashing custom ROM

Download Huawei MYA-l11 DotOS v1.2.zip

Download gapps: https://opengapps.org/

(Download ARM64, 7.1, Pico)

Put those 2 files in SD card or internal memory.

Now boot into TWRP, and go into Wipe>Advanced Wipe

Check Data

And click button (above slider) Repair or Change File System

Click Change File System

And then choose EXT4

The reason for doing this is that Huawei f2fs is encrypted, and if you flash it without this, it will be stuck on asking you for the password, and you would have to reflash stock recovery and all can get messed up, just follow these instructions

And then, again, go to Wipe, and wipe Data, Cache, Dalvik and System (clean flash)

Flashing custom ROM

Now go into Install and choose the downloaded ROM zip and flash it.

Then flash gapps, and when finished Wipe Dalvik/Cache

Reboot into system

If you encounter google wizard stops working, remove SIM card, and finish the wizard without setting up wifi, or any account (do it manually)

When wizard is finished, bring back SIM card and sign in Google account from the settings

That's it, enjoy


[Bug fixes]

NVRAM warning 0x10 in wifi settings

Download FIX NVRAM.zip

Flash it via TWRP.

Done.


Links

[Huawei MYA-l11 DotOS v1.2](https://forum.xda-developers.com/attachments/huawei-mya-l11-dotos-v1-2-zip.5146365/)

[MYA-L11_FT_Drivers](https://forum.xda-developers.com/attachments/mya-l11_ft_drivers-zip.5146373/)

[proinfo_0x80000](https://forum.xda-developers.com/attachments/proinfo_0x80000-zip.5146377/)

[twrp-3.2.1-1](https://forum.xda-developers.com/attachments/twrp-3-2-1-1-zip.5146383/)

[twrp_3.1.1](https://forum.xda-developers.com/attachments/twrp_3-1-1-zip.5146387/)

[FIX NVRAM](https://forum.xda-developers.com/attachments/fix-nvram-zip.5146429/)

Top comments (0)