yashsingh1/xdaforums huggingface dataset:
[Upgrading, Modifying and Unlocking] XRed_CubeX:
I am not responsible for any brick.

I tested this guide myself and decided to share it.

Make a backup before this guide because you will lose your data!

The unlock method has been updated and now you can unlock the bootloader more easily without the risk of bricking after an OTA and without changing the bootloader.

Now you can safely unlock the bootloader using mtkclient.

Link: https://github.com/bkerler/mtkclient

TWRP can be installed via mtkclient or manually from rooted Android.

TWRP Download link: https://github.com/XRedCubeX/twrp_meizu_m5c/releases

IF you unlocked the bootloader with the old method you can follow these steps:

1) Download the attached package.

2) Download OTA zip from flyme, link: http://www.flymeos.com/firmwarelist?modelId=70&type=1

3) Download the latest version of SP Flash Tool.

4) Download MTKClient and follow the instructions to install it.

5) Power off the phone and keep unplugged it from PC.

6) Open SP Flash Tool, select the downloaded package and select all partitions, then press the download button, don't plug phone for now.

7) Boot to recovery with vol +, plug the phone on PC, depending on recovery, TWRP or stock, use adb sideload or put update.zip in internal memory and install the zip.

8) Let the phone reboot or reboot it manually.

9) Now start the flash from SP Flash tool automatically, let it finish.

10) After the flash, unplug the phone and reboot into recovery.

11) Paste the update.zip in the phone and flash it.

12) After reboot, let your phone reboot into android and power off.

13) You can follow the guide to unlock bootloader with mtkclient.

FAQ:

A) But will I lose the data with this guide?

Yes.

Make sure to back up your data in any case!

B) But this guide is a bit different than usual, where is "fastboot oem unlock"? Or "fastboot flashing unlock"?

Meizu has not implemented an unlock command and in this case to unlock the bootloader we have to use a tool that makes us change the unlock status.

C) Are there Custom ROMs?

There is only one custom ROM for this device, the Lineage OS 14 but I advise against using it because it has a bit of a bug but I haven't had more time to work on it yet.

D) But wasn't the guide different?

It has been updated with a better method with more advantages.

E) My device is in Hard Brick! How can I solve?

There are various types of Hard Brick and it depends from situation to situation.

F) I have installed Lineage OS 14 but I am not satisfied, I want to go back to Flyme!

Flash update.zip from official website.

G) Can I relock the bootloader?

From MTKClient readme:

H) TWRP? I am interested in Device Tree, where is the link?

Here: https://github.com/XRedCubeX/twrp_meizu_m5c

I) I have a Meizu A5 (Chinese M5c) will it work on it?

I can't assure you anything but it could work, the only way to be sure is to test on a Meizu A5.

J) Can I flash twrp from fastboot?

Fastboot refuses to flash partitions, strangely, I don't know if downgrade or anything changes the situation but for now I was able to flash it with mtkclient.
[Upgrading, Modifying and Unlocking] Mortaux:
I can remove the FlameOs from the Meizu M5c and install a custom rom. So far I haven't found any rom for this device?
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Im working on a Lineage OS 14 for this device.
[Upgrading, Modifying and Unlocking] Deleted member 9773516:
I tried the procedure and it failed. Apparently it just formatted it but couldn't finish the process, returned an error. Then I tried to reinstall the stock ROM and it generated the error S_BROM_DOWNLOAD_DA_FAIL (0x7D4) & 2004). Now my phone is off and I can't turn it on anymore.

I tried this method but it didn't work:

https://xdaforums.com/t/how-to-fix-...ad_da_fail-0x7d4-2004-for-mtk-phones.3692259/

I know it's my responsibility, but I don't know what else to do. Could someone please help me?
[Upgrading, Modifying and Unlocking] XRed_CubeX:
You unplugged the device while it was formatting, consequently it no longer has the bootloader, that error means that the device needs an authorization file that unfortunately only meizu has, shortly if I can try to release a tool to unbrick it in cases similar to these
[Upgrading, Modifying and Unlocking] Deleted member 9773516:
It's a shame .. I hope you can really release this tool, so I can revive my phone. Thank you.
[Upgrading, Modifying and Unlocking] Mortaux:
You can make a video on youtube showing the procedure on the Meizu M5c. Installing Twrp and LineageOs 14? Just to make sure it works
[Upgrading, Modifying and Unlocking] XRed_CubeX:
For now I can't make the video because I can't release the Lineage because I'm fixing some bugs and I want to do some checks before releasing it publicly
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Ok i found a working guide, tried on my M5c and it works:

