[GUIDE][Newbie friendly] ALL IN ONE Bypass bootloader lock guide of Redmi 5A - Xiaomi Redmi 5A Guides, News, & Discussion

Disclaimer: I did not found this exploit, but there are some things I want to share about the exploit with some additions of my own. You can also say that this guide is newbie friendly version of this original guide here. without any further ado lets start with the guide. I recommend reading original guide first. :
First, I (or anyone at xda ) is not responsible for your bricked device. Make sure you have read every line of this guide (POST #1 and #2) before performing any of the steps. Because it is very risky and might cause permanent damage if steps were performed incorrectly.
And also make sure you have downloaded everything before like custom ROM, twrp, etc and placed them on external sdcard or otg before performing any steps because there is no going back.
Second, do not quote whole post or I will ignore.
What this guide covers?
It covers
Post #1
1. flashing custom recovery (by bypassing bootloader lock)
Post #2
2. flashing custom rom, flashing MIUI based rom
3. Rooting/flashing custom kernel
4. flashing GSI
Requirements to bypass bootloader lock:
NOTE: Flash nougat fastboot ROM through edl if you plan on using custom ROMs to avoid hassle like network/sim card etc but if you want to use xiaomi EU or miui then stay on Oreo miui.
1. Windows 10 PC (other windows versions might also work)
2. Portable MI Flash tool. Link (updated). Extract it somewhere on your PC, you should see QSaharaServer.exe and fhloader.exe after extract.
3. Firmware files (more on that on Post #2). Download and place them inside your external sdcard.
4. Basic knowledge of using Windows and knwo how to enter EDL mode.
Steps:
1. On your PC open directory where you extracted Portable MI Flash, and create a folder named 'tmp' inside folder containing QSaharaServer.exe
2. Download bypass.7z (Download links on Post #2) and extract all of its contents to tmp folder you created above. DO NOT CREATE ANY FOLDERS INSIDE tmp
3. Go to tmp folder then if you are using MIUI oreo then delete 'PBRP_recovery_official_nougat.img' and rename 'OrangeFox_oreo_unoffical_port_by_saurabh6377.img' to 'recovery.img' and do opposite if you are using MIUI Nougat. I recommend you to save both recoveries to external sdcard of your device for future use.
4. Connect your device in EDL mode (Your device must be POWERED OFF before connecting). Go outside tmp folder.
5. Open command prompt or power shell in the folder containing QSaharaServer.exe and run the following commands one by one
Code:
QSaharaServer.exe -p \\.\COM8 -s 13:prog_emmc_firehose_8917_ddr.mbn -b tmp\
to initialize firehose (Replace COM8 with COM Port of your device, find using device manager)
Code:
fh_loader.exe --search_path=tmp --port=\\.\COM8 --sendxml=twrp.xml
to flash custom recovery.
6. If the above command returns DONE then reboot to recovery. You should see MI logo and then hopefully custom recovery will boot.
Congratulations Now you have bypassed bootloader lock successfully on Redmi 5A.
If the commands does not return done, then Paste the ouput commands here, I will come for help.
Press thanks if this guide helped you.

This post covers the following.
1. Flashing custom ROM.
2. Flashing Stock MIUI ROM or Xiaomi EU Rom
3. Flashing custom kernel and rooting
4. Flashing GSI
5. Downloads
Requirements:
1. Appender. Download latest version for both normal and recovery versions and save to sdcard. Optionally read the post to get better idea on how and when to flash Appender.
2. Recovery for nougat fw. You can also PBRP Recovery in bypass.7z. You can also download recoveries from below.
3. Firmware files:
Redmi 5A have two firmwares available as of now, nougat fw and oreo fw.
Currently custom ROMs only work with nougat fw, so you need to flash nougat fw before flashing any custom ROMs. You can download global nougat fw from here
MIUI and Xiaomi EU already contains firmware files so no extra firmware need to be downloaded in most cases (more on that below)
Steps to flash custom ROMs:
1. Flash the downloaded nougat firmware using current recovery (Only required once)
2. If you are coming from oreo fw then flash recovery image (for nougat fw) using current recovery. You can also download recoveries I have uploaded, links at end of this post.
3. Flash Appender-rec.zip then reboot to recovery.
4. Flash the ROM then flash Appender.zip
5. Reboot. And hopefully the ROM will boot.
Steps for MIUI or Xiaomi EU ROM:
1. Flash the ROM
2. If you want to flash stock MIUI and dont want reocvery to be overwritten by stock then flash Magisk. For Xiaomi EU magisk is NOT required.
3. Flash Appender.zip
4. If you are coming from nougat fw and have recovery based on nougat fw installed then flash my Orangefox Recovery (link below) and then flash Appender-rec.zip after performing above steps.
5. Reboot
NOTE: Xiaomi may patch the bug anytime, so latest stock MIUI or Xiaomi EU ROMs might not work with this exploit. However, this bug isn't patched yet in any of the MIUI ROMs as of now, the latest version I have tested is MIUI china nightly v9.9.26. So, it is better to download the oreo firmware file (link below) and flash it EVERY time after flashing MIUI or Xiaomi EU ROMs.
Flashing custom Kernel and Rooting:
Flash the kernel or magisk and the flash Appender.zip
Flashing GSI
No extra steps are needed. Follow procedure to install custom ROM and after that flash GSI in system partition.
Downloads:
1. bypass.7z
2. Orangefox Recovery Oreo fw
3. Pitch Black Recovery Nougat fw
4. Appender
5. Oreo firmware file (Will upload soon)
6. Nougat fastboot ROM link http://bigota.d.miui.com/V10.1.1.0....FI_20181029.0000.00_7.1_global_f444c158ed.tgz

Reserved 2

@saurabh6377 Thanks a ton for this. Hopefully I might be able to try this next week when I get home. Just wanted to ask though if it was absolutely necessary to flash a nougat version of MIUI for using custom rom. And if there is no other choice which version should I flash? Also do I need any special account or sthng for flashing fastboot rom or should i just follow some tutorial on youtube?

adityam0338 said:
@saurabh6377 Thanks a ton for this. Hopefully I might be able to try this next week when I get home. Just wanted to ask though if it was absolutely necessary to flash a nougat version of MIUI for using custom rom. And if there is no other choice which version should I flash?
Click to expand...
Click to collapse
Yes, nougat miui is necessary for custom ROMs (except xiaomi eu) latest global stable (nougat version) is recommended. You can use any nougat version though.
I added link to nougat fastboot rom in post 2.
adityam0338 said:
do I need any special account or sthng for flashing fastboot rom or should i just follow some tutorial on youtube?
Click to expand...
Click to collapse
Lastly flashing through edl does not require any account on redmi 5A as far as I know.

@saurabh6377 It is not necessary to set up the device after flashing nougat version, right? I mean could i just flash the nougat version and then without starting the device follow this thread as it would be easier to get the device in edl mode then.

adityam0338 said:
@saurabh6377 It is not necessary to set up the device after flashing nougat version, right? I mean could i just flash the nougat version and then without starting the device follow this thread as it would be easier to get the device in edl mode then.
Click to expand...
Click to collapse
No need to setup, some users reported that edl does not work after flashing fastboot rom so, you may need to fully power off after flashing ROM from edl. So reboot then shut down then follow the guide. You can also just remove the battery socket then reconnect to fully power off, and then enter edl mode.

@saurabh6377 the link for portable mi flash tool doesn't work anymore. "404 not found"

@saurabh6377 Now I'm getting a different error. I'll attach a snapshot of the error. Hope u can help quick.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

https://drive.google.com/file/d/1wpTgmHDifrV
sCKiY2uys2ZrM9h9GiOrQ/view?usp=drivesdk
 @saurabh6377
12:35:54: ERROR: function: sahara_rx_data:237 Unable to read packet header. Only read 0 bytes.
12:35:54: ERROR: function: sahara_main:924 Sahara protocol error
12:35:54: ERROR: function: main:303 Uploading Image using Sahara protocol failed
This is the error that I'm getting.

Can anyone confirm if we can flash pie based ROM after installing twrp this way or not? I'm currently on DotOS based on N.

Ripper1412 said:
Can anyone confirm if we can flash pie based ROM after installing twrp this way or not? I'm currently on DotOS based on N.
Click to expand...
Click to collapse
Yes you can. I read someone say he booted LOS 16 after flashing TWRP by this method. But if you are on dot os, it means ur Boot loader is unlocked. It would be better to flash TWRP by normal method in your case.

Ripper1412 said:
Can anyone confirm if we can flash pie based ROM after installing twrp this way or not? I'm currently on DotOS based on N.
Click to expand...
Click to collapse
Well yeah it works. I am using lineage os 16 based on pie at the moment after flashing by this method.

Edl mode
Can i enter EDL mode without test point method?

I have an unlocked bootloader of Redmi 5a global miui 11 Oreo ..can u tell me from where and what should I do to downgrade the firmware

sha0307 said:
I have an unlocked bootloader of Redmi 5a global miui 11 Oreo ..can u tell me from where and what should I do to downgrade the firmware
Click to expand...
Click to collapse
https://forum.xda-developers.com/xiaomi-redmi-5a/how-to/rollback-downgrade-to-miui-nougat-t3938904

Deleted

Ripper1412 said:
Can anyone confirm if we can flash pie based ROM after installing twrp this way or not? I'm currently on DotOS based on N.
Click to expand...
Click to collapse
You can even flash android q based rom as i am using pixel experience rom based on android 10 on naugat firmware.

Can someone help me how to flash a android 10 gsi in Redmi 5a Riva .cause I get bootloop or stuck at bootlogo whenever I try to install gsi ..can anyone help me plss

I have entered both the commands and it was written there "DONE" in powershell. But after that i have booted in recovery but it booted in MI recovery not in custom recovery. I followed all the steps correctly.

Related

[GUIDE][RECOVERY][ROOT] Install TWRP and Root (Magisk) Lenovo Z5 Pro GT [L78032]

How to Install TWRP:
Note: that version is UNOFFICIAL TWRP-3.3.0-0524
.Pre-Requirements
ADB means Android Debug Bridge, and it is software that you should always do have installed on your PC.
Pre-Requisite 1
Make sure that you have the drivers for your phone installed on your PC.
If not, you can download and install them from here https://devsjournal.com/usb-drivers-...d-devices.html
Pre-Requisite 2
You must also install: Minimal ADB & Fastboot, you can download the software
from here https://devsjournal.com/download-min...boot-tool.html
Pre-Requisite 3
Your device needs this with unlocked bootloader
if it is not unlocked do the tutorial to unlock HERE
Pre-Requisite 4
Make sure you have enabled 'USB Debugging' and OEM Unlocking on your device
Settings -> Advanced settings -> Developer Options
PAY ATTENTION: If you do not see the Developer Options menu you need to do this:
Settings -> Device Info -> tap 6 or 7 times on the 'ZUI version' entry
A pop-up should appear, telling you 'now you are a developer'
------------------------------------------------
1) Download TWRP: recovery-TWRP-3.3.0-0524-LENOVO_Z5PRO_GT-CN-wzsx150.img
2) After getting the TWRP file put it in the same ADB folder
3) Now start the phone in bootlader by doing this:
Connect the phone to the PC
Start the Minimal ADB & Fastboot program from the PC
On the PC screen, type:
adb reboot bootloader
(A request may appear on the phone screen with permission of USB debugging, accept it)
The phone will now restart in Bootloader mode.
4) Now that you are in bootloader mode, from the PC, from the screen
Minimal ADB and Fastboot type:
fastboot flash recovery recovery-TWRP-3.3.0-0524-LENOVO_Z5PRO_GT-CN-wzsx150.img
Sending 'recovery' (98304 KB) OKAY [ 5.970s]
Writing 'recovery' OKAY [ 0.539s]
Done !
---------
.How to Install Root Magisk:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Done !
Credits:
Maker: wzsx150
Developer Team: LR.Team
Is there any issues related to this recovery?
firemax13 said:
Is there any issues related to this recovery?
Click to expand...
Click to collapse
I had no problem with this recovery
My device was unlocked by vendor. I'm unable to boot into twrp to root my device. The flashing is successful but it will only boot in a simple recovery where I can only install an "update.zip".
Have tried this https://forum.xda-developers.com/z5...-guide-lenovo-z5-pro-gt-t3915945#post81055547 but the problem remains.
Hope anyone can help. I need to root my device. Thanks
BlueIce84 said:
My device was unlocked by vendor. I'm unable to boot into twrp to root my device. The flashing is successful but it will only boot in a simple recovery where I can only install an "update.zip".
Have tried this https://forum.xda-developers.com/z5...-guide-lenovo-z5-pro-gt-t3915945#post81055547 but the problem remains.
Hope anyone can help. I need to root my device. Thanks
Click to expand...
Click to collapse
Have the same scenario as you but I haven't done the tutorial yet as I read your post and I got concerned. Have you fix you issue? Is it safe to do this tutorial?
No solution so far. No twrp and no root
Now I have flashed the original rom with ZUI 10. Works well and updated to ZUI 11.
luigi0824 said:
Have the same scenario as you but I haven't done the tutorial yet as I read your post and I got concerned. Have you fix you issue? Is it safe to do this tutorial?
Click to expand...
Click to collapse
I've read somewhere that you need to flash vbmeta.img if verified boot is enabled, however I couldn't find the correct img to flash anywhere. Maybe if we ask someone that has the phone already rooted.
Can anyone post wzsx150's newest TWRP 3.3.1 from October 4? It's in this thread but the download link is for registered users only. I can't sign up for a Club Lenovo account.
BlueIce84 said:
No solution so far. No twrp and no root
Now I have flashed the original rom with ZUI 10. Works well and updated to ZUI 11.
Click to expand...
Click to collapse
What method would you follow to install the stock rom, like you, it comes with the bootloader unlocked by the seller and I don't know how to flash stock rom
Use this guide:
https://forum.xda-developers.com/z5-pro-gt/how-to/guide-unbrick-guide-lenovo-z5-pro-gt-t3915945
carlshark said:
Can anyone post wzsx150's newest TWRP 3.3.1 from October 4? It's in this thread but the download link is for registered users only. I can't sign up for a Club Lenovo account.
Click to expand...
Click to collapse
I gave up on clublenovo. They require SMS authentication to post so even when you log in you can't post and download. TWRP 3.3.1 is also available from 4PDA. That's what I used.
I was able to flash the TWRP 3.3.1 but i cant root nor i cant flash anything as the folders inside the sdcard directory is showing in weird names
luigi0824 said:
I was able to flash the TWRP 3.3.1 but i cant root nor i cant flash anything as the folders inside the sdcard directory is showing in weird names
Click to expand...
Click to collapse
You need to decrypt the internal storage.
normally this is done by entering to ping code to unlock the phone in TWRP on start up.
thorvall said:
You need to decrypt the internal storage.
normally this is done by entering to ping code to unlock the phone in TWRP on start up.
Click to expand...
Click to collapse
Will I lose any data if I decrypt my phone? And where do I find that pin code?
luigi0824 said:
Will I lose any data if I decrypt my phone? And where do I find that pin code?
Click to expand...
Click to collapse
Its the pin code you use to open the phone.
And enabling does not remove data, but it does give twrp read/write permission
Is it possible to implement support for OTA updates through TWRP?
BlueIce84 said:
My device was unlocked by vendor. I'm unable to boot into twrp to root my device. The flashing is successful but it will only boot in a simple recovery where I can only install an "update.zip".
Have tried this https://forum.xda-developers.com/z5...-guide-lenovo-z5-pro-gt-t3915945#post81055547 but the problem remains.
Hope anyone can help. I need to root my device. Thanks
Click to expand...
Click to collapse
i had the same issue and discover a solution
1) you have to manually go to your phone after you finish the flash below. DO NOT cmd fastboot reboot as it will flash stock
recovery
a) fastboot flash recovery twrp.img ( i rename the tweak recovery file to twrp.img)
b) http://4pda.ru/forum/index.php?showtopic=973179&st=0
(tweak recovery version 3.31)
2) after flash quickly go to your phone fastboot mode ( reminder again: do not tyoe fastboot reboot after flash successful appear in cmd)
3) manually select recovery , select english then select reboot and TWRP will appear
issues
1) i cannot manually tweak recovery via phone ( power +volume down ) as stock recovery will appear again.
A) so you need to go your PC to redo flash recovery again
B) i did a back up and redo PC flassh recovery again and mine files are stored successful
c) there is no install root in TWRP
D) about backup...
.best to back up via OTA-USB. pixel GCI crash ( QUALCOMM CRASH DUMP MODE ) my phone and my restore
file was missing as TWRP rename the restore file. spent one hour it so decide to do stock rom
current
a) I have not flash any rom yet and my original ANTUTU benchmark hovers around 300000 to 350000 based on vendor custom global rom
b) my phone model is 8gb 128gb android version 9 and lenovo version 11.0.084
c) updatess and NFC not supported
d) i opt not too root
e) bootloader still unlock
REQUEST...
would appreciate a ROM recommendation
a) have anyone flash a rom (not china stock rom) wirh an antutu beachmark abve 400000 ?
from a novice... after 2 weeks i can finally flash tweak recovery from the phonE.
about flashing stock rom..
i opt for stock rom and my antutu hovers around 409000 to 418000. from LENOVO app centre you can install play store
butterx2341 said:
i had the same issue and discover a solution
1) you have to manually go to your phone after you finish the flash below. DO NOT cmd fastboot reboot as it will flash stock
recovery
a) fastboot flash recovery twrp.img ( i rename the tweak recovery file to twrp.img)
b) http://4pda.ru/forum/index.php?showtopic=973179&st=0
(tweak recovery version 3.31)
2) after flash quickly go to your phone fastboot mode ( reminder again: do not tyoe fastboot reboot after flash successful appear in cmd)
3) manually select recovery , select english then select reboot and TWRP will appear
issues
1) i cannot manually tweak recovery via phone ( power +volume down ) as stock recovery will appear again.
A) so you need to go your PC to redo flash recovery again
B) i did a back up and redo PC flassh recovery again and mine files are stored successful
c) there is no install root in TWRP
D) about backup...
.best to back up via OTA-USB. pixel GCI crash ( QUALCOMM CRASH DUMP MODE ) my phone and my restore
file was missing as TWRP rename the restore file. spent one hour it so decide to do stock rom
current
a) I have not flash any rom yet and my original ANTUTU benchmark hovers around 300000 to 350000 based on vendor custom global rom
b) my phone model is 8gb 128gb android version 9 and lenovo version 11.0.084
c) updatess and NFC not supported
d) i opt not too root
e) bootloader still unlock
REQUEST...
would appreciate a ROM recommendation
a) have anyone flash a rom (not china stock rom) wirh an antutu beachmark abve 400000 ?
from a novice... after 2 weeks i can finally flash tweak recovery from the phonE.
about flashing stock rom..
i opt for stock rom and my antutu hovers around 409000 to 418000. from LENOVO app centre you can install play store
Click to expand...
Click to collapse
If you boot your ZUI system, your twrp will be overwritten by a stock recovery.
However if you flash magisk, your twrp won't be overwritten anymore. If you want to preserve your twrp after rebooting on ZUI, you need to flash magisk.
whatever I do.. the twrp wont be installed (let alone the root/magisk). ADB does say the twrp is flashed... but it will always boot to or the bootloader.. or the system (not the lenovo recovery or twrp recovery). Quiet frustrating... what can I do? Want this boy rooted!
Edit: done. The twrp linked in the tutorial is not correct use this one: https://drive.google.com/file/d/13mt0RLmT83BHSUBpH-J7EhaeZQ-MPYUu/view
That worked!
I want to unlock my bootloader but the site where you request the image file for unlocking it wont accept my IMEI1.. any idea guys?

