Alcatel 1x DEVELOPMENT: Kernel, TWRP, Pie ROMs, Guides - Alcatel 1X Questions & Answers

ALCATEL 1X Development Thread
TWRP and Kernel work is mine and is free for everyone to use, but I appreciate being credited.
System GSIs are created by Phhusson.
Guide for flashing with SP Flash Tool is mine, but the code and binaries are proprietary information from TCL/JRD Communication and may not be redistributed.
KERNEL - Based on latest Alcatel GPL source code that they released, compiled and packaged into a boot.img - bit . ly / 2Gc4XUN
TWRP - Custom built from source TWRP from my device tree. Most things work, no special partition support other than /vendor - bit . ly / 2EevCO7
TWRP device tree - Github: milankragujevic/android_device_alcatel_5059d (I can't post a link due to XDA restrictions for new users)
Stock rom for 5059D_RU - bit . ly / 2ruktBa (remove spaces, can't share link directly)
How to unlock bootloader?
Reboot into recovery (either hold Volume Up when booting, or adb reboot-recovery), go into bootloader mode (fastboot), and run fastboot oem unlock. Then confirm with the volume button and reboot the device. Please note, all data will be wiped.
How to flash kernel?
Reboot into bootloader and run fastboot flash boot boot.img and fastboot flash boot2 boot.img (you need to flash boot2 too, or else the phone will refuse to boot due to integrity and signature problem).
How to flash system or recovery
Reboot into fastboot and run fastboot flash [partition] file.img. For system, partition is "system", for recovery it's "recovery" (obviously).
How to flash with SP Flash Tool?
Flashing is similar to most other phones, except you need a special version of SP Flash Tool, and a custom DA, preloader, Auth file and of course the scatter file for this device (MT6739-based).
Download files from here: bit . ly / 2L7gwLX
In SP Flash Tool, select "DA_PL_U5A_PLUS_4G.bin" as DA, "MT6739_Android_scatter.txt" as Scatter and "JRD_6739_HZ_U5A_PLUS_4G.auth" as Auth file. If it doesn't work with that file, try "JRD_6739_A30ATMO.auth" as Auth.
Add some files, i.e. boot.img, recovery.img, system.img, vendor.img in the same folder as the scatter file.
Then, take apart the phone, disconnect the battery, click the start button in the software and plug the phone into the computer.
Treble GSI flashing
Most GSIs work, provided you download an arm A-only image.
Both Oreo and Pie work, but on Oreo there's a problem with sending and receiving SMS, calls and USSD codes, and mobile data.
On Pie, mobile data works intermittently, and SMS, calls and USSD works constantly.
LineageOS non-GSI
I'm working on building a LineageOS image specific for this device, which should fix all issues with MTK RIL.
WIP, comments and suggestions welcome. Standard disclaimers apply (NO WARRANTY PROVIDED, AT YOUR OWN RISK, etc. )

Downloading, will post results!!! Thanks!

milankragujevic said:
ALCATEL 1X Development Thread
TWRP and Kernel work is mine and is free for everyone to use, but I appreciate being credited.
System GSIs are created by Phhusson.
Guide for flashing with SP Flash Tool is mine, but the code and binaries are proprietary information from TCL/JRD Communication and may not be redistributed.
KERNEL - Based on latest Alcatel GPL source code that they released, compiled and packaged into a boot.img - bit . ly / 2Gc4XUN
TWRP - Custom built from source TWRP from my device tree. Most things work, no special partition support other than /vendor - bit . ly / 2EevCO7
TWRP device tree - Github: milankragujevic/android_device_alcatel_5059d (I can't post a link due to XDA restrictions for new users)
Stock rom for 5059D_RU - bit . ly / 2ruktBa (remove spaces, can't share link directly)
How to unlock bootloader?
Reboot into recovery (either hold Volume Up when booting, or adb reboot-recovery), go into bootloader mode (fastboot), and run fastboot oem unlock. Then confirm with the volume button and reboot the device. Please note, all data will be wiped.
How to flash kernel?
Reboot into bootloader and run fastboot flash boot boot.img and fastboot flash boot2 boot.img (you need to flash boot2 too, or else the phone will refuse to boot due to integrity and signature problem).
How to flash system or recovery
Reboot into fastboot and run fastboot flash [partition] file.img. For system, partition is "system", for recovery it's "recovery" (obviously).
How to flash with SP Flash Tool?
Flashing is similar to most other phones, except you need a special version of SP Flash Tool, and a custom DA, preloader, Auth file and of course the scatter file for this device (MT6739-based).
Download files from here: bit . ly / 2L7gwLX
In SP Flash Tool, select "DA_PL_U5A_PLUS_4G.bin" as DA, "MT6739_Android_scatter.txt" as Scatter and "JRD_6739_HZ_U5A_PLUS_4G.auth" as Auth file. If it doesn't work with that file, try "JRD_6739_A30ATMO.auth" as Auth.
Add some files, i.e. boot.img, recovery.img, system.img, vendor.img in the same folder as the scatter file.
Then, take apart the phone, disconnect the battery, click the start button in the software and plug the phone into the computer.
Treble GSI flashing
Most GSIs work, provided you download an arm A-only image.
Both Oreo and Pie work, but on Oreo there's a problem with sending and receiving SMS, calls and USSD codes, and mobile data.
On Pie, mobile data works intermittently, and SMS, calls and USSD works constantly.
LineageOS non-GSI
I'm working on building a LineageOS image specific for this device, which should fix all issues with MTK RIL.
WIP, comments and suggestions welcome. Standard disclaimers apply (NO WARRANTY PROVIDED, AT YOUR OWN RISK, etc. )
Click to expand...
Click to collapse
Not working twrp not working touch screen
I have twrp all work i Russia

milankragujevic said:
ALCATEL 1X Development Thread
TWRP and Kernel work is mine and is free for everyone to use, but I appreciate being credited.
System GSIs are created by Phhusson.
Guide for flashing with SP Flash Tool is mine, but the code and binaries are proprietary information from TCL/JRD Communication and may not be redistributed.
KERNEL - Based on latest Alcatel GPL source code that they released, compiled and packaged into a boot.img - bit . ly / 2Gc4XUN
TWRP - Custom built from source TWRP from my device tree. Most things work, no special partition support other than /vendor - bit . ly / 2EevCO7
TWRP device tree - Github: milankragujevic/android_device_alcatel_5059d (I can't post a link due to XDA restrictions for new users)
Stock rom for 5059D_RU - bit . ly / 2ruktBa (remove spaces, can't share link directly)
How to unlock bootloader?
Reboot into recovery (either hold Volume Up when booting, or adb reboot-recovery), go into bootloader mode (fastboot), and run fastboot oem unlock. Then confirm with the volume button and reboot the device. Please note, all data will be wiped.
How to flash kernel?
Reboot into bootloader and run fastboot flash boot boot.img and fastboot flash boot2 boot.img (you need to flash boot2 too, or else the phone will refuse to boot due to integrity and signature problem).
How to flash system or recovery
Reboot into fastboot and run fastboot flash [partition] file.img. For system, partition is "system", for recovery it's "recovery" (obviously).
How to flash with SP Flash Tool?
Flashing is similar to most other phones, except you need a special version of SP Flash Tool, and a custom DA, preloader, Auth file and of course the scatter file for this device (MT6739-based).
Download files from here: bit . ly / 2L7gwLX
In SP Flash Tool, select "DA_PL_U5A_PLUS_4G.bin" as DA, "MT6739_Android_scatter.txt" as Scatter and "JRD_6739_HZ_U5A_PLUS_4G.auth" as Auth file. If it doesn't work with that file, try "JRD_6739_A30ATMO.auth" as Auth.
Add some files, i.e. boot.img, recovery.img, system.img, vendor.img in the same folder as the scatter file.
Then, take apart the phone, disconnect the battery, click the start button in the software and plug the phone into the computer.
Treble GSI flashing
Most GSIs work, provided you download an arm A-only image.
Both Oreo and Pie work, but on Oreo there's a problem with sending and receiving SMS, calls and USSD codes, and mobile data.
On Pie, mobile data works intermittently, and SMS, calls and USSD works constantly.
LineageOS non-GSI
I'm working on building a LineageOS image specific for this device, which should fix all issues with MTK RIL.
WIP, comments and suggestions welcome. Standard disclaimers apply (NO WARRANTY PROVIDED, AT YOUR OWN RISK, etc. )
Click to expand...
Click to collapse
Could it work with alacatel 1 (5033a)? It has the same chipset but differs in other characteristics.

Hey, are you still building a Lineage OS?

Los link estan caidos. Instale el twrp pero queda en bootloop twrp. Saque el boot.img con el twrp para parchearlo con magisk pero al flashearlo con cmd vuelve a quedarse en el twrp. Podrias pasar el boot.img stock? Gracias

Flash recovery

AUTH files doesn't work with A variant (5059A).

January 2020 and the link is gone. (I can host it if you like. Message me.)

The files are back up. Sorry about the inconvenience.

NP. Thanks.

Update links PLS
Hello? Does anyone have the DA and Auth files? The links are broken and I cant find online, help pls my phone is hard bricked. Thanks.

T3ll3S said:
Hello? Does anyone have the DA and Auth files? The links are broken and I cant find online, help pls my phone is hard bricked. Thanks.
Click to expand...
Click to collapse
Links are back, the server had failed and I moved the files to another datacenter which took 3 days.
Here's a MEGA link just in case, if this happens again: https://mega.nz/file/i3BhASJJ#pNzwAsflvcvdfr3pGzUfbNhe3fHUCnfyoAR_O4IsFAE

Hi again, does anyone of you know how to fix this error, im very scared that my phone wont show any screen again.
This is what happened: I tried to install Android 10 GSI and bootlooped so I went to TWRP and used my backup but from no reason the phone died during the backup and when I powered it on it vibrates but it doesnt show any image at all and takes a bit longer to vibrate.
The error on SP Flash Tool is STATUS_BROM_CMD_FAIL (0xC0060005). What do I do? When I try to flash it turns the LED on but then it turns off and turns on again but gives this error. If also there is a way to boot to bootloader directly tell me PLSS. Its Hard Bricked.

T3ll3S said:
Hi again, does anyone of you know how to fix this error, im very scared that my phone wont show any screen again.
This is what happened: I tried to install Android 10 GSI and bootlooped so I went to TWRP and used my backup but from no reason the phone died during the backup and when I powered it on it vibrates but it doesnt show any image at all and takes a bit longer to vibrate.
The error on SP Flash Tool is STATUS_BROM_CMD_FAIL (0xC0060005). What do I do? When I try to flash it turns the LED on but then it turns off and turns on again but gives this error. If also there is a way to boot to bootloader directly tell me PLSS. Its Hard Bricked.
Click to expand...
Click to collapse
You did not flash correctly. The device isn't hard bricked, you have to turn it off (take it apart and disconnect the battery then reconnect it but don't turn on, keep the back cover off because you will surely need to repeat this many times), go to Options, Download and enable "Storage checksum" and "USB checksum", and then start flashing and then plug in the phone while SPFT is trying to flash. When SPFT starts flashing do not touch it, when it flashes the phone will reboot. You also need a proper stock ROM.
You can also just literally use the Mobile Upgrade S Gotu2 tool from Alcatel: https://mega.nz/file/DjpzTRDB#vC3SrO5hQr1Nzn32lWxVGLhmclfSpPF6CsIWHRaTsP8 and restore the stock ROM that way.

I cant with SP Flash Tool It gives the same error and with the other softwate it tels that i am at the latest version

T3ll3S said:
I cant with SP Flash Tool It gives the same error and with the other softwate it tels that i am at the latest version
Click to expand...
Click to collapse
You can, you are just doing it wrong. Check the checksum options I mentioned and retry.

Do i need to touch in any button before i flash? The other software why it tells that im on the newest version? What is the error about? I cant boot onto nothing it doesnt even show a screen but i will try harder

T3ll3S said:
Do i need to touch in any button before i flash? The other software why it tells that im on the newest version? What is the error about? I cant boot onto nothing it doesnt even show a screen but i will try harder
Click to expand...
Click to collapse
Yes, I clearly told you:
In SP Flash Tool: Go to Options, Download and enable "Storage checksum" and "USB checksum".
THEN flash.

I enabled but still no results. The button i was talking about is on the phone do i need to touch the phone or just put the usb?

Related

Asus ZenPad 8.0 (Z380KL) Information Repository

Just going to dump all the info I've found about this device into this thread. All the threads pertaining to this thread are in Russian and I can't read Russian, so this might be helpful to any English speaking owners of this tablet.
Special thanks to Telegram user @SSDD_1744 (don't know your XDA/Reddit user, I'm sorry) for basically spoonfeeding me all these instructions!
WARNING: If you need to flash to stock for whatever reason, be sure to download a image file specific to your country. If you don't, you'll hard brick your device that can only be fixed QPST (supposedly).
Rooting:
(Tested on 5.0.2)
Install KingRoot. Let it root your device.
Install Super-SU Me, to get rid of the bloatware that comes with KingRoot.
Installing Xposed:
I used Flashify to flash TWRP. Be sure to flash the right version though (2.8.7.7 v2) or else you won't be able to mount cache.
Then download Xposed (version sdk21 ARM) and flash it.
WARNING: Flash v1 of the modded TWRP and you won't be able install any apps after flashing Xposed.
Unbricking:
Still working on it. Downloaded QPST but have not been able to get QPST 2.7 to read the tablet.
Links:
Discussion:
https://translate.googleusercontent...690491&usg=ALkJrhiWSlkbZ-tUofZx68NPSGIv8pjIPA
Root:
https://translate.googleusercontent...JrhhQszcRvUo8HILThvz57JmsLj4L9g#entry44556703
https://translate.googleusercontent...JrhiCt__6apcRhk-gtcBExYJCnC9nGQ#entry41676452
Instructions for obtaining the rights to Ruth phones / tablets.
Tested on Android 4.4+
perhaps this algorithm works on Android 5+, I have no way to verify
All transactions with their phones / tablets are performing at your own risk !!!
To get started, read this post from start to finish and only then proceed to action!
Introduction
This instruction is written based on my own experience obtaining root on their plates, and then on the Xperia M2, bought plemyashki. For instructions attached versions of applications that were relevant at the time, the new version can download the relevant topics on the forum, there will find all information on how to work with the proposed programs and algorithms for their actions (links to topics added).
For all the action with your phone / tablet you are responsible for yourself!
Download all the necessary tools to obtain Root (of instructions / topics on the forum), obespechte for phone / tablet access to the Internet (Wi-F / mobile data) and let the phone settings / tablet installation from unknown sources.
Needed Downloads
KingRoot_V4.5.0B202.apk (6.76 MB)
Me_5.9.apk-SuperSU (9.07 MB)
V2.49 Beta.apk SuperSU (5.63 MB)
eu.chainfire.supersu.pro.205.apk (52,88 KB)
Next in series:
1. Install KingRoot .
Get Ruth's right, in the device may reboot.
2. Set SuperSU-Me, .
Run the grantor, the program deletes KingRoot and Chinese KingUser with replacement SuperSu.
Remove the longer SuperSu-Me the desired program.
3. Obnovyaem SuperSu to the latest version. Then set PRO-key .
Installing Pro-key Optionally !!! Use Cases SuperSu without installing key .
4. Open SuperSu and on-demand update binary SU normal way. After a successful update, confirm the request to restart.
5. To make sure that everything is done correctly, check the correct installation and operation of Ruth (mount the system partition on the record), I used the Root Checker Pro and Root Explorer , respectively.
The output is a complete rut without kitayschiny with SuperSu Pro. We use and enjoy
Click to expand...
Click to collapse
Unlocking bootloader (haven't tried this):
https://translate.googleusercontent...Jrhh6g4wI-8Hb_LzAcPnIUxYvWNzZ0A#entry46711087
Stock firmware:
https://translate.googleusercontent...?s=&showtopic=703414&view=findpost&p=45272695
Damn, development has really boomed on this little tablet! Finally got it back after a few months (I sent it into Asus to repair it for me).
Stock ROM:
https://www.asus.com/ru/Tablets/ASUS_ZenPad_80_Z380KL/HelpDesk_Download/ (I can't get the English version to load, delete the /ru/ and you'll be redirected to the English site)
https://www.asus.com.cn/Tablets/ASUS_ZenPad_80_Z380KL/HelpDesk_Download/ (Chinese site)
==== REMEMBER TO DOWNLOAD THE CORRECT COUNTRY OR YOU'LL BE BRICKED) ====
https://yadi.sk/d/b1NMLXHBsNV8C (latest software for the worldwide model)
[http://4pda.ru/forum/index.php?showtopic=703414&st=320#entry50270292]
http://4pda.ru/forum/index.php?showtopic=703414&st=200#entry49389176 (Asus Flash Tool and stock ROM v4.8.2 WW [WorldWide])
Unlocking bootloader:
http://4pda.ru/forum/index.php?showtopic=690491&st=1280#entry48200665 (use fastboot oem device-info to check if it's unlocked)
Root:
http://4pda.ru/forum/index.php?showtopic=690491&st=580#entry44778545 (KingRoot - you'll need a 4PDA.ru account to download this)
http://4pda.ru/forum/index.php?showtopic=690491&st=1280#entry48185323 (last section of the post)
CM13:
http://get.cm/?device=P024&type=nightly
https://vasy.ru/CM13/
http://forum.xda-developers.com/android/help/asus-zenpad-8-z380kl-custom-rom-t3370277
http://forum.xda-developers.com/android/development/kernel-asus-z380kl-p024-kcal2-t3405595 (Kernel)
Recovery:
https://vasy.ru/TWRP/P024/
http://4pda.ru/forum/index.php?showtopic=690491&st=1220#entry48094504 (TWRP 2.8.7.0)
http://forum.xda-developers.com/android/help/asus-zenpad-8-0-z380kl-bootloop-t3373051
Guides:
http://4pda.ru/forum/index.php?showtopic=690491&st=1280#entry48185323 (this has a lot of instructions: root, recovery, boot partition restore, adb drivers etc.)
http://forum.xda-developers.com/android/help/asus-zenpad-8-0-z380kl-bootloop-t3373051 (this has a bunch of files, Resurrection Remix [I haven't tested it yet tho], and instructions on getting out a bootloop)
http://4pda.ru/forum/index.php?showtopic=690491&st=1640#entry49724823 (flashing stock software)
If you want to open the engineering menu, type " * # * # 4636 # * # * "
To boot into fastboot, restart/turn on the device and hold volume up. It'll pop you into a menu with three options.
To boot into recovery, from the fastboot screen (three options), use the volume buttons and navigate to the second option "factory reset" and hit power to confirm. It'll boot into recovery.
=====================================================================================
Recommended way to flash ROMs:
1) Download TWRP. Use adb to boot (NOT flash) into TWRP. Flash ROM there.
2) use KingRoot to root. Use Flashify to flash the ROM.
======================================================================================
If you want to go look up some more info or guides, go here:
http://4pda.ru/forum/index.php?act=...=rel&subforums=0&query=z380kl&forums=570&st=0
and use GTranslate to translate the page. The first page is the earliest posts with the keyword, the last page are the latest post.
please add these ROM's for this Device:
Ressurection Remix:
https://www.androidfilehost.com/?w=files&flid=121811
AICP 12.1:
https://www.androidfilehost.com/?w=files&flid=136181
The latest Official ROM P024 model:
http://dlcdnet.asus.com/pub/ASUS/Ee...ser.zip?_ga=1.109506565.1670552787.1483182775
ZenPad 8 Z380KL Firmware: V5.9.0.0 (WW SKU version only)
Improved Item:
1. Update Google security patch
2. Support unlock tool
9008 brick info:
https://4pda.ru/forum/index.php?showtopic=643084
Pertaining to p024:
https://4pda.ru/forum/index.php?showtopic=643084&st=5740
https://4pda.ru/forum/index.php?showtopic=643084&st=3660 (page 179 - 180, 183 - 185 discusses the files needed to unbrick and how you would - CTRL + F Russ and read the people who quote him)
How I bricked: https://4pda.ru/forum/index.php?showtopic=703414&st=180#entry49329798
https://4pda.ru/forum/index.php?showtopic=690491&st=1420#entry48527044 (unbricking files - dead link though)
https://4pda.ru/forum/index.php?showtopic=703414&st=140 (discussing how to fix using the images from the dump)
I see that Lineage OS is supported on Z380KL. However, I found the wiki spec showing Snapdragon 410, but I found Z380KL in Asia with Snapdragon 615. Before I commit, I'd like to know if anyone knows whether LineageOS is fully compatible with Z380KL with Snapdragon 615 chipsets? Thanks.
Special thanks to @a350tv for helping me comb through 4PDA - this process would've been a lot slower or just wouldn't have happened if he hadn't offered to translate guides and download links to me. So most of the credit goes to him.
Flashing TWRP on 6.0.1 (Sept 1, 2016 patch):
1) grab your drivers (W10: boot into "no driver signature verification mode" to install the drivers needed for fastboot)
https://drive.google.com/open?id=1cGcoDCvmTxfXWNTG0iOXHw1WScmYBrKS
2) turn on debugging
3) type in "adb devices", verify that your computer sees your tablet (if you don't have ADB/Fastboot, get https://forum.xda-developers.com/showthread.php?t=2317790)
4) type in "adb reboot bootloader"
5) you'll see three options: 1. Enter SD DL mode, 2. Factory Reset, 3. Exit update mode
6) type in "fastboot devices", verify that your computer sees your tablet
7) grab your TWRP file (http://vasy.ru/TWRP/P024/) and type in "fastboot flash recovery [replace w/ location of the TWRP file].img"
8) once it says "finished", click factory reset mode (use volume buttons to navigate, power button to enter)
9) it should reboot into TWRP, slide to allow modifications
10) Boom, TWRP is installed.
OPTIONAL, BUT HELPS TO KEEP TWRP INSTALLED: Flash Magisk.
That way, stock recovery won't overwrite TWRP when you reboot.
IF YOU WANT TO KEEP TWRP BUT DON'T WANT Magisk:
1) After first boot into TWRP, turn off tablet.
2) Then turn on and hold Volume Up + Power. That will boot you into Bootloader Mode.
3) Go into factory reset and it should boot you into TWRP.
Now, it's safe to boot into the OS.
(TL;DR: Boot into TWRP twice before booting into the OS or else stock recovery will overwrite TWRP.)
Flashing LineageOS:
1) DL LOS from https://download.lineageos.org/P024
2) DL GApps from http://opengapps.org/ (choose 7.1)
3) boot into TWRP
4) go into Wipe, slide to wipe
5) go to Install, click on LOS file > add to queue, click on Open GApps file > add to queue, flash
6) wait til it's done, click "reboot"
7) wait a while (took mine 3 or so minutes to boot)
8) enjoy!
My GDrive folder with all files needed (except ROM and GApps)
https://drive.google.com/open?id=0BzJ-WWaQYXttTkttdHNELVBEc2M
To do:
Use this tutorial to backup all my partitions, just in case I get bricked yet again.
https://forum.xda-developers.com/showthread.php?t=2450045
Links to unbrick device via Asus FlashTool
Links to service ROMs (for use with AFT)
Add original links from 4PDA
ROMs
LineageOS: https://download.lineageos.org/P024
AICP: https://saki-sss.blogspot.com.by/2016/12/z380k-aicp-121.html
Resurrection Remix: https://androidfilehost.com/?w=files&flid=121811
(made by https://androidfilehost.com/?w=profile&uid=457095661767100043, found from http://andmem.blogspot.jp/2016/05/asus-zenpad-8-z380kl-root-rom.html#chapter-19) - abandoned?
seities said:
I see that Lineage OS is supported on Z380KL. However, I found the wiki spec showing Snapdragon 410, but I found Z380KL in Asia with Snapdragon 615. Before I commit, I'd like to know if anyone knows whether LineageOS is fully compatible with Z380KL with Snapdragon 615 chipsets? Thanks.
Click to expand...
Click to collapse
probably not. I think it's only compatible with the SD 410.
xDark_ said:
Special thanks to @a350tv for helping me comb through 4PDA - this process would've been a lot slower or just wouldn't have happened if he hadn't offered to translate guides and download links to me. So most of the credit goes to him.
Flashing TWRP on 6.0.1 (Sept 1, 2016 patch):
1) grab your drivers (W10: boot into "no driver signature verification mode" to install the drivers needed for fastboot)
https://drive.google.com/open?id=1cGcoDCvmTxfXWNTG0iOXHw1WScmYBrKS
2) turn on debugging
3) type in "adb devices", verify that your computer sees your tablet (if you don't have ADB/Fastboot, get https://forum.xda-developers.com/showthread.php?t=2317790)
4) type in "adb reboot bootloader"
5) you'll see three options: 1. Enter SD DL mode, 2. Factory Reset, 3. Exit update mode
6) type in "fastboot devices", verify that your computer sees your tablet
7) grab your TWRP file (http://vasy.ru/TWRP/P024/) and type in "fastboot flash recovery [replace w/ location of the TWRP file].img"
8) once it says "finished", click factory reset mode (use volume buttons to navigate, power button to enter)
9) it should reboot into TWRP, slide to allow modifications
10) Boom, TWRP is installed.
OPTIONAL, BUT HELPS TO KEEP TWRP INSTALLED: Flash Magisk.
That way, stock recovery won't overwrite TWRP when you reboot.
IF YOU WANT TO KEEP TWRP BUT DON'T WANT Magisk:
1) After first boot into TWRP, turn off tablet.
2) Then turn on and hold Volume Up + Power. That will boot you into Bootloader Mode.
3) Go into factory reset and it should boot you into TWRP.
Now, it's safe to boot into the OS.
(TL;DR: Boot into TWRP twice before booting into the OS or else stock recovery will overwrite TWRP.)
Flashing LineageOS:
1) DL LOS from https://download.lineageos.org/P024
2) DL GApps from http://opengapps.org/ (choose 7.1)
3) boot into TWRP
4) go into Wipe, slide to wipe
5) go to Install, click on LOS file > add to queue, click on Open GApps file > add to queue, flash
6) wait til it's done, click "reboot"
7) wait a while (took mine 3 or so minutes to boot)
8) enjoy!
My GDrive folder with all files needed (except ROM and GApps)
https://drive.google.com/open?id=0BzJ-WWaQYXttTkttdHNELVBEc2M
To do:
Use this tutorial to backup all my partitions, just in case I get bricked yet again.
https://forum.xda-developers.com/showthread.php?t=2450045
Links to unbrick device via Asus FlashTool
Links to service ROMs (for use with AFT)
Add original links from 4PDA
Click to expand...
Click to collapse
Thanks for the tutorial, I had already dared to flash twrp recovery before you wrote this tutorial...
I believe my bootloader is still locked. And I could not reproduce/ write exactly what I did. But, in my case, just for information, when I want to go back into twrp, I can boot into bootloader (power volume up) and then option 2 reset the device gives me the twrp... I am not sure if that is how you get it, but for me, I still had twrp.
I think i will install magisk after reading your post.
jutphaas said:
Thanks for the tutorial, I had already dared to flash twrp recovery before you wrote this tutorial...
I believe my bootloader is still locked. And I could not reproduce/ write exactly what I did. But, in my case, just for information, when I want to go back into twrp, I can boot into bootloader (power volume up) and then option 2 reset the device gives me the twrp... I am not sure if that is how you get it, but for me, I still had twrp.
I think i will install magisk after reading your post.
Click to expand...
Click to collapse
I don't think unlocking the BL is necessary for flashing LOS. But yes, that's how I get into TWRP as well.
Hello I'm new in the forum and I write from Italy, yesterday unfortunately I had the brilliant idea to downgrade my Asus z380kl through ADB, Fastboot and TWRP from pc so far so good, I go to flash the new rom and gives me error, I try to restore the backup here too error result? Tablet locked the only way to make it recognize to the PC is with ASUS FLASH TOOL ROM problem in format.raw unobtainable not even on the Russian site. Any good soul has the possibility to let me download it? Thanks, Sorry English but it is a translation of the very useful Google translate.
pucci2 said:
Hello I'm new in the forum and I write from Italy, yesterday unfortunately I had the brilliant idea to downgrade my Asus z380kl through ADB, Fastboot and TWRP from pc so far so good, I go to flash the new rom and gives me error, I try to restore the backup here too error result? Tablet locked the only way to make it recognize to the PC is with ASUS FLASH TOOL ROM problem in format.raw unobtainable not even on the Russian site. Any good soul has the possibility to let me download it? Thanks, Sorry English but it is a translation of the very useful Google translate.
Click to expand...
Click to collapse
Can you still access fastboot, then at least you can flash twrp as described before in this thread and install from twrp lineageos p024 (lineage-14.1-20180105-nightly-P024-signed.zip) and Open gapps to get google playstore etc , select Arm, (not 64) then version 7.1, then Pico would work.
If you have twrp, you at least can still use your asus... I have found no way to flash original stock... stock must not be flashed from twrp.
Since you mention twrp already used, you can try: turn your device off, then press volume up then the bootloader menu comes, select 2: reset to enter twrp(where it says reset. if you had flashed twrp, that is how you can get into twrp) from there, install lineage os and gapps from micro sd card
My rom is MMB29M.WW_P024-V5.9.4-20170613
xDark_ said:
OPTIONAL, BUT HELPS TO KEEP TWRP INSTALLED: Flash Magisk.
That way, stock recovery won't overwrite TWRP when you reboot.
Click to expand...
Click to collapse
I assume this is on stock rom ? What version of magisk would work? I found I can be back at stock with my twrp backup so ..
But magisk 15.3 zip failed to install on stock-
I also used supersu v82 working on stock, or lineageos.
Would you know what magisk works on lineageos?
I like the exsd extension of magisk so I would like to try it on this device, either stock or lineageos
jutphaas said:
I assume this is on stock rom ? What version of magisk would work? I found I can be back at stock with my twrp backup so ..
But magisk 15.3 zip failed to install on stock-
I also used supersu v82 working on stock, or lineageos.
Would you know what magisk works on lineageos?
I like the exsd extension of magisk so I would like to try it on this device, either stock or lineageos
Click to expand...
Click to collapse
Yes it was. I flashed 15.2 on both stock and LOS. I've heard of some issues with 15.x so you can try .2 or 14.x.
pucci2 said:
Hello I'm new in the forum and I write from Italy, yesterday unfortunately I had the brilliant idea to downgrade my Asus z380kl through ADB, Fastboot and TWRP from pc so far so good, I go to flash the new rom and gives me error, I try to restore the backup here too error result? Tablet locked the only way to make it recognize to the PC is with ASUS FLASH TOOL ROM problem in format.raw unobtainable not even on the Russian site. Any good soul has the possibility to let me download it? Thanks, Sorry English but it is a translation of the very useful Google translate.
Click to expand...
Click to collapse
What error was given? What do you see when you connect it to a computer? What does "tablet locked" mean? Would help if you gave some pictures too.
I'm currently in the process of getting the RAW files/service ROMs for AFT but I don't have an ETA on when I'll be able to get that.
No on the tablet I have not installed TWRP and no other recovery.When I go into the original recovery of the tablet there is always the screen with the lock closed at the bottom right and there is no way to show it to the PC even with adb sideload, l 'only program that recognizes me the tablet is Asus flash tool, however, as I have already written the damn ROM in RAW format is untraceable.
pucci2 said:
No on the tablet I have not installed TWRP and no other recovery.When I go into the original recovery of the tablet there is always the screen with the lock closed at the bottom right and there is no way to show it to the PC even with adb sideload, l 'only program that recognizes me the tablet is Asus flash tool, however, as I have already written the damn ROM in RAW format is untraceable.
Click to expand...
Click to collapse
Does it respons to adb devices of fastboot devices in this stage?
no, it is not recognized

