Mi A1 to Mi 5X and versa Repartitioning - Xiaomi Mi A1 Questions & Answers

Hi all ..
I was thinking that the only difference between the 2 devices is the partitions setup .. so, if there were a script to adjust the partitions before flashing the other ROM it should work ..
Or even a script to make the device has both needed list of partitions available ( with the loss of a few extra space )
Steps for Mi A1 should be :
Unlock bootloader
Flash custom recovery
Run Repartitioning from A1 to 5X
Push 5X recovery and Bootloader
Flash 5x Official ROM
Done.
Note: I have done something similar to HTC Desire about 4 years ago and it worked fine

Would be interested in that repartition script

This article might be helpful ..
https://www.xda-developers.com/curr...o-receive-android-ns-seamless-update-feature/

Why not install Mi5x ROM on one of the two available partition instead?

jack_21 said:
Why not install Mi5x ROM on one of the two available partition instead?
Click to expand...
Click to collapse
This won't work.
Mi 5X official ROM is expecting a certain partition structure that is set for Mi 5X but not for Mi A1. For example, it is expected a "/system" and a "/recovery" partition .. but instead in Mi A1, you have 2 system partitions "/system_a" and "/system_b" .. so you can't just flash it directly .. some modification has to be done ..
First option is customizing: You get the official ROM, and adjust it to work on the A/B structure .. and vice versa, get the stock Mi A1 official ROM and edit it to work on old normal partition structure (which is already done, and is ready for 5X as we speak).
Second option, is the one am asking about above .. if we could repartition the devices itself, and use the Ready software from Xiaomi and Google without customizing ..
Yet am not sure if that is possible and doable or not, hence am asking ..
anyways, am hoping it is .. and waiting for a skilled developer to purchase the device and give it a try ..
or for Xiaomi and Google to provide a good solution ..
Peace

KhaledAbdo said:
This won't work.
Mi 5X official ROM is expecting a certain partition structure that is set for Mi 5X but not for Mi A1. For example, it is expected a "/system" and a "/recovery" partition .. but instead in Mi A1, you have 2 system partitions "/system_a" and "/system_b" .. so you can't just flash it directly .. some modification has to be done ..
First option is customizing: You get the official ROM, and adjust it to work on the A/B structure .. and vice versa, get the stock Mi A1 official ROM and edit it to work on old normal partition structure (which is already done, and is ready for 5X as we speak).
Second option, is the one am asking about above .. if we could repartition the devices itself, and use the Ready software from Xiaomi and Google without customizing ..
Yet am not sure if that is possible and doable or not, hence am asking ..
anyways, am hoping it is .. and waiting for a skilled developer to purchase the device and give it a try ..
or for Xiaomi and Google to provide a good solution ..
Peace
Click to expand...
Click to collapse
Will Mi A1 get project treble?

nilkanth.marshiwane said:
Will Mi A1 get project treble?
Click to expand...
Click to collapse
I do hope so ..

Miui on mi a1
Anyone try this

You can repartition the device easily. Just flash the factory image in EDL mode via MiFlash, it will write partition table.
But I do NOT recommend this unless:
1) You first make a FULL BACKUP of ALL partitions with EMMCDL tool. This will backup all the stuff that cannot be recovered with a factory flash (e.g. IMEI)
2) You are willing to disassemble the device to get testpoints access to get device out of diagnostic mode and into QDFlash mode if the device gets a semi-hard brick.
I know this for a fact because I manually repartitioned my device while working on Project Treble, which worked fine, but then when I messed around with GPT table some more I got a hard brick. Upon flashing A1 firmware via EDL mode once I succeeded in testpoints method, I got stock partition table back, then I restored my EMMCDL backup.
So, if anyone is daring enough and has the time, you could just try flashing 5x firmware in EDL mode. But I'm pretty sure someone already tried this and it resulted in the firm-brick I speak of.