Search on YouTube: flash mtk without da ,

You will find a video called, just exactly as I write here: "How to flash MTK secure boot devices without a custom DA" and follow the video tutorial for unbrick your device.

P.S:Obviously when the guide ends you flash the ROM from SP flash tool as you normally would
[Upgrading, Modifying and Unlocking] Deleted member 9773516:
I'll try that, thanks a lot!
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Did you finally manage to fix the device?

Were you able to get on with the guide?
[Upgrading, Modifying and Unlocking] Deleted member 9773516:
I haven't had time to do it yet. When I have time I will follow the tutorial and tell you if it worked.
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Ok good luck
[Upgrading, Modifying and Unlocking] Deleted member 9773516:
XRed_CubeX, I followed the tutorial from start to finish. I used the SP Flash Tool to install the M5c stock ROM, the ROM was flashed 100%, but after disconnecting the USB cable the phone did not turn on.
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Have you flashed the Stock ROM or the Engineering ROM? I remind you that even if you have flashed the eng rom only once previously, you can no longer return to the flyme bootloader so use the normal stock ROM but you will have to flash the Engineering rom
[Upgrading, Modifying and Unlocking] Deleted member 9773516:
Well, I flashed the stock ROM a second time, using the Firmware Upgrade option, and it worked. My phone turned on and I'm in the initial setup screen.

By the way, this Engineering ROM is the ROM you shared above? Do you think it is stable enough to be used? Maybe another day I'll install it, with care to not do anything wrong again
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Yes, the ROM in this thread is ROM engineering, about the stability I can't tell you why I haven't tested it, the main purpose FOR ME was to get the bootloader unlock with this ROM, if you want to switch to ROM engineering you CAN install the flyme after installed the Engineering ROM but you must always modify the OTA zip so that some partitions do not flash but if you are interested I will talk about it in more detail and maybe I will give you a hand to flash flyme safely on bootloader engineering
[Upgrading, Modifying and Unlocking] Deleted member 9773516:
Actually, the ROM I installed with SP Flash Tools was not the update.zip from the official Flyme OS website. I downloaded the stock rom from needrom.

I have done this several times before.

But now, strangely I can no longer update to the latest version. The version I'm running is Flyme 6.0.2.0G. I tried to download the update.zip file and install it manually by clicking on it, and it appeared "corrupted file". I also tried to use the Update application and "network error" appeared. But everything else is working perfectly.
[Upgrading, Modifying and Unlocking] Deleted member 9773516:
I would like to know how to install the latest version of Flyme OS via TWRP. If you can tell how to do this..

Are you working on a custom Lineage OS ROM for this device? I'm interested, when you can publish it.. Do you have a prediction of when you will be able to release that ROM?
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Ok, I'll explain in detail how it works: In the guide you will have read that you cannot return to the flyme using the stock rom or an unmodified OTA. This is a tip because once you flash the Engineering ROM, the engineering bootloader (which is essential for unlocking) will also be flashed, but the problem is that if you flash the stock bootloader (the flyme one, the one you surely have when you get the phone), the device for a reason unknown to me, probably the Engineering ROM modifies something in the device (?) and then goes into brick if you try to return to the flyme bootloader. To flash an OTA flyme on TWRP, you must first have some precautions: you must take the OTA on your computer (or a file explorer capable of editing zip files) and remove the following files: lk.bin preloader.bin (it will have a name longer but you still have to remove that) and tz.bin / trustzone.bin. Done like this, now the OTA becomes safe to install, you install it from TWRP, at the end of the flash it will give you an error but it is because it does not find the files we have removed but we can safely ignore it because it will have successfully installed the flyme on the device.

Regarding lineage: I'm still working on it a bit and gradually I'm discovering bugs. I already warn you that the camera will not work in the Lineage, I have tried in every way to try to make it work but it does not want to go, I have asked for help everywhere but no one has been able to answer so I do not know what to do, for the rest I want to keep a little longer the ROM under test to fix the remaining bugs
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Try this https://firmwarefile.com/meizu-m5c