[Guide][Rom][Root][official][MIUI 11] for Rooted Devices & root guide

Keeping it short:
This is the official STABLE global MIUI 11 Rom for Mi 9T
Official download links:
For rooted devices - Recovery full zip (2.3GB)
For stock unrooted devices - OTA upgrade zip (779MB)
Magisk Root without TWRP:
Objectives :
Have root using Magisk
Be able to install OTA from the settings without bootloops
Avoid boot loop
Very important :
Your phone has to have an unlocked bootloader
Your phone has to have stock recovery. TWRP WILL cause bootloop for root and/or OTA updates from system.
I like to have root with magisk and don't want to install TWRP because I want to be able to install OTA from system without boot loops. This guide will help you achieve this with ease.
Download the rooted boot image for your correct ROM version from here: https://mega.nz/#F!1kwETAwD!O5iPgAaocQ8WxfUK2V7RVA
Restart your phone in fastboot mode (hold vol-down and power buttons for a few seconds)
Flash the rooted boot image using fastboot. (fastboot flash boot Magisk_9T_Global_V11.0.1.0.PFJMIXM.img)* **
Reboot device (fastboot.exe reboot)
(install then) Open Magisk manager
Follow instruction shown in the magisk manager for adding necessary files (you might not need this)
*Download the latest Minimal ADB /fastboot and USB drivers for your device if you are having a problem with this.
** Using some data cables will result in your fastboot not seeing your device (showing < waiting for any device >). If you have this problem change your USB cable with another or use the one that comes with the device
I have attached the following root files:
V10.3.11.0.PFJMIXM (MIUI10) global stable room - Global 9T stock boot image
V11.0.1.0.PFJMIXM (MIUI11) global stable room - Global 9T stock boot image
V11.0.1.0.PFJMIXM (MIUI11) global stable room - Global 9T Magisk rooted boot image
Things to consider doing after the update:
Remove ads using this guide: https://miblog.co/miui-remove-system-ads/
Enable Android style notification (instead of the default MiUI one) from the notification settings
Disable option: “Settings / Additional settings / Privacy / Location / Scanning / WLAN scanning” to improve battery life
Use this guide to install Xiaomi Mi 9 Google Camera (GCam) (no root needed): https://miblog.co/xiaomi-mi9-google-camera/
Disable autostart for all apps excluding the ones you want to autostart to fix the battery drainage issue
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hey, quick question. I'm trying to install the new MIUI11 stock global ROM for my Mi 9T. The thing is, the phone's updater takes forever to download and the download itself even gets cancelled out of nowhere (my internet is pretty slow) Can I just download the 779MB OTA Upgrade zip you provided and move it to my phone and proceed selecting it from the updater app? Is it the same file you get as downloading it from the app? I'm on global, PFJMIXM version 10.3.11.0
Thanks!
Danielxgl said:
Hey, quick question. I'm trying to install the new MIUI11 stock global ROM for my Mi 9T. The thing is, the phone's updater takes forever to download and the download itself even gets cancelled out of nowhere (my internet is pretty slow) Can I just download the 779MB OTA Upgrade zip you provided and move it to my phone and proceed selecting it from the updater app? Is it the same file you get as downloading it from the app? I'm on global, PFJMIXM version 10.3.11.0
Thanks!
Click to expand...
Click to collapse
I'm not sure how the update app does the file check. Can you try it and report?
I know that if you're rooted, the OTA will fail to install and the update app automatically starts downloading the full ROM, which is pretty cool.
Kiwironic said:
I'm not sure how the update app does the file check. Can you try it and report?
I know that if you're rooted, the OTA will fail to install and the update app automatically starts downloading the full ROM, which is pretty cool.
Click to expand...
Click to collapse
Wish I could try it, but my update app miraculously decided not to fail this time, and I was able to update the phone normally. Maybe someone else could try it?
What im i do wrong if i get twrp while trying to boot miui? Installed Patched boot installed firmware cannot boot
Still Android 9, no?
SeriousX said:
What im i do wrong if i get twrp while trying to boot miui? Installed Patched boot installed firmware cannot boot
Click to expand...
Click to collapse
Flash the stock or rooted boot image and recovery for your device. It should work normally. That's my main reason to root without TWRP
robi10101298 said:
Still Android 9, no?
Click to expand...
Click to collapse
Yes
Kiwironic said:
Keeping it short:
This is the official STABLE global MIUI 11 Rom for Mi 9T
Official download links:
For rooted devices - Recovery full zip (2.3GB)
For stock unrooted devices - OTA upgrade zip (779MB)
Magisk Root without TWRP:
Download the rooted boot image for your correct ROM version from here: https://mega.nz/#F!1kwETAwD!O5iPgAaocQ8WxfUK2V7RVA
Restart your phone in fastboot mode (hold vol-down and power buttons for a few seconds)
Flash the rooted boot image using fastboot. (fastboot flash boot Magisk_9T_Global_V11.0.1.0.PFJMIXM.img)* **
Reboot device (fastboot.exe reboot)
(install then) Open Magisk manager
Follow instruction shown in the magisk manager for adding necessary files (you might not need this)
*Download the latest Minimal ADB /fastboot and USB drivers for your device if you are having a problem with this.
** Using some data cables will result in your fastboot not seeing your device (showing < waiting for any device >). If you have this problem change your USB cable with another or use the one that comes with the device
I have attached the following root files:
V10.3.11.0.PFJMIXM (MIUI10) global stable room - Global 9T stock boot image
V11.0.1.0.PFJMIXM (MIUI11) global stable room - Global 9T stock boot image
V11.0.1.0.PFJMIXM (MIUI11) global stable room - Global 9T Magisk rooted boot image
Things to consider doing after the update:
Remove ads using this guide: https://miblog.co/miui-remove-system-ads/
Enable Android style notification (instead of the default MiUI one) from the notification settings
Disable option: “Settings / Additional settings / Privacy / Location / Scanning / WLAN scanning” to improve battery life
Use this guide to install Xiaomi Mi 9 Google Camera (GCam) (no root needed): https://miblog.co/xiaomi-mi9-google-camera/
Disable autostart for all apps excluding the ones you want to autostart to fix the battery drainage issue
Click to expand...
Click to collapse
If I don't want root anymore I can install this via Twrp: Recovery full zip (2.3GB)rooted devices + V11.0.1.0.PFJMIXM (MIUI11) global stable room - Global 9T stock boot image
Is this right?
Drakar88 said:
If I don't want root anymore I can install this via Twrp: Recovery full zip (2.3GB)rooted devices + V11.0.1.0.PFJMIXM (MIUI11) global stable room - Global 9T stock boot image
Is this right?
Click to expand...
Click to collapse
Yes the full rom. But no need to flash boot, flashing the full image will automatically rewrite the boot image to a stock unrooted one.
Anybody who needed a root boot image, can send me the version of their ROM or send me the boot image from their phone and I'll root it for you using magisk. You can do that yourself as well by downloading the full ROM zip file, take the boot file and use magisk to create a root boot image. Can provide more details if you don't know how to do it.
Kiwironic said:
Anybody who needed a root boot image, can send me the version of their ROM or send me the boot image from their phone and I'll root it for you using magisk. You can do that yourself as well by downloading the full ROM zip file, take the boot file and use magisk to create a root boot image. Can provide more details if you don't know how to do it.
Click to expand...
Click to collapse
Do provide more details. I'm on stock miui (davinciin), with unlocked bl and would like to root tf outta this
geeknoob said:
Do provide more details. I'm on stock miui (davinciin), with unlocked bl and would like to root tf outta this
Click to expand...
Click to collapse
I wrote a guide and made some videos here :
https://forum.xda-developers.com/showpost.php?p=80835573&postcount=1
Updated the post because people using the guide while having TWRP will have bootloop . Please read the instructing carefully. You need a stock recovery for this root to work and for OTA to install from settings
Thanks for this guide, I couldn't get official TWRP to stick so that I could flash Magisk. I used your guide and now I have root. Many thanks
i need to ask.
when miui release a new update i usually update and after that i had to re flash the "recovery-TWRP-3.3.1-0916-REDMI_K20-CN-wzsx150" then again flash the magisk.
but this time i try to install it boot the recovery but when i go to the internal memory it appear a lot of weird folders and it won't allow me to paste the magisk to install it.
"+KPcZ3jsjybn9M850BgrhB"
3zitjokdIMQE++oQFL8PxA
9AmJcdRgO71ehKtIhWg3oB
9Y0e9H1NkAr4FMzOz9X,UD
882G73cfQNPbaXm2zAzXiD
---------- Post added at 11:34 AM ---------- Previous post was at 11:24 AM ----------
Jctatis said:
i need to ask.
when miui release a new update i usually update and after that i had to re flash the "recovery-TWRP-3.3.1-0916-REDMI_K20-CN-wzsx150" then again flash the magisk.
but this time i try to install it boot the recovery but when i go to the internal memory it appear a lot of weird folders and it won't allow me to paste the magisk to install it.
"+KPcZ3jsjybn9M850BgrhB"
3zitjokdIMQE++oQFL8PxA
9AmJcdRgO71ehKtIhWg3oB
9Y0e9H1NkAr4FMzOz9X,UD
882G73cfQNPbaXm2zAzXiD
Click to expand...
Click to collapse
NVM already fixed installed the twrp-3.3.1-0-davinci.img and flashed the magisk v.20
Kiwironic said:
Anybody who needed a root boot image, can send me the version of their ROM or send me the boot image from their phone and I'll root it for you using magisk. You can do that yourself as well by downloading the full ROM zip file, take the boot file and use magisk to create a root boot image. Can provide more details if you don't know how to do it.
Click to expand...
Click to collapse
Thanks for this! Would you be able to make a patched boot.img for V11.0.5.0.QFJMIXM? Please? Mi net is too bad to download the whole rom
galelouch993 said:
Thanks for this! Would you be able to make a patched boot.img for V11.0.5.0.QFJMIXM? Please? Mi net is too bad to download the whole rom
Click to expand...
Click to collapse
Just downloaded the whole ROM with no problem from:
https://mirom.ezbox.idv.tw/en/phone/davinci/
Anyway, try with the following - patched from my Magisk Canary:
https://mega.nz/file/09M13QhI#4AXcEYviHw_1xyhCoDYZh_J41Iu58ulozuRJbhQZP6w
You can test just by temporarily booting to the patched image (if it boots ok, then you would really flash it):
fastboot boot boot-Magisk_Canary_20405-davinci_v11.0.5.0_QFJIMXM_aaab5b40c7_10.0.img
Download and install the corresponding Canary Magisk Manager e.g. app-release.apk, from:
https://github.com/topjohnwu/magisk_files/find/canary?q=
If you have a bootloop it could be due to the previously installed Magisk modules - you would need to disable them in TWRP:
/data/adb/modules
and to every subfolder add an empty file named "disable" (or delete the whole modules folder)
zgfg said:
Just downloaded the whole ROM with no problem from:
https://mirom.ezbox.idv.tw/en/phone/davinci/
Anyway, try with the following - patched from my Magisk Canary:
https://mega.nz/file/09M13QhI#4AXcEYviHw_1xyhCoDYZh_J41Iu58ulozuRJbhQZP6w
You can test just by temporarily booting to the patched image (if it boots ok, then you would really flash it):
fastboot boot boot-Magisk_Canary_20405-davinci_v11.0.5.0_QFJIMXM_aaab5b40c7_10.0.img
Download and install the corresponding Canary Magisk Manager e.g. app-release.apk, from:
https://github.com/topjohnwu/magisk_files/find/canary?q=
If you have a bootloop it could be due to the previously installed Magisk modules - you would need to disable them in TWRP:
/data/adb/modules
and to every subfolder add an empty file named "disable" (or delete the whole modules folder)
Click to expand...
Click to collapse
Ty very much for replying with a complete guide and files needed. I managed to get a boot.img for my version and patched it successfully with stable magisk manager. I'm very grateful for your efforts tho.
Btw, any special reason for using canary builds in your steps?
9
galelouch993 said:
Ty very much for replying with a complete guide and files needed. I managed to get a boot.img for my version and patched it successfully with stable magisk manager. I'm very grateful for your efforts tho.
Btw, any special reason for using canary builds in your steps?
Click to expand...
Click to collapse
Canary has some early fixes and features, but also some new bugs
E.g., for a long time, Canary has a new UI. It was buggy and with issues but now is already good and stable andI I like its new features
But just realized that V4A cannot install driver with yesterday's Magisk Canary 20401 so I returned back to Canary 20405
Edit:
Btw, you can try Magisk Manager Canary - install from the link in my previous post.
It should work with your stable Magisk
By using Stable Channel, you can always return to stable Manager version