CosmicDan said:
You can repartition the device easily. Just flash the factory image in EDL mode via MiFlash, it will write partition table.
But I do NOT recommend this unless:
1) You first make a FULL BACKUP of ALL partitions with EMMCDL tool. This will backup all the stuff that cannot be recovered with a factory flash (e.g. IMEI)
2) You are willing to disassemble the device to get testpoints access to get device out of diagnostic mode and into QDFlash mode if the device gets a semi-hard brick.
I know this for a fact because I manually repartitioned my device while working on Project Treble, which worked fine, but then when I messed around with GPT table some more I got a hard brick. Upon flashing A1 firmware via EDL mode once I succeeded in testpoints method, I got stock partition table back, then I restored my EMMCDL backup.
So, if anyone is daring enough and has the time, you could just try flashing 5x firmware in EDL mode. But I'm pretty sure someone already tried this and it resulted in the firm-brick I speak of.
Click to expand...
Click to collapse
Do you think this could work from mi 5X to mi A1?

jaozze said:
Do you think this could work from mi 5X to mi A1?
Click to expand...
Click to collapse
do you have repartition script for Mi A1? have used project treble & not getting any script to repartition it

Related

How to flash both system partitions in Mi A1?

I know simple answer is just flash it with mi flash tool but i have problem with that tooo.
My Mia1 was rooted with @JamFlux prerooted system image and i was on oreo 8.1.10
now after availability of stock fastboot files i just flashed and locked my bootloader and i intend to keep it that way.
problem is after flashing new image through mi flash tool and locking bootloader i started from scratch without restore option.
i installed BHIM app, and that app still says my device is rooted
i dont know what is problem but my guess is that old rooted oreo build is still there.
so how do i find that which partition is active and how do i proceed that everything is formatted and i dont have to deal with that error again.
Please have a look here: https://forum.xda-developers.com/mi-a1/how-to/ota-official-fastboot-image-n2g47h-7-12-t3728929
i know that and even i checked .bat file from official image which flashes both partition. but i am still not able to solved device rooted prompt that is coming from app best part is no other app is able to detect root.

MI A1 worked 3 days

Hi all,
Last week i received my new MI A1. IT worked perfectly during 3 days, with 2 OTA updates to Android 8. (December and January OTA i remember)
Then, one night my MI A1 just shutdown itself without doing anything (i was sleeping)
And in the morning i tryed to reboot it but i had everytime a freeze and reboot when it asked to enter my PIN CODE. (i tryed without my SIM it was the same, big freeze and reboot)
Si i went to the MI website (xiaomifirmware.com/roms/download-official-roms-xiaomi-mi-a1/) to download the XiaoMiFlash Tools and the ROM (Android 8.0.0 Oreo (OPR1.170623.026.8.1.10) | Fastboot)
It worked to flash the MI A1 but i cannot start the phone, i had the Screen ENCRYPTION UNSUCCESFULL
When i clicked to Resert the phone, it reboot and came to the same screen. (I can host a video if ou want to see)
I've tryed to use FASTBOOT Unlock / TWRP 3.1 to wipe the system but still the same.
Do you have any idea please ?
Thank you in advance for your help
Mathieu
mdesmettre said:
Hi all,
Last week i received my new MI A1. IT worked perfectly during 3 days, with 2 OTA updates to Android 8. (December and January OTA i remember)
Then, one night my MI A1 just shutdown itself without doing anything (i was sleeping)
And in the morning i tryed to reboot it but i had everytime a freeze and reboot when it asked to enter my PIN CODE. (i tryed without my SIM it was the same, big freeze and reboot)
Si i went to the MI website (xiaomifirmware.com/roms/download-official-roms-xiaomi-mi-a1/) to download the XiaoMiFlash Tools and the ROM (Android 8.0.0 Oreo (OPR1.170623.026.8.1.10) | Fastboot)
It worked to flash the MI A1 but i cannot start the phone, i had the Screen ENCRYPTION UNSUCCESFULL
When i clicked to Resert the phone, it reboot and came to the same screen. (I can host a video if ou want to see)
I've tryed to use FASTBOOT Unlock / TWRP 3.1 to wipe the system but still the same.
Do you have any idea please ?
Thank you in advance for your help
Mathieu
Click to expand...
Click to collapse
How did you flash the stock rom?
What option did you choose? Wipe all and lock? Or?
Hi
I tried with full flash And full flash with lock
mdesmettre said:
Hi
I tried with full flash And full flash with lock
Click to expand...
Click to collapse
Can you try with a different firmware? Android Nougat?
Hi,
I've tested with Nougat (tissot_images_7.8.23_20170823.0000.00_7.1_61cf97d794) as flash and lock.
and that doesn't work. Still in like a bootloop.
i've tried also to go through twrp 3.2.1 but a a little bit lost.
Which FULL ROM do i need to take as ZIP file in TWRP ?
Also, do i need a SD CARD to completly reinstall Android ?
thanks in advance.
mdesmettre said:
Hi,
I've tested with Nougat (tissot_images_7.8.23_20170823.0000.00_7.1_61cf97d794) as flash and lock.
and that doesn't work. Still in like a bootloop.
i've tried also to go through twrp 3.2.1 but a a little bit lost.
Which FULL ROM do i need to take as ZIP file in TWRP ?
Also, do i need a SD CARD to completly reinstall Android ?
thanks in advance.
Click to expand...
Click to collapse
Can you repeat your question about twrp?
You can try to flash lineage os 15.1 with latest twrp-oreo and see if that works.
varben said:
Can you repeat your question about twrp?
You can try to flash lineage os 15.1 with latest twrp-oreo and see if that works.
Click to expand...
Click to collapse
And do i need a MICROSD CARD to flash lineage ?
mdesmettre said:
And do i need a MICROSD CARD to flash lineage ?
Click to expand...
Click to collapse
Nope. Lineage ROM can be stored in internal storage and flashed. Also, if you aren't able to solve the encryption issue, I suggest you to go to your nearest service center and get help. They do it for free, even if you're rooted or modified the system.
guy_infinity said:
Nope. Lineage ROM can be stored in internal storage and flashed. Also, if you aren't able to solve the encryption issue, I suggest you to go to your nearest service center and get help. They do it for free, even if you're rooted or modified the system.
Click to expand...
Click to collapse
Thanks for the answer.
I cannot go to service center because i'm in France.
I've tryed to flash Lineage15.1 but doesnt work.
May be an idea, i've seen in TWRP that i don't have a cache partition. Is that normal ? If not, how do i create it ?
Flash your device from edl mode
If doesnt work it seems that your emmc is faulty
Many huawei phones with faulty emmc shows such this encryption failed message and by changing emmc become functional