Now that your device is alive you CAN also not use the DA file exploit but remember that: You do not have to press volume -, just click the download button and connect the device turned off and then remove the uart item in the sp flash settings tool and set USB as before

P.S: If you need to flash the Engineering ROM you can skip this step
[Upgrading, Modifying and Unlocking] :
XRed_CubX, Thank you very much for your explanation.

I tried to run the tutorial again to install the ROM engineering but I couldn't.

I did it exactly this way. See the screenshot of the error..
[Upgrading, Modifying and Unlocking] XRed_CubeX:
You need to use this specific version of sp flash tool:

5.1636

P.S: https://spflashtools.com/windows/sp-flash-tool-v5-1636
[Upgrading, Modifying and Unlocking] :
This is the same version I am using, 5.1636. I've just installed this, btw I'm using Linux
[Upgrading, Modifying and Unlocking] XRed_CubeX:
I don't know, Try using DA file exploit (so volume -),

Not sure because now I've noticed that you're on linux but I this tool never use it on linux but only on Windows
[Upgrading, Modifying and Unlocking] :
Should I choose Download Only or Firmware Upgrade?
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Download only (It's not important or relevant but we don't need to keep the data)
[Upgrading, Modifying and Unlocking] :
Oh my God, it happened again! I just can't flash this engineering ROM. The same thing happened again, the phone doesn't call anymore.

I tried to use the MTK-bypass tool again to fix the problem and this time it didn't work, look:
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Do you have a dual boot PC or at least a second PC with Windows on it? I recommend that because I have tested more Windows than Linux, this exploit has given me so many problems with Linux
[Upgrading, Modifying and Unlocking] :
PS: I think it is important to alert people that they should NEVER use the "Format all + Download" option. I made this mistake on another device and it deleted the NVRAM folder, and I lost the IMEI and got problems on Wi-Fi. I managed to recover IMEI, but until today a ghost Wifi network (NVRAM Err 0x10) appears, and the MAC address changes every time I turn the Wifi off and on again, and I could never fix it
[Upgrading, Modifying and Unlocking] XRed_CubeX:
It happened to me both on my m5c and on other mediatek devices, in fact with the experience I learned to always backup NVRAM and NVDATA

P.S: In the guide it is also specified that there is no need to do format all
[Upgrading, Modifying and Unlocking] :
Unfortunately I don't have Windows installed here. I can install it, but it will take a long time and I will have a lot of work to find the right MTK drivers, and even then I doubt it will work.

Also, I had a lot of work to apply a patch and compile the Linux kernel so I could use the MTK-bypass tool.

If you can send me a link with the specific drivers for this device for Windows 10, I'd appreciate it, because I've tried it dozens of times in Windows and couldn't, so I use the SP Flash Tool in Linux, which already comes with these drivers included by default.
[Upgrading, Modifying and Unlocking] XRed_CubeX:
https://mega.nz/#!H1k0za6R!FjfhscOlnUQmuOj-9Ml09133-eAUzKNgF0bD5KaBKok , right click on cdc-acm.inf and install
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Try again, you can also try to leave it some time and then always try again with the volume -
[Upgrading, Modifying and Unlocking] :
I think I'll wait until the battery discharges completely, since there's no way to remove it
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Sometimes I found myself having to unplug it myself by opening the device so as not to waste too much time
[Upgrading, Modifying and Unlocking] :
I don't have any tools here or anything that I can use to remove the screws and open. I am also afraid of damaging the hardware.

Well, I just tried the MTK-bypass tool on Windows, and got the same error.

I have nothing left but to wait for the battery to discharge, and I hope it still works..
[Upgrading, Modifying and Unlocking] XRed_CubeX:
OK so try to wait.
[Upgrading, Modifying and Unlocking] :
Hi XRed_CubeX, finally I was able to flash the engineering ROM. I will explain exactly how I did it:

I let the battery completely discharge the rest of the day yesterday.

Now I've just used the MTK-bypass tool on Windows successfully. After that I flashed the ROM with the SP Flash Tool. I was able to turn on the device, with the new ROM working.

Now I have a problem: I am not able to install TWRP. I put the device in fastboot mode, and tried to use the command "fastboot devices" in Windows, but the phone was not recognized.