unbrick Nokia 3.2

Hello together,
after many tries to get my nokia 3.2 rooted, i end up now with a black screen.
Only the Qulacomm mode is working.
Get anyone managed to flash the stock firmware with QFIL provided from the rooting thread?
I always end up with "sahara fails".
Every help is welcome!
Thanks!!!!
After many tries I have finally put my phone back to life.
My instructions how to do it will come soon!
page1875 said:
After many tries I have finally put my phone back to life.
My instructions how to do it will come soon!
Click to expand...
Click to collapse
please do, i encountered a similar problem.
HowTo Flash STOCK 00WW
1. Trigger nokia 3.2 to edl-mode (https://forum.xda-developers.com/nokia-3-2/how-to/guide-how-to-trigger-nokia-3-2-to-edl-t3962841)
2. Flash the given image from this thread (https://forum.xda-developers.com/nokia-3-2/how-to/rooted-nokia-3-2-t3945206)
- This was the main problem. I never managed it to flash the image with the Windows Programmer QFIL. After more research in Internet, i found finally a Linux application called QDL that work directly without any problems. This application can be found here https://www.96boards.org/documentation/consumer/guides/qdl.md.html .
- Flashing the software ends up into a bootloop. Also i got a message on startup that the bootloader could not be trusted anymore. After a software-update, this message disappears.
3. Flash all the user images again manually with fastboot.
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash system system.img
fastboot flash vendor vendor.img
flastboot flash vbmeta vbmeta.img
Whyever you have to flash this partitions only to the active partitions without the suffix _a or _b.
Then the bootloop is finished.
The phone boots normally to Android ONE.
The next problem which occurs on my phone is now that it is not able to connect to GSM network. I guess this happens because i deleted all the necessary partitions for the modem (modemst1, modemst2, fsg).
I get it managed to restore the imei, but still no service available.
In original my phone had the software 00EEA. Perhaps they use different drivers. My luck is that i got a cheap damaged phone from ebay with that firmware.
My next step is to modify the code from QDL that it can read the partitions from the damaged phone and save the software to computer.
Then i will flash this software to my phone and look if this software will run on my phone!
page1875 said:
1. Trigger nokia 3.2 to edl-mode (https://forum.xda-developers.com/nokia-3-2/how-to/guide-how-to-trigger-nokia-3-2-to-edl-t3962841)
2. Flash the given image from this thread (https://forum.xda-developers.com/nokia-3-2/how-to/rooted-nokia-3-2-t3945206)
- This was the main problem. I never managed it to flash the image with the Windows Programmer QFIL. After more research in Internet, i found finally a Linux application called QDL that work directly without any problems. This application can be found here https://www.96boards.org/documentation/consumer/guides/qdl.md.html .
- Flashing the software ends up into a bootloop. Also i got a message on startup that the bootloader could not be trusted anymore. After a software-update, this message disappears.
3. Flash all the user images again manually with fastboot.
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash system system.img
fastboot flash vendor vendor.img
flastboot flash vbmeta vbmeta.img
Whyever you have to flash this partitions only to the active partitions without the suffix _a or _b.
Then the bootloop is finished.
The phone boots normally to Android ONE.
The next problem which occurs on my phone is now that it is not able to connect to GSM network. I guess this happens because i deleted all the necessary partitions for the modem (modemst1, modemst2, fsg).
I get it managed to restore the imei, but still no service available.
In original my phone had the software 00EEA. Perhaps they use different drivers. My luck is that i got a cheap damaged phone from ebay with that firmware.
My next step is to modify the code from QDL that it can read the partitions from the damaged phone and save the software to computer.
Then i will flash this software to my phone and look if this software will run on my phone!
Click to expand...
Click to collapse
Thank you for your reply, it seems that your problem is more complicated than mine.
I have a global variant with 00WW software and i attempt to root the phone. I successfully flash the patched boot.img and had root access. However wi-fi didn't work after that.
Since before flashing the patched boot.img my phone was running on a different firmware from the one that boot.img was extracted from, so i think that was the problem.
I attempted to use QFIL to flash my phone back to 00WW_15 and it failed half way, bricked my phone.
Normally you can use the EDL Mode every time.
My phone only showed black screen and it was always possible to connect in EDL Mode and flash again.
Did you try to flash again? What happens then?
Flash the given image from this thread (https://forum.xda-developers.com/nokia-3-2/how-to/rooted-nokia-3-2-t3945206)
Click to expand...
Click to collapse
What did you mean by Flash the given image ? Was it flash the firmware package with QFIL ?
My main problem is flashing, it always failed half-way and the error log reported that needed files were missing from the package.
Okay. I used the linux program QDL for flashing.
But i saw, that in the xml file rawprogram0.xml a few files are missing.
The linux programm jump over these files but perhaps QFIL do not.
For example is there a picture.img listed which is not available..
Try to remove them manually from the rawfile and test again.
page1875 said:
Okay. I used the linux program QDL for flashing.
But i saw, that in the xml file rawprogram0.xml a few files are missing.
The linux programm jump over these files but perhaps QFIL do not.
For example is there a picture.img listed which is not available..
Try to remove them manually from the rawfile and test again.
Click to expand...
Click to collapse
@update:
Also the files "demoapp.img", "dp_AP_signed.mbn" and "dp_MSA_signed.mbn" are missing.
Remove them from the XML file and try again!
@update
Okay QFIL still failed half-way but i manually flash the user images and my phone boots normally now
Hello,
my nokia 3.2 europe variant wont boot up its stuck in fastboot mode. What can i do to bring it back?
I get this: FAILED (remote: partition table doesn't exist)
P.S. if i do a fastboot reboot it boots back into bootloader
I also had this problems for many many times and don't know what went wrong when this happens.
The only thing that helped was flashing the complete firmware again in EDL-mode.
You can try first to flash only the 5 user-images with fastboot, which i mentioned before in this thread.
I uploaded this files for you, because you don't will find the europe files in internet yet.
Here is the link:
https://transfernow.net/81iti7q21s0s
Good luck!
Hi,
Thank you very much. Is this the complete Firmware? (All Images from Device) Another question: I couldnt Access the recovery System. Did you have the same Problem when your Nokia didnt boot up and was stuck in Bootloader? So is this normal that the recovery is unaccessible?
Yes, that also happens sometimes with my phone.
No, that are not all firmware files, which you need to do a full EDL-Flash.
But with this files you can first try a fastboot flash!
If it does not work, you can take all the other files from the Global-Stock-Firmware, given in the thread https://forum.xda-developers.com/nokia-3-2/how-to/rooted-nokia-3-2-t3945206.
Delete the 5 files with the same names, flash the Global-Stock-Firmware in EDL-Mode, with QFIL or QDL, (without the 5 files) and in the following flash the 5 europe-image files with fastboot.
Thanks, ive sent it in and got Friday a 00WW Variant of the device back. I will upload those User images for 00EEA to my Google drive so that anyone who needs those files can download them
hello
i wanted to install custom rom and i bricked my phone. i lost recovery mode and i have only fastboot mode .but can not write any img file for example twrp.img beacuse show this error : FAILED (remote: partition table doesn't exist). can please anyone help me.
thank you very much
thanks so much i was able to put my phone back to life. i had almost given up.
smure said:
thanks so much i was able to put my phone back to life. i had almost given up.
Click to expand...
Click to collapse
Hello to ervery one
how you flashed your phone. can you please guide?
i am also stucked in fastboot mode after rooting.
damn... I've been finding on how to restore the wifi and sound because I uninstalled magisk and it failed. I don't think I can thank you enough for this post.

[FAQ][GUIDE][HELP] Assistance Solution Centre for MERLIN 🤓 (Redmi Note 9 / Redmi 10X 4G)

DISCLAIMERS:​
This help is specific for MERLIN devices only !
(Xiaomi Redmi Note 9 and Xiaomi Redmi 10X 4G)​
Keep atention. This is an UNOFFICIAL thread.​
This thread was based on the thread by Agent_fabulous. Thank you very much !​
DON'T ask by PM. If you have any question, reply to this thread.​
Keep in mind, nothing is 100% perfect, so you need to read careful
and keep trying before to ask an already answered question.​
Keep your backup files safe and secure ! If you can, encrypt them.​
If you try to flash in "firmware upgrade" mode, bootloader will be LOCKED again !​
Never try to flash in "format all" mode ! Otherwise, you will LOSE all secure and identifying infos for your device. Like IMEI and MAC.​
Never try to share your backups or your security and privacy will be compromised.
USE AT YOUR OWN RISK. I AM NOT RESPONSIBLE FOR YOUR ACTIONS.​
Sorry for my bad english.​
GOOD LUCK
1. Where can I find official and untouched STOCK FIRMWARES ROMS?​Here, you can find latest releases: https://xiaomifirmwareupdater.com/miui/merlin/​Here, you can find archive of releases: https://xiaomifirmwareupdater.com/archive/miui/merlin/​
2. Where can I find some useful tools?​Xiaomitool: https://www.xiaomitool.com/V2/​Miflashpro: https://miflashpro.com/​Miflashtool: https://xiaomiflashtool.com/​Sp Flash Tool: https://spflashtools.com/category/windows​Mi PC Suite: http://pcsuite.mi.com/​
3. There are useful tools for LINUX or Mac OS?​Xiaomitool (Linux & MacOS): https://www.xiaomitool.com/V2/​Sp Flash Tool (Linux): https://spflashtools.com/category/linux​
4. My pc can't detect my phone. What to do?​Probably, you need to install appropriate usb drivers.​Try this: https://androidmtk.com/download-mtk-usb-all-drivers​
5. Where can I find custom ROMs?​Here, you can find the collection of custom ROMs for MERLIN: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4291423/​
6. How can I root?​First and obviously, you need to unlock your bootloader. Once you unlock your bootloader, you can root your device flashing magisk patched boot.img.​Here, you can find magisk patched boot images: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4204671/​KEEP ATENTION: you need to disable verification for vbmeta too.​Here, you can find patched vbmeta with disabled verification: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4218909/​
7. Where can I find TWRP & PBRP?​There is only ONE recovery project with open source for MERLIN.​But, there are other twrp and pbrp with closed source.​If you use it, you can cause damages to your device, use at your own risk and DON'T ask about it.​KEEP ATENTION: you need to IGNORE misc partition, if you flash the misc partition, your phone can be stucked in boot loop.​Here, you can find recovery projects images: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4227751/​KEEP ATENTION: you need to disable verification for vbmeta too.​Here, you can find patched vbmeta with disabled verification: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4218909/​
8. How can I restore the state of UNLOCKED BOOTLOADER?​You need to restore your backup of SECCFG partition.​Please, read this: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4220013/​
9. How to make TWRP V11.0.4.0 work on MIUI V12.0.5.0 or higher?​If you are using MIUI V12.0.5.0 or higher, TWRP V11.0.4.0 will not work.​Please, read this: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4223077/​You will need to flash an older LK partition.​Here, you can find lk images: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4218925/​
10. How can I disable TWRP?​You will need to flash original stock recovery.img.​Here, you can find original stock recovery images: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4204671/​
11. How to flash using SP FLASH TOOL without EDL and authentication?​If you want to use flash tool on MIUI V12.0.5.0 or higher, it will requires EDL and authentication.​Please, read this: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4223089/​
12. I am on MIUI V12.0.5.0 or higher, how can I flash using SP FLASH TOOL without EDL and authentication?​You will need to flash an older PRELOADER binary.​Here, you can find preloader binaries: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4218929/​
13. I am on MIUI V12.0.4.0 or lower, how can I flash using SP FLASH TOOL without EDL and authentication?​You will need the specific DA (download-agent) file for it without authentication (#NoAuth #NoAuthentication #No-Auth #No-Authentication).​Please, read this: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4209765/​
14. How can I downgrade MIUI version?​For downgrading your miui, you need unlocked bootloader.​After unlocked bootloader, you can flash older firmware rom using fastboot or sp flash tool.​
15. My phone is booting to a black screen after flashed misc partition together twrp. What to do?​If your phone is booting to a black screen, you need to erase MISC partition.​Please, read this: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4209299/​
16. My phone got bootlop after installed a Magisk module or Xposed module. How can I disable it?​You will need to uninstall the module. You have two methods for this.​For first method, you can disable Magisk (read question 17).​For second method, you need to boot in emergency mode (rescue mode).​For booting in emergency mode, you need to press Vol+ (volume up) after boot starts. (YES, I mean AFTER you see boot logo.)​And then, you can uninstall the module.​
17. My phone got bootlop after flashed Magisk. How can I disable it?​You will need to flash original stock boot.img.​Here, you can find original stock boot images: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4204671/​
18. My phone got bootloop, I am on MIUI V12.0.4.0 or lower and I can't enter in fastboot mode or recovery mode. What to do?​You need to flash stock rom using sp flash tool.​Please, read question 13.​
19. My phone got bootloop, I am on MIUI V12.0.5.0 or higher and I can't enter in fastboot mode or recovery mode. What to do?​For this, you will need to bypass authentication and flash in EDL mode with NO auth for FREE.​Here, you can find the guide for bypassing EDL authenticated mode for FREE: https://forum.xda-developers.com/t/...d-flash-in-edl-with-no-auth-for-free.4229683/​For this, you will need an authorized account for flashing in EDL mode.​You need to go the service centre for professional assistance.​Please, read this: https://www.xda-developers.com/xiaomi-edl-unbrick-authorized-mi-accounts/​
20. There is any other way for flashing or unbricking?​Yes. You can try any useful tool (read question 2 and 3).​But, this help is not for how use them.​You can find a huge amount of videos in youtube about it.​
21. I want to keep with original stock boot.img together TWRP, but TWRP is removed at every reboot. What to do?​You will need to flash patched boot image without overwrite of recovery.​Please, read this: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4209263/​KEEP ATENTION: you need to disable verification for vbmeta too.​Here, you can find patched vbmeta with disabled verification: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4218909/​
22. Where can I find scatter files to flash using flash tool?​Here, you can find scatter files: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4223097/​
23. Where can I find readback file to backup using flash tool?​Here, you can find read back file: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4223109/​
24. How can I know what is working on my phone before installing?​If you want to know what is working for MERLIN, read this: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4204873/​
25. How can I disable preinstalled apps without uninstalling them?​You need to perform this in command line:​pm disable-user --user 0 com.android.chrome​(Change com.android.chrome to desired package name to disable.)​
26. Where can I find source code of the kernel?​Here, you can find the OFFICIAL source code of the kernel: https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/merlin-r-oss and https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/lancelot-q-oss​Here, you can find the OFFICIAL source code of the kernel modules: https://github.com/MiCode/MTK_kernel_modules/tree/merlin-r-oss and https://github.com/MiCode/MTK_kernel_modules/tree/lancelot-q-oss​
27. Where can I find device tree and other sources codes of MT6768?​-> https://github.com/Jebaitedneko/omni_device_xiaomi_merlin​-> https://github.com/Redmi-MT6768/android_device_xiaomi_merlin​-> https://github.com/Redmi-MT6768/android_kernel_xiaomi_mt6768​-> https://github.com/Redmi-MT6768/android_vendor_xiaomi_merlin​-> https://github.com/AndroidBlobs/device_xiaomi_merlin​-> https://github.com/AndroidBlobs/vendor_xiaomi_merlin​-> https://github.com/SparXFusion/android_device_xiaomi_merlin​-> https://github.com/SparXFusion/android_kernel_redmi_mt6768​-> https://github.com/JamieHoSzeYui/android_device_xiaomi_merlin​-> https://github.com/surblazer/android_device_xiaomi_merlin​-> https://github.com/surblazer/android_kernel_xiaomi_mt6768​-> https://github.com/ZyCromerZ/android_kernel_xiaomi_mt6768​-> https://github.com/Box-boi/android_kernel_xiaomi_mt6768​-> https://github.com/Box-boi/omni_device_xiaomi_merlin​-> https://github.com/Box-boi/android_device_xiaomi_merlin​-> https://github.com/Box-boi/android_vendor_xiaomi_merlin​-> https://sourceforge.net/projects/zyc-kernels/files/Merlin​
28. How to pass SafetyNet?​You will need to have Xposed installed. After it, everything you need to do is install HiddenCore-Module, active it on Xposed Manager and reboot.​Here, you can find the HiddenCore-Module: https://repo.xposed.info/module/com.cofface.ivader​KEEP ATENTION: it is making android to keep on activity forever and never suspends screen.​You can use the patched apk by Evengard: https://forum.xda-developers.com/t/hiddencore-module-what-was-it-doing.3903984/post-81982121.​
29. How to disable ads (advertising)?​You will need to have Xposed installed. After it, everything you need to do is install AdBlocker-Reborn, active it on Xposed Manager and reboot.​Here, you can find the AdBlocker-Reborn: https://repo.xposed.info/module/com.aviraxp.adblocker.continued​KEEP ATENTION: some people said it can get troubles to google apps.​
30. How to restore IMEI, Baseband, MAC, fix NVRAM WARNING and fix NVDATA CORRUPTED?​KEEP ATENTION: never try to restore partitions from a different device, or you can brick and cause damages to your device.​Here, you can find the guide: https://forum.xda-developers.com/t/...-on-merlin-redmi-note-9-redmi-10x-4g.4230423/​
31. How to disable ads (advertising) without xposed?​For unrooted devices, you need to perform this in command line:​pm disable-user --user 0 com.miui.msa.global​For rooted devices, you need to debloat your system and then remove the "MSA" app.​
32. What should I backup before trying to customize my device?​Here, you can find the list of what partitions you need to backup for avoiding mistakes without risking all of your device's identification details, like IMEI, WiFi MAC, Bluetooth MAC, calibration data, NVDATA, NVRAM, RADIO/MODEM/BASEBAND and others: https://forum.xda-developers.com/t/...lin-device-redmi-note-9-redmi-10x-4g.4229629/​
33. How to bypass authentication and flash in EDL with NO auth for FREE?​Here, you can find the guide for bypassing EDL authenticated mode for FREE: https://forum.xda-developers.com/t/...d-flash-in-edl-with-no-auth-for-free.4229683/​
34. How to install XPOSED?​1. You need to unlock your bootloader.​2. You need to root using Magisk.​3. You need to install magisk manager.​4. You need to install the magisk module: RIRU. (Only Riru in the name).​5. You need to choose between EDXPOSED or LSPOSED and then install the magisk module: "Riru Edxposed" or "Riru Lsposed".​6. You need to install the properly manager: "Edxposed Manager" or "Lsposed Manager".​7. Reboot.​Done. Enjoy !​
35. How to remove and clear GOOGLE ACC and Mi ACC / MiCloud?​Here, you can find the guide for removing google account and xiaomi account: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4233977/​
36. How can I flash a CUSTOM ROM?​Here, you can find the guide for flashing custom roms by c.whoopee: https://forum.xda-developers.com/t/...rom-on-a-redmi-note-9-global-variant.4234151/​(Thanks to c.whoopee)​Here, you can find the guide for installing a Lineage 17.1 ROM by ma259: https://forum.xda-developers.com/t/...eage-17-1-rom-in-redmi-note-9-merlin.4235003/​(Thanks to ma259)​
37. How to properly use the SP Flash Tool?​Here, you can find the guide how to configure correctly the SPFlashTool: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4229937/​Here, you can find common errors of the SPFlashTool: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4238161/​
38. How to solve "LIB DA not match" error?​Please, follow the guide "How to properly solve the errors of the SP FLASH TOOL": https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4238161/​
39. How to solve "PMT changed for the ROM" error?​Please, follow the guide "How to properly solve the errors of the SP FLASH TOOL": https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4238161/​
40. How to solve "STATUS_BROM_CMD_STARTCMD_FAIL" error?​Please, follow the guide "How to properly solve the errors of the SP FLASH TOOL": https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4238161/​
41. How to solve "STATUS_SEC_AUTH_FILE_NEEDED" error?​Please, follow the guide "How to properly solve the errors of the SP FLASH TOOL": https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4238161/​
42. How to solve "STATUS_BROM_CMD_FAIL" error?​Please, follow the guide "How to properly solve the errors of the SP FLASH TOOL": https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4238161/​
43. How to solve "STATUS_BROM_CMD_SEND_DA_FAIL" error?​Please, follow the guide "How to properly solve the errors of the SP FLASH TOOL": https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4238161/​​44. Where can I find official ENGINEERING ROMs?​Here, you can find ENGINEERING ROM V1: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4227933/​Here, you can find ENGINEERING ROM V2: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4246891/​
45. Where can I find extracted FIRMWARES?​Here, you can find the thread of the EXTRACTED FIRMWARE by yshalsager: https://forum.xda-developers.com/t/...-4g-redmi-note-9-merlin-auto-updated.4250261/​Here, you can find latest releases: https://xiaomifirmwareupdater.com/firmware/merlin/​Here, you can find archive of releases: https://xiaomifirmwareupdater.com/archive/firmware/merlin/​
46. Where can I find extracted VENDORS?​Here, you can find latest releases: https://xiaomifirmwareupdater.com/vendor/merlin/​Here, you can find archive of releases: https://xiaomifirmwareupdater.com/archive/vendor/merlin/​
47. How can I mount system RW (read-write) ?​Here, you can find the guide and the script by lebigmac for mounting system as read-write (RW): https://forum.xda-developers.com/t/...unt-system-read-write-super-no_super.4247311/​
48. How to write and recover the IMEI for SLOT 1 and SLOT 2?​Here, we are discussing about the possibilities of how to recover the IMEI for SLOT1 and SLOT2: https://forum.xda-developers.com/t/...-in-merlin-redmi-note-9-redmi-10x-4g.4258779/​Here, you can find md1img images of the baseband/modem/radio: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4258919/​​49. Where can I find custom KERNEL?​-> https://sourceforge.net/projects/zyc-kernels/files/Merlin/​-> https://github.com/JamieHoSzeYui/dream/releases​-> MOD EDIT: Link Removed​​50. How to skip & avoid EDL auth bypass and FLASH in DOWNLOAD MODE?​Here, you can find the guide: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4322631/​
Full List of My Own Threads:
[V12.5.2.0][Android 11.0] New Update: Download Files for Merlin V12.5.2.0.RJOMIXM
https://forum.xda-developers.com/t/...-0-rjomixm-redmi-note-9-redmi-10x-4g.4357045/
[V12.5.1.0][Android 11.0] New Update: Download Files for Merlin V12.5.1.0.RJOMIXM
https://forum.xda-developers.com/t/...-0-rjomixm-redmi-note-9-redmi-10x-4g.4321093/
[V12.0.1.0][Android 11.0] New Update: Download Files for Merlin V12.0.1.0.RJOMIXM
https://forum.xda-developers.com/t/...-0-rjomixm-redmi-note-9-redmi-10x-4g.4295435/
[V12.0.8.0] New Update: Download Files for Merlin V12.0.8.0.QJOMIXM
https://forum.xda-developers.com/t/...-0-qjomixm-redmi-note-9-redmi-10x-4g.4285863/
[V12.0.7.0] New Update: Download Files for Merlin V12.0.7.0.QJOMIXM
https://forum.xda-developers.com/t/...-0-qjomixm-redmi-note-9-redmi-10x-4g.4245351/
[BOOT][PATCHED] Boot Image Partition without OVERWRITE OF RECOVERY for MERLIN
https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4209263/
[DA][FLASH] DA files for flashing to MERLIN using FLASH TOOL
https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4209765/
[V1][ENGINEERING][ROM] OFFICIAL Egineering Firmware for MERLIN
https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4227933/
[V2][ENGINEERING][ROM] OFFICIAL Egineering Firmware for MERLIN
https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4246891/
[FAQ][GUIDE][HELP] Assistance Solution Centre for MERLIN
https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4225163/
[DISCUSSION][ROM][CUSTOM] What is the BEST CUSTOM ROM for MERLIN ?
https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4291423/
[GUIDE] How to bypass authentication and flash in EDL with NO auth for FREE
https://forum.xda-developers.com/t/...d-flash-in-edl-with-no-auth-for-free.4229683/
[GUIDE]How to properly solve the errors of the SP FLASH TOOL for MERLIN
https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4238161/
[GUIDE] How to properly use the SP FLASH TOOL for MERLIN ?
https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4229937/
[GUIDE] How to remove and clear GOOGLE ACC and Mi ACC / MiCloud for MERLIN
https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4233977/
[GUIDE] How to restore IMEI, Baseband, MAC, fix NVRAM WARNING and fix NVDATA CORRUPTED on MERLIN ?
https://forum.xda-developers.com/t/...-on-merlin-redmi-note-9-redmi-10x-4g.4230423/
[GUIDE] What should I backup before trying to customize my MERLIN device ?
https://forum.xda-developers.com/t/...lin-device-redmi-note-9-redmi-10x-4g.4229629/
[GUIDE][FLASH] How to keep flashing without AUTH or EDL on V12.0.5.0 or higher MIUI versions in MERLIN ?
https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4223089/
[GUIDE][TWRP] How to keep TWRP V11.0.4.0 working on MIUI V12.0.5.0 or higher MIUI versions in MERLIN ?
https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4223077/
[DISCUSSION] How to write and recover the IMEI for SLOT 1 and SLOT 2 in MERLIN ?
https://forum.xda-developers.com/t/...-in-merlin-redmi-note-9-redmi-10x-4g.4258779/
[GUIDE][UNBRICK] How unbrick your bootloop in MERLIN after flashing TWRP
https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4209299/
[GUIDE][UNLOCK] How to restore the state of UNLOCKED BOOTLOADER in MERLIN
https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4220013/
[LK][STOCK] LK Image Partition for MERLIN
https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4218925/
[BASEBAND][STOCK][MD1IMG] MODEM Image Partition for MERLIN
https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4258919/
[MAGISK][XPOSED] What is working for Magisk and Xposed in MERLIN ?
https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4204873/
[PRELOADER][STOCK] PRELOADER Partition Binary for MERLIN
https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4218929/
[READBACK][FLASH] Read Back file for backuping using flash tool from MERLIN
https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4223109/
[SCATTER][FLASH] Scatter file for flashing using flash tool to MERLIN
https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4223097/
[STOCK][PATCHED] Boot, Vbmeta and Recovery: Images Partitions for MERLIN
https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4204671/
[RECOVERY PROJECT] Collection of TWRP & PBRP & SHRP & ORANGEFOX for MERLIN
https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4227751/
[VBMETA][PATCHED] VBMETA Image Partition: Disabled verity & Disabled verification for MERLIN
https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4218909/
[GUIDE] How to skip & avoid EDL auth bypass and FLASH in DOWNLOAD MODE for MERLIN
https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4322631/
TWRP does work above 12.0.5, I have tested.
New build: https://tdrive.elytra8.workers.dev/image-new.img
Flash like you flash any other custom recovery.
For ADS in MIUI, using debloat tool and removing MSA does the job.
Communos said:
TWRP does work above 12.0.5, I have tested.
New build: https://tdrive.elytra8.workers.dev/image-new.img
Flash like you flash any other custom recovery.
For ADS in MIUI, using debloat tool and removing MSA does the job.
Click to expand...
Click to collapse
Thank you very much.
Both were added on FAQ & GUIDE.
Here, you can find unofficial recovery project with closed source: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4227751/
Uhm... hello, newbie here and hopefully in the right thread.
I have a Redmi Note 9 and wanted to install LineageOS. What I have done so far:
Jumped through all the hoops to unlock the bootloader.
Since that erases all user data, I did not bother setting a password in the setup. Just went through it as quickly as possible.
Installed TWRP 12.0.6
Used that to install lineage-17.1-20210209-UNOFFICIAL-merlin.zip from here.
Result: The new system does not boot. I always end up in TWRP again. Even if I specifically go to Reboot -> System, it'll boot into recovery. I think the first boot fails and then it goes into recovery (if I power the device off and on again, it vibrates, the logo comes on, the screen goes black, it vibrates again, the logo shows again, and then I'm in TWRP).
What I have tried unsuccessfully:
Flashing the vbmeta from here.
Erasing the misc partition.
Flashing the old lk from here.
Closing the AVB2.0 after flash (with and without closing DM verity).
Wiping cache, dalvik, data, internal storage, and cache before reinstalling LOS.
Replacing TWRP with PBRP and trying again.
Probably some other things I don't remember. I've been chasing red herrings through this rabbit hole all day.
I also tried to install the ArrowOS build (from here), just to have one more datapoint. After that, the device boot-loops into the bootloader, and I have to manually go into recovery via VolUp+Power. This leads me to believe that it's not the LOS build at fault. It seems more likely that I am a moron and am doing something wrong. I just can't figure out what it is.
Any help would be appreciated.
MyBrainIsAStrainer said:
Uhm... hello, newbie here and hopefully in the right thread.
I have a Redmi Note 9 and wanted to install LineageOS. What I have done so far:
Jumped through all the hoops to unlock the bootloader.
Since that erases all user data, I did not bother setting a password in the setup. Just went through it as quickly as possible.
Installed TWRP 12.0.6
Used that to install lineage-17.1-20210209-UNOFFICIAL-merlin.zip from here.
Result: The new system does not boot. I always end up in TWRP again. Even if I specifically go to Reboot -> System, it'll boot into recovery. I think the first boot fails and then it goes into recovery (if I power the device off and on again, it vibrates, the logo comes on, the screen goes black, it vibrates again, the logo shows again, and then I'm in TWRP).
What I have tried unsuccessfully:
Flashing the vbmeta from here.
Erasing the misc partition.
Flashing the old lk from here.
Closing the AVB2.0 after flash (with and without closing DM verity).
Wiping cache, dalvik, data, internal storage, and cache before reinstalling LOS.
Replacing TWRP with PBRP and trying again.
Probably some other things I don't remember. I've been chasing red herrings through this rabbit hole all day.
I also tried to install the ArrowOS build (from here), just to have one more datapoint. After that, the device boot-loops into the bootloader, and I have to manually go into recovery via VolUp+Power. This leads me to believe that it's not the LOS build at fault. It seems more likely that I am a moron and am doing something wrong. I just can't figure out what it is.
Any help would be appreciated.
Click to expand...
Click to collapse
Hey, Custom roms for Redmi Note 9 need MIUI 12.0.1 Indonesia, or MIUI 12.0.3 global vendor.
Downgrade your phone to the specific MIUI vendor, and then try flashing custom rom.
Here's the link for global 12.0.3
Xiaomi Firmware Updater
The ultimate script that provides firmware packages for Xiaomi devices.
xiaomifirmwareupdater.com
And before you downgrade your miui version, please erase system and vendor to bypass anti roll back.
Use these commands after connecting device in fastboot mode:
fastboot reboot fastboot
fastboot erase system
fastboot erase vendor
fastboot reboot bootloader
Then flash the 12.0.3 global/12.0.1 Indonesia miui version through MiFlash.
Or
You could give flashing 12.0.1 Indonesia vendor in TWRP, and then flashing rom.
If after fastboot reboot fastboot it shows waiting for device, install this driver. https://drive.google.com/file/d/1JFYCZ3mu_Y_xpnS7QrmtwqOeFnWg6DO2/view?usp=sharing
Please note that you need to be on stock recovery for fastboot reboot fastboot to work.
Happy flashing
Thank you very much! With that info, I think I finally have it working!
I case it's helpful for future users, here are some issues I encountered along the way:
Communos said:
fastboot reboot fastboot
fastboot erase system
fastboot erase vendor
Click to expand...
Click to collapse
Code:
$ fastboot reboot fastboot
fastboot: usage: unknown reboot target fastboot
$ fastboot erase system
erasing 'system'...
FAILED (remote: Partition table doesn't exist)
finished. total time: 0.013s
$ fastboot erase vendor
erasing 'vendor'...
FAILED (remote: Partition table doesn't exist)
finished. total time: 0.012s
Is that normal? I do have a partition named 'super' that I can see in the TWRP backup module. Judging from its size, that could be the system partition. I think there's also a vbmeta_system and vbmeta_vendor, did you mean those?
Then flash the 12.0.3 global/12.0.1 Indonesia miui version through MiFlash.
Or
You could give flashing 12.0.1 Indonesia vendor in TWRP, and then flashing rom.
Click to expand...
Click to collapse
Ok, so I downloaded the full ROM for 12.0.3 global. I'm using Linux, so MiFlash won't work. But the ROM archive I downloaded contained a bunch of partition images and a shell script that would flash them using the fastboot command. I just ran that script. Windows users probably could have run the .bat file that was also included. There were no errors. And after a reboot, MIUI started to boot and presented me with the setup procedure.
I did not complete the setup (I suspect it would have just auto-updated MIUI to something that would have caused problems again) and used the power button to go into the bootloader.
From there, I flashed TWRP again (since it got overwritten by the script mentioned above), went into recovery mode, and tried to install LOS again. First, flashing seemed to hang. The last messages in the log were:
Code:
Installing file '/external_sd/Download/lineage-17.1-20210209-UNOFFICIAL-merlin.zip'
Checking for Digest file...
Target: Redmi/merlin_eea/merlin:10/QP1A.190711.020/V11.0.2.0.QJOEUXM:user/release-leys
And that was it. The border around the progress bar was doing it's busy animation thing and after waiting for 10 minutes, I used the power button to reset the device.
The second attempt went through fine, and now I have LineageOS running on the device. I still need to play around with it some more to see if there are any issues, but the flashing itself seems to have worked.
Again, thank you for your help!
MyBrainIsAStrainer said:
Thank you very much! With that info, I think I finally have it working!
I case it's helpful for future users, here are some issues I encountered along the way:
Code:
$ fastboot reboot fastboot
fastboot: usage: unknown reboot target fastboot
$ fastboot erase system
erasing 'system'...
FAILED (remote: Partition table doesn't exist)
finished. total time: 0.013s
$ fastboot erase vendor
erasing 'vendor'...
FAILED (remote: Partition table doesn't exist)
finished. total time: 0.012s
Is that normal? I do have a partition named 'super' that I can see in the TWRP backup module. Judging from its size, that could be the system partition. I think there's also a vbmeta_system and vbmeta_vendor, did you mean those?
Ok, so I downloaded the full ROM for 12.0.3 global. I'm using Linux, so MiFlash won't work. But the ROM archive I downloaded contained a bunch of partition images and a shell script that would flash them using the fastboot command. I just ran that script. Windows users probably could have run the .bat file that was also included. There were no errors. And after a reboot, MIUI started to boot and presented me with the setup procedure.
I did not complete the setup (I suspect it would have just auto-updated MIUI to something that would have caused problems again) and used the power button to go into the bootloader.
From there, I flashed TWRP again (since it got overwritten by the script mentioned above), went into recovery mode, and tried to install LOS again. First, flashing seemed to hang. The last messages in the log were:
Code:
Installing file '/external_sd/Download/lineage-17.1-20210209-UNOFFICIAL-merlin.zip'
Checking for Digest file...
Target: Redmi/merlin_eea/merlin:10/QP1A.190711.020/V11.0.2.0.QJOEUXM:user/release-leys
And that was it. The border around the progress bar was doing it's busy animation thing and after waiting for 10 minutes, I used the power button to reset the device.
The second attempt went through fine, and now I have LineageOS running on the device. I still need to play around with it some more to see if there are any issues, but the flashing itself seems to have worked.
Again, thank you for your help!
Click to expand...
Click to collapse
Oh you're using Linux, for Linux the commands is
/.fastboot reboot fastboot
Great to know you were able to flash successfuly. Note that first boot in all roms is a bootloop, you just have to force reboot after a minute of bootlogo showing up or so.
hi i flashed a wrong twrp and now the phone keeps bootlooping, cannot enter recovery or fastboot by power + vol (+ or -)
adb from computer doesn't detect
sp flash tool doesn't move when i hit "download" button
bootloader unlocked, root yes
pc notificates a device connection by sound
phone redmi note 9
thank you for the help really cannot figure it out
Kain105 said:
hi i flashed a wrong twrp and now the phone keeps bootlooping, cannot enter recovery or fastboot by power + vol (+ or -)
adb from computer doesn't detect
sp flash tool doesn't move when i hit "download" button
bootloader unlocked, root yes
pc notificates a device connection by sound
phone redmi note 9
thank you for the help really cannot figure it out
Click to expand...
Click to collapse
Apparentely, you need to flash in EDL mode.
So, you need to bypass the authentication in EDL mode first.
Read this: https://forum.xda-developers.com/t/...d-flash-in-edl-with-no-auth-for-free.4229683/
Newbie Android user here, hopefully i’m on the correct thread...i have a Redmi Note 9 with MIUI Global version 11.0.5 and Magisk version 20.4.
I tried updating Magisk to the latest version using the direct install option but I keep getting an error. I was told I need manually patch the boot.img and flash it but I need to create a magisk_patch.img first from the boot.img.
I read some of the guides on this thread but I’m not sure which one to follow. Also the steps to create the magisk_patch.image shows I need to click the Install button on Magisk then Select and Patch a file. I only have the Update button on Magisk, can I use that instead?
Or if you have other suggestion how to fix my issue. I attached the error I’m getting when I’m updating Magisk.
Thank you in advance for the assistance.
E77en12 said:
Newbie Android user here, hopefully i’m on the correct thread...i have a Redmi Note 9 with MIUI Global version 11.0.5 and Magisk version 20.4.
I tried updating Magisk to the latest version using the direct install option but I keep getting an error. I was told I need manually patch the boot.img and flash it but I need to create a magisk_patch.img first from the boot.img.
I read some of the guides on this thread but I’m not sure which one to follow. Also the steps to create the magisk_patch.image shows I need to click the Install button on Magisk then Select and Patch a file. I only have the Update button on Magisk, can I use that instead?
Or if you have other suggestion how to fix my issue. I attached the error I’m getting when I’m updating Magisk.
Thank you in advance for the assistance.
Click to expand...
Click to collapse
You can't install the magisk using the direct option.
You need to the patch the boot.img file and then flash the magisk_patched.img using fastboot (or spflashtool).
VD171 said:
You can't install the magisk using the direct option.
You need to the patch the boot.img file and then flash the magisk_patched.img using fastboot (or spflashtool).
Click to expand...
Click to collapse
Thank you, it worked. Now my magisk is updated
E77en12 said:
Thank you, it worked. Now my magisk is updated
Click to expand...
Click to collapse
Good work, my friend.
You are welcome
HELP PLS
i first flashed the patched_magisk.img then i got in a twrp boot loop. When i try to reboot into the system i get back to twrp menu.
Then i panicked and went to WIPE and factory reseted,
but it got stuck again. Then i powered it off.
How do i get out of this? I wanted to flash the stock boot.img but the storage folders has strange names
EDIT:
i figured it out what i have done. The data was ecrypted so i formated the data. But now i have another problem:
I installed linageOS from here, but when want to reboot back to system it says
No OS Installed! Are you sure you wish to reboot? i don't undertand why the custom rom didn't install.
I just copied the .zip file with the custom rom in the phone and hit install in TWRP. What did i do wrong?
George528 said:
HELP PLS
i first flashed the patched_magisk.img then i got in a twrp boot loop. When i try to reboot into the system i get back to twrp menu.
Then i panicked and went to WIPE and factory reseted,
but it got stuck again. Then i powered it off.
How do i get out of this? I wanted to flash the stock boot.img but the storage folders has strange names
View attachment 5289089
EDIT:
i figured it out what i have done. The data was ecrypted so i formated the data. But now i have another problem:
I installed linageOS from here, but when want to reboot back to system it says
No OS Installed! Are you sure you wish to reboot? i don't undertand why the custom rom didn't install.
I just copied the .zip file with the custom rom in the phone and hit install in TWRP. What did i do wrong?
Click to expand...
Click to collapse
Did you flash the patched vbmeta too?
VD171 said:
Did you flash the patched vbmeta too?
Click to expand...
Click to collapse
do you have a full step-by-step guide for this? i am feeling lost rn. I only have your FAQ but it doesnt cover everything
George528 said:
do you have a full step-by-step guide for this? i am feeling lost rn. I only have your FAQ but it doesnt cover everything
Click to expand...
Click to collapse
Steps for flashing vbmeta are same for every device.
You may try to use the search.
Here, you can find patched vbmeta for MERLIN:
[VBMETA][IMG][PATCHED] VBMETA Image Partition: Disabled verity & Disabled verification for MERLIN (Xiaomi Redmi Note 9 / Xiaomi Redmi 10X 4G)
PATCHED VBMETA.IMG for MERLIN by VD171 For what do I need it ? If you try to flash any custom partition, your device can bricks or gets in bootloop. This patch with disabled verity and disabled verification avoid it and need to be flashed once...
forum.xda-developers.com
VD171 said:
Steps for flashing vbmeta are same for every device.
You may try to use the search.
Here, you can find patched vbmeta for MERLIN:
[VBMETA][IMG][PATCHED] VBMETA Image Partition: Disabled verity & Disabled verification for MERLIN (Xiaomi Redmi Note 9 / Xiaomi Redmi 10X 4G)
PATCHED VBMETA.IMG for MERLIN by VD171 For what do I need it ? If you try to flash any custom partition, your device can bricks or gets in bootloop. This patch with disabled verity and disabled verification avoid it and need to be flashed once...
forum.xda-developers.com
Click to expand...
Click to collapse
no, i mean a full guide for rooting from the beggining to end, for redmi note 9. For example i missed the vbmeta and this resulted in an error. Now i have to flash the stock firmware and wait for another 7 days for it to unlock. For newbies like me, this looks like a mess. If you don't have one, can you please create one? Do it for us, newcomers. Thanks

Question Find Device storage corrupted. Your device is unsafe now.( POCO F3 and Other MIUI Devices)

Last night I do have a problem with the custom rom that I have installed, because of the battery problem keeps on dropping, so I decided to go back to the official stock rom which is for global however after flashing the fastboot rom via Miflash Tool, I have a welcome message that says Find Device storage corrupted. Your device is unsafe now. I thought that I just need to activate this to the device admin, after a reboot I tried to check it out if this message if this message will still pop up, and it keeps on popping up. I have flashed the rom again and it keeps on happening.
Things that I have Tried:
So I tried to check for other ways that I could get rid of this but this doesnt work on the terminal via TWRP. "
[GUIDE] How to fix "Find Device storage corrupted. Your device is unsafe now".
[GUIDE] How to fix "Find Device storage corrupted. Your device is unsafe now". How to fix "Find Device storage corrupted. Your device is unsafe now" ? (At your own risk... I'm not responsible for damage or brick) Required : - Be rooted and...
forum.xda-developers.com
".
The one that works:
Things that you needed:
1. Download Mi Flash Tool(https://www.xiaomiflash.com/)
2. Minimal ADB and Fastboot
3. 7zip or BreeZip
4. TWRP A12(
TWRP A12.rar
drive.google.com
) if you are using other MIUI and devices and want to check it this will work then just use your twrp that is recommended for your mui device.
5. Global Rom (https://xiaomifirmwareupdater.com/miui/alioth/stable/V12.5.6.0.RKHMIXM/)
warning: make sure that you are using the right rom for your device, my device that I am using is a global variant so I need to flash a global version, if you are using other MIUI device and want to check it out just download the miui that works for you must be on a later update of the rom if the latest current rom that you are working on right now didnt work.
Steps to follow.
1. Extract the Rom which you have downloaded using the 7zip or BreeZip, so for me I extracted the version 12.5.6.0 take note that this is not the latest rom but for this to work we need to be in a later update this rom is an android version 11.
2. after extracting the fastboot rom file type TGZ you will notice that the one that you extracted is on a TAR file type, and you need to extract the TAR file type for you to have the folder "alioth_global_images_V12.5.6.0.RKHMIXM_20220210.0000.00_11.0_global_62b4f5d6ca"
3. Using the Mi Flash Tool, just pick the clean all and start the flashing.
4. After flashing the rom set up the phone but do not update it.
5. On your extracted folder for the rom go to the folder that says images and look for 'persist" this is an img file. copy the persist img file and paste it on your Internal memory of your phone.
6. Turn off your phone and go to fastboot by pressing the volume down as well as the power button. You will notice that the fastboot logo is the older version since we are using an older rom.
7. Extract the TWRP A12 and you should have the disc recovery image of it, copy and paste it on your Minimal ADB and Fastboot folder and rename it "recovery".
8. While you are on the Minimal ADB Fastboot folder make sure that your phone is plug in to the usb port on your computer, click the cmd here on the Minimal ADB and Fastboot Folder and you should able to run the cmd.
9. run the following commands:
fastboot devices (then press the enter)
warning: make sure that the fastboot devices is able to see your device.
after seeing the device run this command:
fastboot boot recovery.img (then press enter)
the device should boot to the twrp if its on chinese look for settings and set it to english. we are not flashing the twrp we are just going to use it temporarily thats why we are only going to boot it to twrp recovery.
10. On your twrp, go to install, click the install image and look for your persist.img that we have copied earlier to your internal memory
you should find it on the sdcard folder. just flash and you will see that you have successfully flashed the persist image and then just reboot your phone.
After rebooting your phone you will notice that the "Find Device storage corrupted. Your device is unsafe now." will not prompt. Since I already have the current fastboot rom I have tried to flash the current fastboot rom and locked my device and fixed the problem permanently without any problem.
You wrote too much for something that could be written in a few sentences. And why would anyone downgrade an android or flash a clean fastboot ROM? (Android or MIUI version doesn't matter)
Summary guide:
1. Download the fastboot ROM from here and extract the "persist.img" image or dump the "persistbak" partition from your device and rename this file to "persist.img"
2. Put persist.img into your device's internal memory and go to TWRP
3. In TWRP, go to: Install> select install image> select file persist.img> select "Persist" partition
4. Restart the device, it should work fine
uvzen said:
You wrote too much for something that could be written in a few sentences. And why would anyone downgrade an android or flash a clean fastboot ROM? (Android or MIUI version doesn't matter)
Summary guide:
1. Download the fastboot ROM from here and extract the "persist.img" image or dump the "persistbak" partition from your device and rename this file to "persist.img"
2. Put persist.img into your device's internal memory and go to TWRP
3. In TWRP, go to: Install> select install image> select file persist.img> select "Persist" partition
4. Restart the device, it should work fine
Click to expand...
Click to collapse
Wrote it down for the newbies that doesnt know how to fix anyway thanks for the summary. I have to downgraded it because the latest current rom doesnt work give me "invalid sparse file format at header magic" error as I flash the persist.img file, via twrp.
mizuhored said:
Wrote it down for the newbies that doesnt know how to fix anyway thanks for the summary. I have to downgraded it because the latest current rom doesnt work give me "invalid sparse file format at header magic" error as I flash the persist.img file, via twrp.
Click to expand...
Click to collapse
If you are using TWRP from Nebrassy then use skkk TWRP or OrangeFox. Flashing persist should work fine on both recoveries (I did it myself recently).
uvzen said:
If you are using TWRP from Nebrassy then use skkk TWRP or OrangeFox. Flashing persist should work fine on both recoveries (I did it myself recently).
Click to expand...
Click to collapse
Thats great but this is the one that works for me anyways. At least we have found out the things that we needed in order for it to be fixed. Just sharing my ideas and how did I fixed the problem myself. Thanks for sharing of your ideas. Hoping that we could share our ideas to others as well. Been on a nightmare last night cant sleep because of this problem. Trying to figure out what to do since using the cmds via terminal on twrp doesnt work for me. Need to downgrade for me to fix it.
mizuhored said:
Thats great but this is the one that works for me anyways. At least we have found out the things that we needed in order for it to be fixed. Just sharing my ideas and how did I fixed the problem myself. Thanks for sharing of your ideas. Hoping that we could share our ideas to others as well. Been on a nightmare last night cant sleep because of this problem. Trying to figure out what to do since using the cmds via terminal on twrp doesnt work for me. Need to downgrade for me to fix it.
Click to expand...
Click to collapse
Could you please confirm if flashing persist.img doesn't mess up with sensor like fingerprint, l1, compass etc..? I have seen other forums talking about possibility of losing these in case perist is flashed from rom. I have this message for some time now, but all other sensors work fine, even l1 certification and saftynet. Thanks in advance.

Development [Samsung m33] [Recovery] [TWRP] [Testing] [15 april 2023]

Code:
Code:
/*
* Your warranty is now void!!!
*
* If sh!t happens, i am not responsible for your bricked device.
* do some research if you have any concerns about features included in this recovery
* before flashing it! YOU are choosing to make these modifications,
* Do at your own risk!!!
*/
Version and device Information:​
Status: Testing
Device: Samsung m33
Codename: m336BU
Android version: android-12 (M336BUXXS4BWB1)
Release Date: April 15, 2023
INSTALLATION​
Connect to pc and boot into stock recovery
Factory reset
Reboot into download mode.
flash twrp.tar into the ap slot
reboot to recovery
After that flash samsung multidisabler zip
Reboot to recovery from main menu (not just reboot)
(optional) Backup boot, data, super and dtbo
Reboot to system
Downloads:​TWRP Image: twrp-12.1_3.7.0-v000-m33-20230408.tar.md5
Multidisabler: multidisabler-samsung-3.1.zip
wud u also be interested to look into working custom roms for m33 cuz my phone overheats really bad even with optimization and root
ok so i tried to flash with odin but didnt reset phone cuz its custom recovery and people say it shudnt be a problem. anyway when i tried to flash the ap file odin just crashes so i dunno what to do. so now im gonna try to uninstall magisk, then patch the firmware back to stockwith home_csc, then install twrp and then reinstall magisk again and hopefully my data doesnt get wiped but i have the pics saved so its just a huge hassle if that happens.
im very happy to say that my data has been wiped and the recovery file keeps crashing odin. pls offer help if theres any to offer asap cuz i dont wanna lose progress again when i installed everything again
fluffyball21 said:
im very happy to say that my data has been wiped and the recovery file keeps crashing odin. pls offer help if theres any to offer asap cuz i dont wanna lose progress again when i installed everything again
Click to expand...
Click to collapse
Okey, i will fix the isuue asap.
Shibu Shaji said:
Okey, i will fix the isuue asap.
Click to expand...
Click to collapse
hey so i just had to rename the img file inside tar to recovery.img and pack it back to tar.md5 and it flashed. But the phone goes into bootloop after that and cannot be used unless i flash my old recovery file. also im on custom gsi rom android 13 with patched recovery for fastbootd
GitHub - Johx22/Patch-Recovery: CI service that patches recovery.img of Dynamic Samsung devices launched with Android 10 and above to enable fastbootd.
CI service that patches recovery.img of Dynamic Samsung devices launched with Android 10 and above to enable fastbootd. - GitHub - Johx22/Patch-Recovery: CI service that patches recovery.img of Dyn...
github.com
hey btw im also trying to make my own twrp for the phone but mine also bootloops after installation. i also tried other twrp for phones with exynos 1280 like a33 and a53 and they both recognize my device as a33 or a53 on pc when flashed but twrp shows black screen i dunno what else to do at this point
There is really so much need of a custom Rom for this device.
fluffyball21 said:
wud u also be interested to look into working custom roms for m33 cuz my phone overheats really bad even with optimization and root
Click to expand...
Click to collapse
Please could you tell me the steps to install twrp.. and also share me working twrp and gsi for this Device I'm really tired of this buggy One Ui
sunnypoddar1919 said:
Please could you tell me the steps to install twrp.. and also share me working twrp and gsi for this Device I'm really tired of this buggy One Ui
Click to expand...
Click to collapse
There's no working twrp as of now but u can patch the recovery IMG of ur device with the patch recovery link I pasted above. Then u can use fastbootd on ur device then download a working gsi from this list then flash it
Generic System Image (GSI) list
Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.
github.com
Keep in mind if u don't know what ure doing and don't have backup then if bootloop happens u wud have to reset the device and flash stock firmware through bootloader so continue at ur own risk
fluffyball21 said:
There's no working twrp as of now but u can patch the recovery IMG of ur device with the patch recovery link I pasted above. Then u can use fastbootd on ur device then download a working gsi from this list then flash it
Generic System Image (GSI) list
Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.
github.com
Keep in mind if u don't know what ure doing and don't have backup then if bootloop happens u wud have to reset the device and flash stock firmware through bootloader so continue at ur own risk
Click to expand...
Click to collapse
could you tell me how can i patch my device recovery because it's first time i'm dealing with samsung for custom roms..i have rooted an another samsung device but for that TWRP was already available
sunnypoddar1919 said:
could you tell me how can i patch my device recovery because it's first time i'm dealing with samsung for custom roms..i have rooted an another samsung device but for that TWRP was already available
Click to expand...
Click to collapse
U need to have stock firmware for ur device then extract the ap file from that zip file. Then extract recovery.img.lz4 from ap file then follow the tutorial in this guide and do as it says. After all that's done ull get a zip file and u can flash that via odin by putting it in ap file slot
GitHub - Johx22/Patch-Recovery: CI service that patches recovery.img of Dynamic Samsung devices launched with Android 10 and above to enable fastbootd.
CI service that patches recovery.img of Dynamic Samsung devices launched with Android 10 and above to enable fastbootd. - GitHub - Johx22/Patch-Recovery: CI service that patches recovery.img of Dyn...
github.com
i have flashed the patched recovery by doing all these steps, could you tell me now how can i flash gsi next by the way i have downloaded pixel experince plus (unofficial from your link that you have provided)
sunnypoddar1919 said:
i have flashed the patched recovery by doing all these steps, could you tell me now how can i flash gsi next by the way i have downloaded pixel experince plus (unofficial from your link that you have provided)
Click to expand...
Click to collapse
Follow this guide
How to Flash a GSI on an Android Device
Follow this guide to flash a GSI on your Android device.
www.makeuseof.com
To get into fastbootd u need to go to recovery mode then select enter fastbootd
fluffyball21 said:
Follow this guide
How to Flash a GSI on an Android Device
Follow this guide to flash a GSI on your Android device.
www.makeuseof.com
To get into fastbootd u need to go to recovery mode then select enter fastbootd
Click to expand...
Click to collapse
When ever i use adb reboot bootloader device boot into download mode and fastboot commands are not working there so i simply can't access fastboot even also adb reboot fastboot or adb reboot fastbootd not working when giving these commands device simply just reboots , please can you tell me how you got into recovery and then into fastboot mode after flashing patched recovery in brief ...And also i think my recovery isn't patched or did not worked after patching may be the script is not working or i made any mistake while using the script so will it work if you attach the patched recovery of your m33 5g device if i flash that using odin?
sunnypoddar1919 said:
When ever i use adb reboot bootloader device boot into download mode and fastboot commands are not working there so i simply can't access fastboot even also adb reboot fastboot or adb reboot fastbootd not working when giving these commands device simply just reboots , please can you tell me how you got into recovery and then into fastboot mode after flashing patched recovery in brief ...And also i think my recovery isn't patched or did not worked after patching may be the script is not working or i made any mistake while using the script so will it work if you attach the patched recovery of your m33 5g device if i flash that using odin?
Click to expand...
Click to collapse
Reboot to recovery from phone then choose enter fastbootd option if it is there. If it is not then u need to patch the recovery again and download that then flash that with Odin. I don't have the patched file with me now so in the meantime try again
fluffyball21 said:
Reboot to recovery from phone then choose enter fastbootd option if it is there. If it is not then u need to patch the recovery again and download that then flash that with Odin. I don't have the patched file with me now so in the meantime try again
Click to expand...
Click to collapse
tried , tried and tried and now i'm tired i think for me it's not possible
U just need extract it then flash it with odin in ap slot also while having auto restart off in options
fluffyball21 said:
U just need extract it then flash it with odin in ap slot also while having auto restart off in options
Click to expand...
Click to collapse
if auto restart has to be off then how would i restart into recovery from download mode means which button combination i have to press
sunnypoddar1919 said:
if auto restart has to be off then how would i restart into recovery from download mode means which button combination i have to press
Click to expand...
Click to collapse
U gotta press volume down and power after it finishes flash then immediately switch to volume up and power key combination when the screen turns black. If u failed to get fastbootd u need to do it again by either reboot to bootloader from recovery or pressing volume down and power on bootscreen then pressing volume up and down while USB is connected to computer and reflash. Once u do it successfully I think it wud be there for the next time without issues

Categories

Resources