[RECOVERY][3.4.0-14][toco]Unofficial TWRP Xiaomi Mi Note 10 Lite (TEST)

Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
Code:
#include <std_disclaimer.h>
/*
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/
Features:
- Decryption works
- Otg works
- Flash Rom works
- F2FS support
- Fastboot boot command support
Not working:
- Fastbootd
- Adb sideload
- Backup restore and image flash (system-vendor-product)
- Android 11 fully support
Download:
TWRP 3.4.0-14 Unofficial by mauronofrio
TWRP 3.4.0-13 Unofficial by mauronofrio
To Flash the TWRP:
Code:
fastboot flash recovery twrp-3.3.1-xx-xxxxxx-mauronofrio.img
Then reboot in TWRP manually or using a fastboot command.
Code:
fastboot boot twrp-3.3.1-xx-xxxxxx-mauronofrio.img
or
Code:
fastboot oem reboot-recovery
REMEMBER: is important that from fastboot you directly go in TWRP mode or the TWRP will be overwritten.
Reccomended ADB and Fastboot binaries:
Adb and Fastboot Installer
Source code:
https://github.com/Teamwin/android_bootable_recovery
https://github.com/mauronofrio/android_device_xiaomi_toco
My Telegram TWRP Support Group:
https://t.me/twrp_Mauronofrio
Donations:
Credits:
- Thanks to @bigbiff and @Captain_Throwback for the hard work on this android 10 TWRP
Thanks to all testers on the Telegram Group
Created 2020-05-29
Oooo finally... Gonna test this out when I get home later.
Just to check, what happens if i flash and i get bootloop? How do I recover? By flashing the entire MIUI rom from official site?
Okay Im sure im being a noob... But err...
I wasnt able to mount data...
I tried to mount and install MAGISK via USB-OTG mounting and i get permission denied for system and vendor (and also Data unable to mount)
EDIT2: Oh cool... despite the errors Magisk got installed! Nice!
Hello, will there be more development for this terminal? and the note 10 lite thread? Thank you
Did anyone boot it?
hello, work boot it?
fastboot boot twrp.XXXX.img
StanGumn said:
hello, work boot it?
fastboot boot twrp.XXXX.img
Click to expand...
Click to collapse
Yes
iron maiden said:
Hello, will there be more development for this terminal? and the note 10 lite thread? Thank you
Click to expand...
Click to collapse
Let us hope so.
I would like to apologize in advance as I am a noob when it comes to the recent changes made by Google to android. So on a lot of the recent devices launched with android 10, an essential step before flashing Magisk is to disable the vbmeta partition by flashing the "vbmeta.img" using a fastboot command with the --disable-verify and --disable-verification argument. My question is that is the "vbmeta.img" modified by developers or is this the same identical file found in the stock firmware files?
I do apologize if this is the wrong thread but there's not many resources online or even on xda for this device.
Why its in mi note 10 general section? Isnt right to do separately section for mi note 10 lite since there is nothing in common just name.
Reanimax said:
Why its in mi note 10 general section? Isnt right to do separately section for mi note 10 lite since there is nothing in common just name.
Click to expand...
Click to collapse
ask to xda to make a dedicated section and i will ask to move this thread
mauronofrio said:
ask to xda to make a dedicated section and i will ask to move this thread
Click to expand...
Click to collapse
Yes. You right about it.
Kediraksith said:
Oooo finally... Gonna test this out when I get home later.
Just to check, what happens if i flash and i get bootloop? How do I recover? By flashing the entire MIUI rom from official site?
Okay Im sure im being a noob... But err...
I wasnt able to mount data...
I tried to mount and install MAGISK via USB-OTG mounting and i get permission denied for system and vendor (and also Data unable to mount)
EDIT2: Oh cool... despite the errors Magisk got installed! Nice!
Click to expand...
Click to collapse
Nowadays you have to unmount Data and mount vendor (just in case for Vendor) before flashing Magisk. Mounting data does not let Magisk install via TWRP. Follow the this process, same install process with the Mi Note 10, and assuming the Mi note 10 Lite. The reason why is because of encryption.
Update: 5/16/2020
1) Flash lastest TWRP unofficial 3.31-4 mauronofrio using Command prompt using the - fastboot flash recovery [XXXX].img. Note: it's easier to just rename the recover image to "twrp"
2) Then - fastboot boot [XXXX].img to reboot into TWRP recovery.
3) In my experience for thr Mi Note 10 that is, the reboot to RECOVERY did not happened, so instead i pressed - volume up and power button at the same time for thr phone to reboot until you see the boot splash screen, hold the two buttons for another 3 seconds ... and then let go of power button and then TWRP recovery will show up.
4) Ok...so first things first... flash the VBMETA PATCHER like the OP says on first page --> that way you don't lose TWRP after flashing the Rom and MAGISK. After install, reboot to RECOVERY. ***This is only if OP asks to flash VBMETA PATCHER, otherwise skip to Step 5***
5) Now....go to FORMAT DATA (Warning: DON'T use advanced wipe)... Instead, go to the FORMAT DATA, type in yes and press ok. Then go back to main menu, and reboot to RECOVERY again.
6) Now you can access your internel memory when connecting to USB... You can import the two neccesary files --> Xiaomi.EU and MAGISK 20.4. Now Flash the Rom and when flash MAGISK, make sure you unmount DATA and mount VENDOR to avoid flash error. After unticking DATA, you can now install Magisk.
7) Now you can go to REBOOT, and press SYSTEM, and the phone will boot to Xiaomi EU 11 or 12, etc. just follow this process and enjoy your ROM. ?
Note: When updating, flash EU rom and Magisk, dont forget to unmount Data when flashing Magisk. You can probably disable decryption because that is why you can't mount Data when flashing Magisk. **Just don't ask me about it because I normally don't flash Disable Decyption often.
Wmateria said:
Nowadays you have to unmount Data and mount vendor (just in case for Vendor) before flashing Magisk. Mounting data does not let Magisk install via TWRP. Follow the this process, same install process with the Mi Note 10, and assuming the Mi note 10 Lite. The reason why is because of encryption.
1) Flash lastest TWRP unofficial 3.31-4 mauronofrio using Command prompt using the - fastboot flash recovery [XXXX].img. Note: it's easier to just rename the recover image to "twrp"
2) Then - fastboot boot [XXXX].img to reboot into TWRP recovery.
3) In my experience for thr Mi Note 10 that is, the reboot to RECOVERY did not happened, so instead i pressed - volume up and power button at the same time for thr phone to reboot until you see the boot splash screen, hold the two buttons for another 3 seconds ... and then let go of power button and then TWRP recovery will show up.
4) Ok...so first things first... flash the VBMETA PATCHER like the OP says on first page --> that way you don't lose TWRP after flashing the Rom and MAGISK. After install, reboot to RECOVERY.
5) Now....go to FORMAT DATA (Warning: DON'T use advanced wipe)... Instead, go to the FORMAT DATA, type in yes and press ok. Then go back to main menu, and reboot to RECOVERY again.
6) Now you can access your internel memory when connecting to USB... You can import the two neccesary files --> Xiaomi.EU and MAGISK 20.4. Now Flash the Rom and when flash MAGISK, make sure you unmount DATA and mount VENDOR to avoid flash error. After unticking DATA, you can now install Magisk.
7) Now you can go to REBOOT, and press SYSTEM, and the phone will boot to Xiaomi EU 11 or 12, etc. just follow this process and enjoy your ROM.
Note: When updating, flash EU rom and Magisk, dont forget to unmount Data when flashing Magisk. You can probably disable decryption because that is why you can't mount Data when flashing Magisk. **Just don't ask me about it because I normally don't flash Disable Decyption often.
Click to expand...
Click to collapse
this post is gold! Coming back to xiaomi and twrp after 2 years with a huawei, hope to go smooth again with root magisk etc!
cerme said:
this post is gold! Coming back to xiaomi and twrp after 2 years with a huawei, hope to go smooth again with root magisk etc!
Click to expand...
Click to collapse
The root and flash process is basically the same process as the Mi 9T/K20, Mi Max 3, Mi Note 10 since decryption is now a common thing with Android 10... except for the VBmeta.zip, which is new and necessary to flash, as long as you follow the directions..you'll be fine.
Wmateria said:
The root and flash process is basically basically the same process as the Mi 9T/K20, Mi Max 3, Mi Note 10 since decryption is now a common thing with Android 10... except for the VBmeta.zip, which is new and necessary to flash, as long as you follow the directions..you'll be fine.
Click to expand...
Click to collapse
I understand. Last experience ti flash etc was on a mi5, so I have a little bit of rust with that. I do think that following instructions i shouldn't face major difficulties
cerme said:
I understand. Last experience ti flash etc was on a mi5, so I have a little bit of rust with that. I do think that following instructions i shouldn't face major difficulties
Click to expand...
Click to collapse
Same here, i was on the Mi 9T before, I didnt understood the whole new flashing process and carefully updating from EU Rom to AOSP Roms and back, I think i was messing with with thwe wipe and change partition feature (f2fs to ext 4 with an EU Rom) - then the Mi 9T bricked big time. Never recovered after that, luckily got it refunded for it but not many may have that second chance. After learning how to flash propeely and root, ect. I try to help out here when needed and ask too. I just got my Mi Note 10 2 weeks ago and rooted a week ago. So if anything, am willing to help out and repeat the following flash process or any changes in the future and feedback on future Roms.
Was thinking about which rom to use... does xiaomi.eu is stille faster with providing updates? what about the situation with OTA with that.
Now I have the phone with global rom, I want at least flash the EEA rom. But I also know that at some point i want to root, install magisk and get nice features. Still don't want to update manually everytime for an update...
will be watching this thread with much interest..
I recently bought this device (Global version) for use here in Australia.
my first time owning a Xiaomi - quite happy with it so far.
would be nice to have the themeing stuff work properly - I have used MIUI based ROMs back a LOoonggg time ago, in the days of the Nexus S and Galaxy Nexus etc.
used to have a new ROM flashed every couple of days lol, back then. But recent years I've stopped all that, no cool ROMs no snazzy kernels TWRP no nothing not even root lol, very boring!
anyway thanks for posting I hope to try this sometime soon
Hello is there any Eu rom for Mi note 10 lite?
Alisiddiqui75 said:
Hello is there any Eu rom for Mi note 10 lite?
Click to expand...
Click to collapse
yes, there is the EEA ROM you can find on miui website. You can flash it after unlocking bootloader with miFlash
Alisiddiqui75 said:
Hello is there any Eu rom for Mi note 10 lite?
Click to expand...
Click to collapse
I'm not sure if you mean the official ROM or xiaomi.eu.
The link to the official EEA(EU) ROM:
Recovery: https://bigota.d.miui.com/V11.0.7.0.QFNEUXM/miui_TOCOEEAGlobal_V11.0.7.0.QFNEUXM_7926bf9c02_10.0.zip
Fastboot: https://bigota.d.miui.com/V11.0.7.0...EUXM_20200508.0000.00_10.0_eea_4eb1c694c9.tgz
I have yesterday seen a xiaomi.eu Stable build for toco which is based on Global Stable ROM:
https://sourceforge.net/projects/xi...e10LITE_V11.0.4.0.QFNMIXM_v11-10.zip/download
I can not promise that it's working.

Xiaomi Mi 9T Wiped Of All Software And Data Via TWRP But Can't Flash Pixel Experience

I accidentally wiped everything on my device when following a not-so-informative youtube video, it was my own fault for not questioning their steps at all, and I was going to install an update to Pixel Experience as it wasn't letting me do it normally. I have TWRP installed and I can boot into either that or fastboot manually but it won't let me transfer files from my PC onto my Xiaomi Mi 9T via Sideload, Mount, Drag and Drop, MTP is enabled and no other means I can think of work. Everything on my phone is able to be replaced as it was all in the cloud but I need my phone at the moment and from the research I've done I believe this should be a straightforward fix however, since I can't get the software onto my phone I can't boot to it. It also won't let me transfer the firmware required and so I get ERROR: 7 and "This package requires baseband from atleast V12.0.2.0.QFJMIXM. Please upgrade firmware and retry!" My PC recognises the phone is connected and can view the files on it but every time I try to drag anything into it it looks like it's going to work and then it just stops.
If you have any other information you require to assist me I will try to be as helpful as possible however, I am quite new to this so using laymens terms would be preferable.
Did you read the instructions on the pixel experience topic? First you need to flash the firmware package for your device from here: https://xiaomifirmwareupdater.com/firmware/davinci/
Then flash the rom and format data. This should work.
I installed pixel experience this week and so far it is going well, I had to update from miui 11.0.1.0 android 9 to miui 12.0.3.0 so that ALL the system will be updated to android 10, and then I proceeded to install the pixel experience via twrp. Try to install Miui 11.0.1.0 and configure it, then from the system settings you look for the latest update, make sure the system has been updated to Android 10 before installing pixel experience. Try to use xiaomi flash tool to make a clear install
RedNas74 said:
Did you read the instructions on the pixel experience topic? First you need to flash the firmware package for your device from here: https://xiaomifirmwareupdater.com/firmware/davinci/
Then flash the rom and format data. This should work.
Click to expand...
Click to collapse
I have that downloaded and I tried putting it onto my phones internal storage and sideloading it but I couldn't get it to work.
ChristianKerr21 said:
I have that downloaded and I tried putting it onto my phones internal storage and sideloading it but I couldn't get it to work.
Click to expand...
Click to collapse
After "Format Data", you need to reboot your phone in TWRP to fix that.
Micdu70 said:
After "Format Data", you need to reboot your phone in TWRP to fix that.
Click to expand...
Click to collapse
THANK YOU SO MUCH!! You are a god-sent legend!

Stuck in fastboot after flashboot flash recovery twrp.img

Hello,
I tried to root my 9T(model M2010JI9SG) following this guide:
I used twrp from this link:
Xiaomi Mi 9T / Redmi K20
Disclaimer:Team Win strives to provide a quality product. However, it is your decision to install our software on your device. Team Win takes no ...
twrp.me
version 3.5.2_9-0
after I flashed twrp, I got into fastboot mode, which I can't leave.
I tried doing volume up +power, volume down+ power, and all the buttons as well, nothing worked, every time it goes back to fastboot,
I tried to redo everything, still didn't fix, and tried to flash stock via mi tool, didn't work too.
Please help me fix that,
Thanks!!!
Shahaf said:
Hello,
I tried to root my 9T(model M2010JI9SG) following this guide:
I used twrp from this link:
Xiaomi Mi 9T / Redmi K20
Disclaimer:Team Win strives to provide a quality product. However, it is your decision to install our software on your device. Team Win takes no ...
twrp.me
version 3.5.2_9-0
after I flashed twrp, I got into fastboot mode, which I can't leave.
I tried doing volume up +power, volume down+ power, and all the buttons as well, nothing worked, every time it goes back to fastboot,
I tried to redo everything, still didn't fix, and tried to flash stock via mi tool, didn't work too.
Please help me fix that,
Thanks!!!
Click to expand...
Click to collapse
OMG
You should first of all know your phone model
"Redmi 9T" reads as different name than "Mi 9T", isn't it?
Hence you MUST NEVER flash TWRP for Redmi K20/Mi 9T (guide clearly says it is for that phone, check the big picture in your post) to your Redmi 9T
oh damn, I can fix that somehow?
Shahaf said:
oh damn, I can fix that somehow?
Click to expand...
Click to collapse
Check on twrp.me is there TWRP for your Redmi 9T
Or download the so called Fastboot/TGZ ROM for your M2010JI9SG, extract recovery.img (stock Recovery) and flash it back over the wrong TWRP
For more details search on XDA for Redmi 9T subforum (this one is for Mi 9T), there should be users and freaks who can better help you for the same phone
zgfg said:
Check on twrp.me is there TWRP for your Redmi 9T
Or download the so called Fastboot/TGZ ROM for your M2010JI9SG, extract recovery.img (stock Recovery) and flash it back over the wrong TWRP
For more details search on XDA for Redmi 9T subforum (this one is for Mi 9T), there should be users and freaks who can better help you for the same phone
Click to expand...
Click to collapse
Thank you, I will check with them!
Shahaf said:
Thank you, I will check with them!
Click to expand...
Click to collapse
Here you can find firmwares for lime:
Xiaomi Firmware Updater
The ultimate script that provides firmware packages for Xiaomi devices.
xiaomifirmwareupdater.com
You should (?) know what was your installed firmware, download the same Fastboot/tgz and extract (TGZ=Tar+GZIP) your original stock recovery.img, and flash it from Fastboot (just like you flashed the wrong TWRP)
You could also use MiFlash tool to flash the whole firmware, but it must be not needed
zgfg said:
Here you can find firmwares for lime:
Xiaomi Firmware Updater
The ultimate script that provides firmware packages for Xiaomi devices.
xiaomifirmwareupdater.com
You should (?) know what was your installed firmware, download the same Fastboot/tgz and extract (TGZ=Tar+GZIP) your original stock recovery.img, and flash it from Fastboot (just like you flashed the wrong TWRP)
You could also use MiFlash tool to flash the whole firmware, but it must be not needed
Click to expand...
Click to collapse
It worked!!! now my device is working, now in order to root, which twrp should I use?
Shahaf said:
It worked!!! now my device is working, now in order to root, which twrp should I use?
Click to expand...
Click to collapse
You don't need TWRP. Extract boot.img (like you extracted recovery.img). Install Magisk apk and use the method Install (Magisk), then Select and patch your boot.img (do not tick Recovery option)
Find the patched img in Download folder, transfer to PC and flash from Fastboot - this time to boot partition, not to recovery partition
If anything goes wrong, flash back the stock boot img
Btw, on that Redmi 9T, do you have A12 (or A11 or what) and is it MTK chipset?
Generally, use Magisk Stable v23 from TJW:
Magisk/README.MD at master · topjohnwu/Magisk
The Magic Mask for Android. Contribute to topjohnwu/Magisk development by creating an account on GitHub.
github.com
But if A12 or MTK and if it ain't work, you can try Magisk Alpha ('pilot' builds for the new Magisk to be soon? released)
zgfg said:
You don't need TWRP. Extract boot.img (like you extracted recovery.img). Install Magisk apk and use the method Install (Magisk), then Select and patch your boot.img (do not tick Recovery option)
Find the patched img in Download folder, transfer to PC and flash from Fastboot - this time to boot partition, not to recovery partition
If anything goes wrong, flash back the stock boot img
Btw, on that Redmi 9T, do you have A12 (or A11 or what) and is it MTK chipset?
Generally, use Magisk Stable v23 from TJW:
Magisk/README.MD at master · topjohnwu/Magisk
The Magic Mask for Android. Contribute to topjohnwu/Magisk development by creating an account on GitHub.
github.com
But if A12 or MTK and if it ain't work, you can try Magisk Alpha ('pilot' builds for the new Magisk to be soon? released)
Click to expand...
Click to collapse
I tried to do it, after I patched boot.img I transfered it to my PC and did fastboot boot boot_patched.img
it did ok on sending, but then failed on booting(unknown command), any fix for that?
Flash (not boot) a healthy un-patched stock "boot.img" that is signed with your ROM version to the device and see if that works.
Shahaf said:
I tried to do it, after I patched boot.img I transfered it to my PC and did fastboot boot boot_patched.img
it did ok on sending, but then failed on booting(unknown command), any fix for that?
Click to expand...
Click to collapse
fastboot boot xxx.img boots one time to the xxx.img
For flashing (permanently) to boot you need to use:
fastboot flash boot xxx.img
Before flashing the 'stock' or patched boot img, pls double check: compare your firmware name in Settings / My device against the fastbboot/tgz package you downloaded and extracted the boot.img from
Recovery images might be the same for several firmwares, but boot.img is more critical. If extracted from the wrong firmware, it will not be your real stock boot.img and will not boot
You can use this app (now when your phone boots) to download and look for the proper firmware:
MIUI Downloader - Apps on Google Play
MIUI upgrade app for Mi users.
play.google.com
Shahaf said:
It worked!!! now my device is working, now in order to root, which twrp should I use?
Click to expand...
Click to collapse
I would trust to the following thread on Xiaomi.eu forum, to find the suitable TWRP for your device.
Post #1, link to AFH, then scroll to lime (if that's the code name for your Redmi 9T):
[TWRP][RECOVERY] List of relevant recovery in one place
https://sourceforge.net/projects/recovery-for-xiaomi-devices/files/ I have compiled a list of relevant recovery in one place, i think it will be useful. Updates are monitored each day. Welcome, friends! How to install TWRP https://xiaomi.eu/community/threads/installing-a-custom-recovery.67841/
xiaomi.eu
Based on experience with my 9T I would pick
twrp-3.5.2_10-3-lime-brigudav.img
I.e., Xoaomi.eu provides weekly and stable firmwares that are usually well ahead of the official firmwares (on my Mi 9T, daily driver and businesses phone I was 9 months on their weeklies until I switched to their Stable two months ago)
The point is that Xiaomi.eu firmwares for most phones (I just checked, Redmi 9T is on the list) require TWRP to flash
That means if people recommend the TWRP as there, it nust be the right one
Once you have TWRP you can back up your boot partition. You will get boot.emmc.win and that will be your exact stock boot.img
You can still use the Patch and Flash method to install Magisk (as described you earlier), by patching that boot.emmc.win
zgfg said:
I would trust to the following thread on Xiaomi.eu forum, to find the suitable TWRP for your device.
Post #1, link to AFH, then scroll to lime (if that's the code name for your Redmi 9T):
[TWRP][RECOVERY] List of relevant recovery in one place
https://sourceforge.net/projects/recovery-for-xiaomi-devices/files/ I have compiled a list of relevant recovery in one place, i think it will be useful. Updates are monitored each day. Welcome, friends! How to install TWRP https://xiaomi.eu/community/threads/installing-a-custom-recovery.67841/
xiaomi.eu
Based on experience with my 9T I would pick
twrp-3.5.2_10-3-lime-brigudav.img
I.e., Xoaomi.eu provides weekly and stable firmwares that are usually well ahead of the official firmwares (on my Mi 9T, daily driver and businesses phone I was 9 months on their weeklies until I switched to their Stable two months ago)
The point is that Xiaomi.eu firmwares for most phones (I just checked, Redmi 9T is on the list) require TWRP to flash
That means if people recommend the TWRP as there, it nust be the right one
Once you have TWRP you can back up your boot partition. You will get boot.emmc.win and that will be your exact stock boot.img
You can still use the Patch and Flash method to install Magisk (as described you earlier), by patching that boot.emmc.win
Click to expand...
Click to collapse
it worked! thank you

Categories

Resources