I tried "fastboot devices" in Linux and it was recognized. Now I tried "fastboot flash recovery path_to_twrp.img" and it has been almost 10 minutes since "Sending 'recovery' (15372 KB)", look...
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Press Control + C and redo the command

P.S: Just call me Red hahahaha
[Upgrading, Modifying and Unlocking] :
Ok, now I let the phone charge a little more and tried again and it worked.
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Booted TWRP?
[Upgrading, Modifying and Unlocking] :
Yes, it's working.
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Ok, try to flash flyme
[Upgrading, Modifying and Unlocking] :
Flyme OS 6.0.2.4G successfully installed by TWRP, following the instructions you gave me earlier.
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Ok, thanks for testing
[Upgrading, Modifying and Unlocking] :
Please keep us informed of any updates on LineageOS that you are porting for this device. If you need help testing it, I'm at your disposal.
[Upgrading, Modifying and Unlocking] XRed_CubeX:
I'm releasing it, within a few hours
[Upgrading, Modifying and Unlocking] :
Very good! Did you manage to solve the camera problem?
[Upgrading, Modifying and Unlocking] XRed_CubeX:
No, it's impossible for me
[Upgrading, Modifying and Unlocking] :
It's a shame... but I hope that sometime you'll get the solution
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Link to the lineage os for this device

https://xdaforums.com/t/rom-unofficial-lineageos-14-for-meizu-m5c-mt6737m.4228273/
[Upgrading, Modifying and Unlocking] avalonexagon:
So, I was able to install the engineering rom just fine however flashing TWRP results in the phone not being able to boot in to the recovery, whilist the ROM works fine. I also tried with a different computer and different fastboot versions.

I did follow the guide point by point and downloaded multiple times adb and fastboot. Is there anything else to check/do?
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Try to backup the seccfg (you can use dd with engineering rom using adb root) and after try to do "fastboot erase seccfg"