[GUIDE] How to root Redmi 9C and pass SafetyNet (tested)

I am not responsible for your actions, but I will try to help.
I'm going to assume you have unlocked bootloader and ADB/Fastboot tools installed.
1. Download latest Magisk and make 2 copies of it. Install one of them on your phone. Change the extension of 2nd from .apk to .zip, then move it to your phone`s storage
2. Download Pitch Black recovery for Redmi 9C
3. Move recovery.img to both your ADB folder (can be found at C:\adb) and phone`s storage
5. Download DM-VERITY, FORCED ENCRYPTION
6. Rename it to enfec.zip and place in phone`s storage
4. Download attached vbmeta.img and place it in your ADB folder
5. Go into fastboot mode
5. On your PC, open cmd-here.exe in adb folder
6. fastboot flash recovery recovery.img
7. fastboot flash vbmeta vbmeta.img
8. fastboot reboot recovery
9. Sometimes recoveries don't work with touchscreen. In this case, flash other region's ROM. To do this, find and download fastboot version of ROM. Unzip it, run flash_all.bat while being in a fastboot mode (this will erase all data). WARNING: DO NOT RUN flash_all_and_lock.bat. THIS WILL LOCK THE BOOTLOADER AND YOU WILL HAVE TO WAIT ANOTHER WEEK!
Next retry again the whole tutorial. You can also use USB-OTG mouse.
10. Navigate to 'Install' section. Check every option except 'Reboot after installation is complete', 'Zip signature verification' and 'Advanced remove of Forced Encryption'. Select recovery image that you previously moved to your storage and install it 'as Recovery'.
11. In recovery, move to 'backup' and make a backup to your SD card (optional, but highly recommended). Usually, it doesn`t work out of the box. Try searching for guides.
12. In the same section install enfec.zip and then Magisk.zip. If you get errors like 'Failed to mount /nv_data', ignore them.
13. Reboot to system, copy external_sd/PBRB/tools -> storage/0/emulated/PBRB/
Done!
How to pass SafetyNet (tested on 05.05.21 dd/mm):
Simply enable MagiskHide. This will only work if you haven`t modified the /system with modules that don`t hide themselves.
If you did heavy modifications, install UniversalSafetyNetFix (USNF) (repo) or install both MagiskHide Props Config (can be found in Magisk`s modules) and USNF. Instructions to installation of Props Config can be found in the README or on the web. Experiment with it, this is device specific.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It seems like you are using redmi 9C NFC
I am using redmi 9C Global
Did you tested this recovery on your phone?
I downloaded a recovery from GitHub for redmi 9c flashed it after flashing I flashed vbmeta too but can't boot into recovery
I am currently on global EU ROM 12.0.3 which I flashed yesterday
Before that I was on miui global 12.0.10
I tried to root it with magisk and after flashing magisk patched boot.img flashed vbmeta too
But can't get root access
Before I was on miui global 12.0.8
I rooted with magisk and got root access
In order to get root access I downgraded back to miui 12.0.8 but can't get root access
What should I do now?
It seems like you are using redmi 9C NFC
Click to expand...
Click to collapse
True
I am using redmi 9C Global
Click to expand...
Click to collapse
That doesn`t really matter
Did you tested this recovery on your phone?
Click to expand...
Click to collapse
Yes
I downloaded a recovery from GitHub for redmi 9c
Click to expand...
Click to collapse
Which recovery have you flashed? I provided link to SouceForge, not GitHub
I downloaded a recovery [...] flashed it after flashing I flashed vbmeta too but can't boot into recovery
Click to expand...
Click to collapse
Try fastboot reboot recovery.img
If that doesn`t work, try updating your ADB/Fastboot tools. Just download needed files from any site and place them in your ADB folder.
Also, since this recovery is unofficial port, it is a bit different from original. To boot into recovery, you don`t have to hold power+volume_up untill you see recovery menu. Instead, hold it untill screen goes black.
I tried to root it with magisk and after flashing magisk patched boot.img flashed vbmeta too
But can't get root access
Click to expand...
Click to collapse
From my guide:
No users report bootloops, but in some cases root isn't granted. In this case follow next steps.
Click to expand...
Click to collapse
Before I was on miui global 12.0.8
I rooted with magisk and got root access
In order to get root access I downgraded back to miui 12.0.8 but can't get root access
Click to expand...
Click to collapse
I don`t really get what you say, but there is no need to downgrade/upgrade. If I were you, I would flash latest MIUI, though
What should I do now?
Click to expand...
Click to collapse
Try flashing latest eu MIUI (I can help with that, if you want) and then follow method B) step by step, without making any changes and reading everything that I wrote
Hope this helps!
Can't make a backup as your tutorial because i got an error, and what i need to backup just the 'one' selected from the recobery ? can i skip this step and just install the enfec.zip and then Magisk.zip ?
I am stuck from the step 8 and 9 because i got that error and i have no idea what select from the list of the backup...
Backup is an optional step. I get an error too and I have no idea why.
Seems like it worked very well. but the safetynet failed, should download Magisk v21.4 zip because the newest one failed at the moment to flash it, and if you get an error at the end of flashing the DM-VERITY, FORCED ENCRYPTION it's ok still working anyway. thanks for sharing the post
@0purple​
Btw personally skip the step 8 and 9, if you failed to get into recovery with the bottons just try again the step 5,6,7
Knox6 said:
but the safetynet failed, should download Magisk v21.4 zip because the newest one failed at the moment to flash it,
Click to expand...
Click to collapse
Updated the post, try it
I have the European version 12.06 of the redmi 9c. I tried to boot into recovery, but the touch doesn't work in any way, so I can't do anything... help me
i just enabled magisk hide option in magisk manager setting it fixed it
MHaseebpk said:
View attachment 5278627View attachment 5278627i just enabled magisk hide option in magisk manager setting it fixed it
Click to expand...
Click to collapse
does the root work for you? I have the EUropera version 12.0.6 and it doesn't work
sephirot91 said:
does the root work for you? I have the EUropera version 12.0.6 and it doesn't work
Click to expand...
Click to collapse
Yes
MHaseebpk said:
Yes
Click to expand...
Click to collapse
See this
MHaseebpk said:
See this View attachment 5278773
Click to expand...
Click to collapse
how did you do it? I followed the guide perfectly and it doesn't work. On the other hand, with the second method, the pitch recovery touch does not respond to commands

			
				
sephirot91 said:
how did you do it? I followed the guide perfectly and it doesn't work. On the other hand, with the second method, the pitch recovery touch does not respond to commands
Click to expand...
Click to collapse
I just followed seconds method and I am on global rom
You should flash global rom and should try again
MHaseebpk said:
I just followed seconds method and I am on global rom
You should flash global rom and should try again
Click to expand...
Click to collapse
Ok thanks, I could try. Do you have a guide to flash the global version? thank you very much
https://c.mi.com/oc/miuidownload/detail?guide=2
is it okay? for flashing rom global
sephirot91 said:
Ok thanks, I could try. Do you have a guide to flash the global version? thank you very much
Click to expand...
Click to collapse
First you need to download angelica global latest (12.0.10) fastboot rom from Here
Download miflash pro english from Here
Extract mi flash pro zip file install mi flash pro and extract angelica global image too in your PC
Now power off you phone
Hold volume down and power button simultaneously for 5 seconds
Your phone will boot into fastboot mode
Now open miflash pro login with your mi account connect your phone
When you will connect your phone your phone will be automatically detected
And miflash pro will recommend you to flash in recovery click on it
Next select package (fastboot rom) which you downloaded and extracted before and select script flash all.bat
Wait for 5 to 6 minutes
Your phone will be flashed
After that setup your phone
Boot again into fastboot mode
Setup adb in your PC
Install mediatek USB vcom drivers
And next follow second method
MHaseebpk said:
First you need to download angelica global latest (12.0.10) fastboot rom from Here
Download miflash pro english from Here
Extract mi flash pro zip file install mi flash pro and extract angelica global image too in your PC
Now power off you phone
Hold volume down and power button simultaneously for 5 seconds
Your phone will boot into fastboot mode
Now open miflash pro login with your mi account connect your phone
When you will connect your phone your phone will be automatically detected
And miflash pro will recommend you to flash in recovery click on it
Next select package (fastboot rom) which you downloaded and extracted before and select script flash all.bat
Wait for 5 to 6 minutes
Your phone will be flashed
After that setup your phone
Boot again into fastboot mode
Setup adb in your PC
Install mediatek USB vcom drivers
And next follow second method
Click to expand...
Click to collapse
I don't lose the unlocked bootloader, right?
sephirot91 said:
I don't lose the unlocked bootloader, right?
Click to expand...
Click to collapse
Yes select flash all.bat your bootloader will remain unlock and your phone will be flashed
Don't select flash all and lock script otherwise bootloader of your phone will be locked and you will have to wait for 7 days to unlock bootloader

General [SHARED] LineageOS 18.1 | UNOFFICIAL | Android 11 Updated: 04/12/22

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
First I'm not the developper of this rom and just share it here
credits go to @NeoArian
Be aware that it's a provisory thread and the dev will create his own when he decide the rom is ready....
LineageOS is a free, community built, aftermarket firmware distribution of Android 11, which is designed to increase performance and reliability over stock Android for your device.
LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.
#LineageOS #Unofficial #R #ROM #Renoir
LineageOS 18.1 | UNOFFICIAL | Android 11
Updated: 06/11/'21
Download (https://sourceforge.net/projects/ep...1/lineage-18.1-20220412-UNOFFICIAL-renoir.zip)
Changelogs & Flashing Guide
(https://drive.google.com/file/d/13rLVqeowVTRWivrpgenl-7k60r7tVB66/view?usp=sharing)Notes:
• Images for flashing can be found here
Credits and thanks to @NeoArian
Installation Instructions:
Lineage Os Installation:
1- Install LOS Recovery: With the phone in FASTBOOT mode in the Platform-tool folder and the necessary files, open the CMD
2- Next we place in the window: fastboot flash boot_ab boot.img and then fastboot flash vendor_boot_ab vendor_boot.img to finish fastboot reboot recovery
3- The cell phone will restart in recovery mode with LOS recovery already installed (it is managed with the volume and power keys)
4- Perform Format Data (do not restart again)
5- Give Apply Update and then Apply Update from SDcard1 and look for the ROM
6- Then Reboot System Now (WILL INITIATE THE ROM)
7- Force restart in recovery to install Gapps (PICO Recommended)
8- Apply Update, Apply update from SDcard1 choose the gapps
9 Reboot System Now and enjoy XD
ALTERNATIVE WAY OF FLASHING THE ROM see post 2
Link for the boot.img too big for being attached here, look my AFH
first custom rom for our device.....enjoy...
******************************************************************************************************************************//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////********************************************************************************************************************************
signature spoofing is possible with last update and before....
here are the files you have to flash with magisk and reboot...
1st sppof and microG
its from HERE
ALTERNATIVE WAY OF FLASHING THE ROM
For those like me who have issue with flashing this rom here i what I do to bypass recovery issue..
after flash boot+vendor and start on LOS recovery and format data, I click update but I haven' apply update from sdcard1 but justapply from ADB..in advanced settings, there isn't such option....so I installed with ADB sideload
that what I do, and after 1 error I tried again and got error when I command adb reboot that system was not installed but I'm now on your rom....only issue is with my sdcard not recognized...have to backup on pc, format and recopy back, but certainly error on my side when I flash back miui rom.......
Install Custom ROM with ADB sideload
What is Android Debug Bridge?
ADB is a command-line tool included in the Android SDK development kit. It is used to communicate with any device that runs the Android operating system. You can use the ADB commands to perform various operations on your Android device.
With the help of the Android Debug bridge, you can install custom ROMs, mods, GApps, backup Android, flash official stock firmware, and install Android apps. Besides, you can also use ADB to uninstall bloatware without Root, downgrade an app, etc.
What is ADB Sideload?
ADB sideload, a command that transfer and install a zip file on an Android device from the PC. This command is handy for a custom ROM developer to push and install any installation zip file directly on a device.
The sideload feature was introduced with the Android Jelly bean recovery. Most importantly, this sideload mode requires a TWRP recovery version 2.3 or higher. Besides, it is also essential to install the latest ADB binaries on your PC.
How to Flash Custom ROM using ADB and Fastboot
Are you ready to use ADB and Fastboot for flashing custom firmware on your Android phone? Then let’s get started.
Warning
Ensure to install the right custom ROM on your Android phone. Do NOT proceed if the firmware is incompatible with your phone model number.
Requirements
A Windows PC and a standard USB cable.
Charge your device to a minimum of 50%.
Install mobile USB drivers on your computer.
Enable USB Debugging mode from your device settings.
Also, enable the OEM unlocking and Advance reboot mode.
Moreover, unlock your device bootloader.
Install TWRP 2.3 or higher on your Android device.
(Optional) Temporarily disable antivirus and firewall on your PC.
Steps to Install Custom ROM using ADB Sideload
Follow these step-by-step instructions to sideload the zip file on your Android phone.
1. Download Custom ROM
At first, download the mobile-specific Android custom ROM on your PC.
Ensure that the ROM file is in zip format.
Also, download the correct firmware that is compatible with your device’s model number.
2. Install ADB and Fastboot drivers
Download and install the latest ADB drivers on your computer.
Make sure that the ADB version is 1.0.29 or higher.
3. Transfer Custom ROM to ADB folder
Copy the downloaded custom ROM and paste it into the ADB folder.
The folder default location will be C:\Program Files\Minimal ADB and Fastboot.
4. Boot Android phone into Recovery mode
Switch off your Android phone.
Now, restart it into recovery mode.
Every device has different methods to boot into recovery.
You can either Google it or use the Recovery reboot app from Play Store.
5. Set the device into ADB sideload mode
As soon as you enter the recovery mode, click on the Advanced button.
On the next screen, click on the ADB sideload option.
6. Connect Android phone to PC
Now, connect your Android device to the computer using a USB cable.
Keep the device as it is in sideload mode.
After a successful connection, tick the Wipe Davik Cache and Wipe Cache options.
Then, swipe right on your device to start sideload.
7. Launch CMD window
Open the ADB folder, hold your keyboard’s Shift button, and right-click.
From the list of options, tap on the Open command window here option.
This will open the command prompt window on your PC.
8. Confirm the ADB connection
Furthermore, type the below command in the cmd window and press the enter key:
adb devices
You’ll see some random numbers with a ‘List of devices attached’ message.
This will confirm that your Android device is successfully connected to the PC.
9. Flash Custom ROM with ADB sideload command
To flash the custom ROM zip package file, enter the below command in the CMD:
adb sideload LineageOS18.zip
Make sure to type the exact name of the custom ROM file.
Also, don’t forget to add the zip extension at the end.
Here, I’m flashing LineageOS18 custom ROM.
Finally, hit the enter key to begin the ROM flashing process.
10. Reboot Android phone
On the installation finishes, your device will show a message saying, ‘ADB sideload complete.’
Tap on the Reboot System option to restart your device.
or those who don't know how to use ADB sideload here is a tuto you can read
How to Flash Custom ROM using ADB sideload [Easy Steps]
Flash Custom ROM zip file with ADB and Fastboot commands on any Android phone. Install Custom Firmware without TWRP recovery using CMD.
www.droidthunder.com
rayman95 said:
first custom rom for our device.....enjoy...
Click to expand...
Click to collapse
@rayman95
I've edited the OP of your thread and removed the reference to Telegram from it. As an exemption from the last bullet of rule no. 5 of the XDA Forum Rules, we grant only developers the privilege to share references to their social media in their own development threads. These conditions obviously don't apply to your thread or you. Please refrain from sharing of social media in future.
Additionally, I've added a tag [SHARED] to the thread title to clearly indicate already in the title that it's not your development. Please do not remove this tag.
Thanks for your cooperation!
Regards
Oswald Boelcke
Senior Moderator
Be aware that it's a provisory thread and the dev will create his own when he decide the rom is ready....
simple twrp wont work?
new update from the dev @NeoArian ....HERE
I'm im still deciding to flash or not to flash custom rom on my phone
But can someone explain it to me how to do it? I mean I know how to flash rom but I cant find simple steps for flashing.
I'm currently on stock MIUI, didnt touched anything?
What are steps for me? For what I can understand
1. Unlock bootloader
2. steps from: https://drive.google.com/file/d/13rLVqeowVTRWivrpgenl-7k60r7tVB66/view
Is that it or am I missing something in between?
ilidari said:
I'm im still deciding to flash or not to flash custom rom on my phone
But can someone explain it to me how to do it? I mean I know how to flash rom but I cant find simple steps for flashing.
I'm currently on stock MIUI, didnt touched anything?
What are steps for me? For what I can understand
1. Unlock bootloader
2. steps from: https://drive.google.com/file/d/13rLVqeowVTRWivrpgenl-7k60r7tVB66/view
Is that it or am I missing something in between?
Click to expand...
Click to collapse
You forget to activate Dev option before flash, then you can go
rayman95 said:
new update from the dev....HERE
Click to expand...
Click to collapse
Hy, how in hell can you access to "Apply Update from SDcard1" ? I only can access to ADB Sideload, and it fails at 47% ? I try almost all of you tutos, and all are failing and I still don't get why, as I do everything as suggested. How do you transfer your rom on to SDCARD1 to begin with ?
Eightkiller said:
Hy, how in hell can you access to "Apply Update from SDcard1" ? I only can access to ADB Sideload, and it fails at 47% ? I try almost all of you tutos, and all are failing and I still don't get why, as I do everything as suggested. How do you transfer your rom on to SDCARD1 to begin with ?
Click to expand...
Click to collapse
you need to change phone or get an exorcism....
are you on W10??if yes I can help you with team viewer if you want....
Forget this or any gsi rom if you wanna enable banking app and nfc. I get 'missing security keys' as warning when I try to enable it.
Pitty!!
dwensch said:
Forget this or any gsi rom if you wanna enable banking app and nfc. I get 'missing security keys' as warning when I try to enable it.
Pitty!!
Click to expand...
Click to collapse
some people pass security with magisk hide....
rayman95 said:
some people pass security with magisk hide....
Click to expand...
Click to collapse
Thanks for the tip. But I see Magisk has stopped developing MagiskHide? Guess I need an older apk?
Thanks for sharing the ROM.
rayman95 said:
1- Install LOS Recovery
Click to expand...
Click to collapse
Wich LOS Recovery should I install?
DanielTheHam said:
Thanks for sharing the ROM.
Wich LOS Recovery should I install?
Click to expand...
Click to collapse
its the boot.img on first post
Thanks for answearing.
So I installed the ROM and Open GApps but when I reboot to the system the screen goes white and then black. The phone is on because I can hear the lock/unlock sounds but I have no screen.
I also tried to only install the ROM but the same thing happened.
Do you have any solution for this or any idea what the problem could be?
DanielTheHam said:
Thanks for answearing.
So I installed the ROM and Open GApps but when I reboot to the system the screen goes white and then black. The phone is on because I can hear the lock/unlock sounds but I have no screen.
I also tried to only install the ROM but the same thing happened.
Do you have any solution for this or any idea what the problem could be?
Click to expand...
Click to collapse
from which base you start, miui, gsi???
did you a full wipe?? have you followed correctly the tuto with boot and vendor, then flashed with recovery??
if not succeed, you can try GSI who is maybe easier to flash
rayman95 said:
from which base you start, miui, gsi???
did you a full wipe?? have you followed correctly the tuto with boot and vendor, then flashed with recovery??
Click to expand...
Click to collapse
The first try was from Pixel Experience Plus 11.0 v313 GSI and the second one from MIUI 12.0.5 Global.
I flashed the boot and vendor, went to recovery and did a factory reset and finally I flashed the ROM and OpenGApps using adb sideload.
rayman95 said:
if not succeed, you can try GSI who is maybe easier to flash
Click to expand...
Click to collapse
I used Pixel Experience Plus for 2 weeks and I really liked it but there was a really annoying problem with the vibration so I decided to try this ROM.
I tried the rom. Everything works well. GCam also works. ANX camera doesnt work though.
amit kattal said:
I tried the rom. Everything works well. GCam also works. ANX camera doesnt work though.
Click to expand...
Click to collapse
Can you try with a wired headset and USB-C adapter if you can change volume on the cable..
Thanks

[RECOVERY][TWRP][UNOFFICIAL] TWRP recovery 3.6.1_11-0

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
TWRP recovery 3.6.1 for lancelot​(redmi 9 | lancelot/galahad)​
Code:
I am not responsible for your brick devices.
The recovery is fully working and has been tested.
If you encounter a problem, write here, maybe they will help you.
Before you accuse me of doing something wrong, take a look at how you use your smartphone.
You don't need to blame me for turning your device into a brick with my recovery, it's not my fault.
Attention!​The recovery is fully operational, it can make backups, install backups, it was tested only on custom Roms, but not on MIUI, but it should also work there.
Install:
To install, simply flash img to the recovery section and then reboot.
If you want to flash via fastboot, do the following:
fastboot --disable-verity --disable-verification flash vbmeta your_name_vbmeta.img
fastboot erase recovery
fastboot flash recovery your_name_recovery.img
fastboot reboot recovery
After that, you will find yourself in a new recovery.
Be careful when flashing!
Version Information
Status: Stable
Changelog:
Spoiler
24.03.2022
- inital build
- mtp not worked (For full operation, flash the ROM again through a new recovery!)
downloads:
Mega | GDrive
Information:
TWRP recovery for lancelot/galahad | redmi 9
Contributors
Furry__wolf
Credits:
TheGame455
Randomas3000
zubairk22oct
GADGETNiK
ExpressLuke
Source code
https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp
https://github.com/Redmi-MT6768/omni_device_xiaomi_lancelot
Hi,
I'm currently on MIUI V12.5.4.0.RJCEUXM. I follow your instructions, flash vbmeta, erase, etc., but TWRP is still replaced by MIUI recovery after reboot to system. I can reboot to recovery directly from fastboot, but then /sdcard contains folders with weird names. I guess it is encrypted.
My goal is to create IMEI backup, but I'm afraid to run imei-backup.zip, when /sdcard is not proper. I have tried SHRP with the same results.
I have 2 questions:
- Is there alternative of imei-backup, that saves data to external SD or USB-OTG?
- If I use this TWRP to install LineageOS or CrDroid, would I get normal access to /sdcard?
popej said:
Hi,
I'm currently on MIUI V12.5.4.0.RJCEUXM. I follow your instructions, flash vbmeta, erase, etc., but TWRP is still replaced by MIUI recovery after reboot to system. I can reboot to recovery directly from fastboot, but then /sdcard contains folders with weird names. I guess it is encrypted.
My goal is to create IMEI backup, but I'm afraid to run imei-backup.zip, when /sdcard is not proper. I have tried SHRP with the same results.
I have 2 questions:
- Is there alternative of imei-backup, that saves data to external SD or USB-OTG?
- If I use this TWRP to install LineageOS or CrDroid, would I get normal access to /sdcard?
Click to expand...
Click to collapse
Use another recovery. So that it is not replaced by this archive
popej said:
Hi,
I'm currently on MIUI V12.5.4.0.RJCEUXM. I follow your instructions, flash vbmeta, erase, etc., but TWRP is still replaced by MIUI recovery after reboot to system. I can reboot to recovery directly from fastboot, but then /sdcard contains folders with weird names. I guess it is encrypted.
My goal is to create IMEI backup, but I'm afraid to run imei-backup.zip, when /sdcard is not proper. I have tried SHRP with the same results.
I have 2 questions:
- Is there alternative of imei-backup, that saves data to external SD or USB-OTG?
- If I use this TWRP to install LineageOS or CrDroid, would I get normal access to /sdcard?
Click to expand...
Click to collapse
You can backup the whole flash using the instructions provided in this thread.
The problem with restoring recovery is because you haven't rooted (via magisk) the device after flashing recovery. That's why the phone restores the recovery. IMEI (and other numbers like MACs) sits on a dedicated partition, so you can back the partition without having access to the data partition. Currently TWRP is unable to decrypt data when A12+ is used.
Thanks for your advice.
I'm on A11 MIUI. I didn't expect problems with encryption, but maybe it is MIUI problem.
I have made a backup to microSD with SHRP. SHRP can read partitions used for IMEI. For some reasons I couldn't make backup with TWRP.
I forgot about Magisk. With Magisk SHRP stay permanently. Probably tweak in SHRP or zip provided by OP can do the same, but I haven't tested.
My question is if I can format data and install custom A11 system without worrying about encryption?
When you format the data partition, the system will encrypt it again with the fist boot after flashing the ROM.
My Redmi 9 is on Pixel Experience Plus 12.1 with Pixel Experience recovery. Bad battery drain on idle so I want to try crDroid or PixelPlus.
Can I install this version of TWRP over Pixel Experience recovery? I want to install via Fastboot. I am already on Pixel Experience recovery so do I need to issue :
fastboot --disable-verity --disable-verification flash vbmeta your_name_vbmeta.img
or can I just go:
fastboot erase recovery
fastboot flash recovery your_name_recovery.img
fastboot reboot recovery
dataworx said:
My Redmi 9 is on Pixel Experience Plus 12.1 with Pixel Experience recovery. Bad battery drain on idle so I want to try crDroid or PixelPlus.
Can I install this version of TWRP over Pixel Experience recovery? I want to install via Fastboot. I am already on Pixel Experience recovery so do I need to issue :
fastboot --disable-verity --disable-verification flash vbmeta your_name_vbmeta.img
or can I just go:
fastboot erase recovery
fastboot flash recovery your_name_recovery.img
fastboot reboot recovery
Click to expand...
Click to collapse
Use a better full installation using vbmeta
Furry__wolf said:
Use a better full installation using vbmeta
Click to expand...
Click to collapse
Thanks for the reply - so I can just copy the vbmeta.img file from my original MIUI rom, and use that? Or does it need to be modified first?
dataworx said:
Thanks for the reply - so I can just copy the vbmeta.img file from my original MIUI rom, and use that? Or does it need to be modified first?
Click to expand...
Click to collapse
Use this vbmeta. It is patched for use on custom ROMs
Furry__wolf said:
Use this vbmeta. It is patched for use on custom ROMs
Click to expand...
Click to collapse
Thank you for your time and advice. I'll be able to tackle this tomorrow morning.
dataworx said:
Thank you for your time and advice. I'll be able to tackle this tomorrow morning.
Click to expand...
Click to collapse
No problem
I don't know if this is been asked before but after I flashed twrp recovery I noticed that on twrp internal memory doesn't show as it normal, can't access anythin, is there a way to fix that? (Lancelot)
hi iam install lineage os 18.1 twrp version is 3.5.2 this rom is very good and smooth and best battery...but install anu A12 custom rom whit twrp 3.5.2 its very slow and bad ram performance
what is problem? twrp is down virsion for A12?
Hi Everyone, twrp will be gone after some time by the miui Recovery. Though I flashed the vbmeta from Post #10.
What am I doing wrong?
morfikov said:
When you format the data partition, the system will encrypt it again with the fist boot after flashing the ROM.
Click to expand...
Click to collapse
Hello and thanks for your work here friend .
any way to make TWRP or SHRP decrypt internal storage ? I know about formatting data to make internal storage available , but a way to decrypt after booting ? On Android 10 I had no problem but on Android 11 Decryption doesn't work .
hi, when I try flashing this on miui 13 and reboot to recovery, it just reboots and goes into system ui. I'm using redmi 9 prime
Can anyone help me installating twrp for my poco m2, i tried but either i fot stucked into boot loop or my old miui recovery somehow replaced the file , can anyone plz.... Help via deskshare or any other way,
Vedant2 said:
Can anyone help me installating twrp for my poco m2, i tried but either i fot stucked into boot loop or my old miui recovery somehow replaced the file , can anyone plz.... Help via deskshare or any other way,
Click to expand...
Click to collapse
I had the same problem that I would fastboot flash the recovery, but still MIUI recovery would come up instead. You need to enter fastboot mode using Power+VolDown buttons and no cable connected, not via "adb reboot fastboot".
What tricked me is that (at least on MIUI 13) there are two fastboot modes.
When doing "abd reboot fastboot", the screen shows "FASTBOOTD" in BLUE letters. In this fastboot mode, "fastboot flash" finishes with "OKAY", but will actually do nothing.
When phone is off and you start it by pressing POWER + VOL_DOWN buttons, you get "FASTBOOT" (no D) in ORANGE letters. Only this fastboot will actually flash a new recovery!
It also prints "USB downloading..." on screen.

Categories

Resources