Important: store seccfg backup to pc
[Upgrading, Modifying and Unlocking] avalonexagon:
Sorry for the late-ish reply ... but I have tried it and yes, it works! Thanks for the help :)
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Your welcome
[Upgrading, Modifying and Unlocking] Linuxovsky:
(Google translator, I'm from Russia) Good afternoon. Unlocked bootloader but TWRP doesn't want to install. In Linux, the device in the fastboot is determined that TWRP is supposedly being installed, but when booting from Volume +, a reboot occurs. What do you advise? It loads perfectly into the engineering firmware (as I understand it).
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Do fastboot erase seccfg
[Upgrading, Modifying and Unlocking] Linuxovsky:
Where did you get the recovery, which is shown in the screenshot? Is this TWRP?
[Upgrading, Modifying and Unlocking] Linuxovsky:
And after that reboot in to recovery?
[Upgrading, Modifying and Unlocking] XRed_CubeX:
After erase seccfg you can reboot to recovery
[Upgrading, Modifying and Unlocking] Linuxovsky:
WORKING! THANK!
[Upgrading, Modifying and Unlocking] :
Yes, it is the same TWRP posted here in this thread. I already installed it.
[Upgrading, Modifying and Unlocking] Linuxovsky:
Good evening. I installed your firmware, I liked a lot, it works stably, except for a couple of functions. Mobile internet does not work. When the mobile Internet is turned off, everything is displayed normally, SMS arrives and calls work. As soon as I turn on the mobile Internet, the connection is completely lost. Sometimes the network icon appears and disappears immediately. The second mistake is always loading WhatsApp, but I hope I can figure it out.
[Upgrading, Modifying and Unlocking] Linuxovsky:
Additional problems were found during use. There is no sound in my TWS HTC headphones, YouTube has a maximum quality of 480p, the system gallery cannot play video, and in VLC, there are gray artifacts at the beginning of the video, and you need to rewind the video to random and return to make them disappear. Since this device is the main one, I have to return to Flyme, but anyway THANK YOU VERY MUCH for the work done and the upcoming work on fixing bugs.
[Upgrading, Modifying and Unlocking] Linuxovsky:
Good day. There was such a problem - I was in a hurry to flash the device from scratch, that I forgot to remove everything related to the bootloader in the image of the standard factory firmware ... As a result, the phone does not turn on, does not react to anything. The recovery instruction in this discussion ends up freezing at stage 9 (I talked about this https://forum.hovatek.com/thread-37957.html). Can you help somehow restore the device? I understand perfectly well that I myself am to blame, but maybe there are options to return everything?
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Talk about your problem more specifically
[Upgrading, Modifying and Unlocking] Linuxovsky:
(google translate) Can you clarify some specific points? Well, I'll tell you the full picture: it was necessary to urgently flash the device from scratch to the factory flywith the TWRP installed - I threw off the image, the format of everything, the firmware, everything was successful, but I forgot to remove some of the recovery that you recommend to remove so as not to damage the device. As a result, I press reboot and nothing ... It's just nothing, if you connect to a PC, then every 5 seconds the connection sound - disconnections and periodic drops into the preloader. I went to this forum and saw that the person already had something similar and the instructions were given, which I indicated earlier, after reaching step 9, everything hangs on the definition of the COM port, if you open the SPFlash tool and select the engineering firmware scatter, then nothing too does not happen, the process does not start, although if you turn off the device at the time of the "operation" of the program, then the error 0x 7D5 falls
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Make sure you have installed the libusb filter correctly, also make sure you run the script to disable the protections, make sure that during the steps you have pressed the volume -, in the device manager it should appear MTK USB Port instead of preloader.
[Upgrading, Modifying and Unlocking] Linuxovsky:
Сейчас проверю еще раз и напишу о результатах ...
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Хорошо, без проблем, но пишите по-английски, на этом форуме, если я не ошибаюсь в правилах, написано, что разрешен только английский
[Upgrading, Modifying and Unlocking] Linuxovsky:
Указанный драйвер переустанавливал заново - теперь пункт 9 висит на определении устройства (ожидание) и в диспетчере драйверов есть com порт, но с желтым предупреждением (до этого, как выяснилось, был com драйвер из Windows, наверное из-за этого все ломалось ...) ...

PS Да извините, скопировал в переводчик не ту часть, не перевел .... :)
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Installed the libusb filter? Can you take screenshots of what the device manager says about it?
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Ok, there is a small problem in the hovatek guide: in fact he did not specify that he should install the devel version of the filter, remove all the filters installed with this version then try again with this: https://sourceforge.net/projects/li...ibusb-win32-devel-filter-1.2.6.0.exe/download

I must admit that it happened the first time with me too and it took me time to understand it
[Upgrading, Modifying and Unlocking] Linuxovsky:
again freezing at the com port stage ...
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Try letting the battery drain or manually detaching it
[Upgrading, Modifying and Unlocking] Linuxovsky:
Oh ... It is 100% charged, because I did not think that this would happen and was preparing for a normal firmware and the device, in fact, turns out to be turned off ... Therefore, it will be discharged ... For a long time ... And the battery is not removable, but I have no special devices for disassembling non-separable devices ...
[Upgrading, Modifying and Unlocking] Linuxovsky:
With the battery disconnected
[Upgrading, Modifying and Unlocking] XRed_CubeX:
The battery should only be disconnected for 5 seconds and then reconnected being careful not to start the phone, try again
[Upgrading, Modifying and Unlocking] Linuxovsky:
Disconnect the battery, run the script and connect it very quickly during execution?
[Upgrading, Modifying and Unlocking] XRed_CubeX:
No, disconnect, wait 5 seconds, reconnect it, and try the script again
[Upgrading, Modifying and Unlocking] Linuxovsky:
here are all the attempts ... But there is an inscription about turning off the protection ... Can I try to go further into the utility with this error?
[Upgrading, Modifying and Unlocking] XRed_CubeX:
Install the libusb filter and retry
[Upgrading, Modifying and Unlocking] Linuxovsky:
Reinstall from this directory - the device began to fall off into the preloader ...
[Upgrading, Modifying and Unlocking] Linuxovsky:
In the first screenshot, I showed that I am using a utility with a blue icon, not a red one ...
[Upgrading, Modifying and Unlocking] Linuxovsky:
Corrected the language.
[Upgrading, Modifying and Unlocking] XRed_CubeX:
You were wrong, uninstall it and use the one with the red icon
[Upgrading, Modifying and Unlocking] Linuxovsky:
ГОТОВО! Шаг был выполнен правильно, но теперь проблема в инструменте SPFlash, который устройство не видит, или я указываю не то. Скриншот прилагается. Может, в этом случае есть ссылка на рекавери и рекавери?