Thank you for all the helpful information here.
I am trying to get a custom rom onto my 6gb/256gb Mi Mix (probably ViperOS or another). I am following the guide, but having some issues. This is my 1st Xiaomi device, and just 2nd time rooting a phone. It has the CN China rom as far as I know.
I have:
-Unlocked phone by request + miflash. Verified in cmd 'fastboot device-info'
-flashed TWRP (many different versions) some freeze the twrp recovery screen
-verified that 'oem unlocking' and 'usb debugging' are enabled
-tried flashing xiaomi.eu_multi_MIMix_8.7.26_v10-8.0, and Cardinal-AOSP-5.6.1-OREO-lithium-UNOFFICIAL-20180613-2209-treble, both give errors:
"e3004: This package is for device: lithium; this device is ."
"updater process ended with error: 7
Error installing zip file..."
also says 'no md5 file found', 'no file_contexts'
I read that it might be a twrp compatibility issue, I've tried the following versions:
twrp 3.2.1-1, 3.1.1-0, 3.1.0-0, 3.0.2-0, 3.2.1-raupe-blunden-15.1-updated, all freeze the touch screen
twrp by MrRaines, twrpSmarty, (both are the mi mix versions), seem to work fine
currently the phone boots to fastboot fine, but won't boot to the system.
first suggestion, install mi pcsuite to your computer.
second, flash your phone using miflash to miui rom version 8.5.24.
the fastboot rom : http://bigota.d.miui.com/8.5.24/lit...24_20180524.0000.00_8.0_global_3469133506.tgz
don't forget to choose "flash but don't relock the bootloader" script method.
after that, flash twrp again and try flash any custom rom you want.
I'm not having success with that method using miflash.
I flashed another stock rom last night through twrp (not 8.5.24) & the phone is booting fine.
When I try to use mi flash to flash 8.5.24 I get errors.
I downloaded a 8.5.24 fastboot rom that was a tgz file from your link
I installed mi suite (don't think I used it for anything), and mi flash.
I put the phone in fastboot, ran miflash, found the device, set file directory to the folder with the tgz fastboot rom, and got errors (first I think was "can not found file flash_all.bat")
then I tried unzipping the tgz. I was getting error "No such file or directory"
I tried renaming the downloaded rom to .tgz, it didn't help.
Right now the phone is running:
MIUI 9.6.1.0 Stable OAHCNFD
Android 8.0.0
I don't know how to flash or check which firmware it's on
When I use fastboot commands to boot into TWRP (MrRaines this time), I click wipe>format data>yes>reboot into fastboot>fastboot command boot into TWRP
move rom from computer to phone
in TWRP, click 'install'>leave 'zip signature verification' and 'reboot after installation is complete' unchecked> click 'swipe to confirm flash'> get response "ERROR 7"
I downloaded the Resurrection Remix rom & get a different error, "Could not find META-INF/com/google/android/update-binary' in the zip file ..."
[Solved]
Finally got something flashed to it (Pixel Experience).
If anyone has similar problems, I think it may have been that I was on the wrong firmware.
Here's basically what got it running:
-I was on 9.6.1.0 & had checked for updates through the phone's updater
-i enabled usb debugging, usb unlock, etc.
-i flashed twrp-3.2.1-raupe-blunden-15.1-updated
-in twrp i moved over firmware 8.7.5 for mi mix & flashed it (success)
-i moved over the Pixel Experience 8.1.0-2018-0728 & flashed it (success)
-i should have wiped data, cache, dalvik cache, vendor, & system but missed that step
- i rebooted & after a few minutes successfully booted into Pixel Experience
Related
I want to go back to MIUI 9 from custom ROM Pixel Experience (8.1.0). My device is Redmi 4X (Santoni)
1st option. (tried)
- I downloaded the MIUI ROM from here. http://en.miui.com/download-323.html
- I flashed this ROM through TWRP.
- The flashing process passed.
- But when I want to boot, it says "no OS. Want to continue reboot?"
- When I boot, it stuck on the boot logo.
2nd option. (tried)
- I downloaded the fastboot ROM and XiaoMi flash Tool from here. http://en.miui.com/a-234.html (Under Redmi 4X Santoni)
- I flash using "XiaoMi Flash Tool".
- XiaoMi Flash Tool detected my device.
- During flash, I got an error "no such file or directory".
So now I'm stuck. I can't go back to MIUI.
Only able to go to other Custom ROM.
Or do I need any other files?
Try this https://androidfilehost.com/?fid=962187416754468805
this is xiaomi.eu rom
try that
http://en.miui.com/thread-621761-1-1.html
Try to flash again without Wipe.
1. Wipe data,chache,dalvik
2. Flash ROM ,dont wipe
3. Try to reboot,( if u have notice no OS try to Flash ROm once more but dont wipe )
XanverSky said:
I want to go back to MIUI 9 from custom ROM Pixel Experience (8.1.0). My device is Redmi 4X (Santoni)
1st option. (tried)
- I downloaded the MIUI ROM from here. http://en.miui.com/download-323.html
- I flashed this ROM through TWRP.
- The flashing process passed.
- But when I want to boot, it says "no OS. Want to continue reboot?"
- When I boot, it stuck on the boot logo.
2nd option. (tried)
- I downloaded the fastboot ROM and XiaoMi flash Tool from here. http://en.miui.com/a-234.html (Under Redmi 4X Santoni)
- I flash using "XiaoMi Flash Tool".
- XiaoMi Flash Tool detected my device.
- During flash, I got an error "no such file or directory".
So now I'm stuck. I can't go back to MIUI.
Only able to go to other Custom ROM.
Or do I need any other files?
Click to expand...
Click to collapse
Use any miui recovery rom to flash thru twrp or if you dont have twrp recovery the use fastboot rom
Here some steps..
#1 Recovery method
1) download any santoni miui recovery rom(stable, dev, xiaomi.eu, miuipro)
2) go to twrp
3) wipe system, cache, dalvik cache, data
4) install downloaded rom
5) flash root ( supersu or magisk)
6) flash lazy flasher( its recommend for miui roms)
7) reboot
Wait for start (it will take 5-10 min to start)
#2 fastboot method
1) download fastboot rom ( global or developer )
2) move to pc or if you download on pc then extract in drive C: root directory
3) make sure folder dont have any space between name like "roms here"
It must be "roms"
4) install and open xiaomi tool or mi flash tool
5) choose directory of rom ( not images folder)
Main folder like "santoni_global_images_xxxxxx"
6) enable USB debugging (if your phone dont have any rom skip it )
7) then go to fastboot mode
8) choose directory of fastboot rom
9) flash then wait to success
Your phone will reboot after success wait for boot and start its also take 5-10 min to start
From my Redmi 4X using Tapatalk VIP
In Fastboot method where did you extracted the '.tgz' setup file. If you extracted it to other than c drive, repeat the process by extracting the setup file in to desktop.
Solution
XanverSky said:
I want to go back to MIUI 9 from custom ROM Pixel Experience (8.1.0). My device is Redmi 4X (Santoni)
1st option. (tried)
- I downloaded the MIUI ROM from here. http://en.miui.com/download-323.html
- I flashed this ROM through TWRP.
- The flashing process passed.
- But when I want to boot, it says "no OS. Want to continue reboot?"
- When I boot, it stuck on the boot logo.
2nd option. (tried)
- I downloaded the fastboot ROM and XiaoMi flash Tool from here. http://en.miui.com/a-234.html (Under Redmi 4X Santoni)
- I flash using "XiaoMi Flash Tool".
- XiaoMi Flash Tool detected my device.
- During flash, I got an error "no such file or directory".
So now I'm stuck. I can't go back to MIUI.
Only able to go to other Custom ROM.
Or do I need any other files?
Click to expand...
Click to collapse
The solution would be xiaomi flash tool.Flash miui 8 first and then upgrade to miui 9
XanverSky said:
I want to go back to MIUI 9 from custom ROM Pixel Experience (8.1.0). My device is Redmi 4X (Santoni)
1st option. (tried)
- I downloaded the MIUI ROM from here. http://en.miui.com/download-323.html
- I flashed this ROM through TWRP.
- The flashing process passed.
- But when I want to boot, it says "no OS. Want to continue reboot?"
- When I boot, it stuck on the boot logo.
2nd option. (tried)
- I downloaded the fastboot ROM and XiaoMi flash Tool from here. http://en.miui.com/a-234.html (Under Redmi 4X Santoni)
- I flash using "XiaoMi Flash Tool".
- XiaoMi Flash Tool detected my device.
- During flash, I got an error "no such file or directory".
So now I'm stuck. I can't go back to MIUI.
Only able to go to other Custom ROM.
Or do I need any other files?
Click to expand...
Click to collapse
Once miui Rom flashing done, you may try my suggestions here " https://forum.xda-developers.com/xiaomi-redmi-4x/help/help-bootloop-oreo-rom-t3772856 "
Hi, im having a little bit of a problem here, i succesfully managed to unlock the bootloader of my chinese mi8, flashed and booted twrp, the issue is, my files seem to be encrypted, i can't copy anything to the device while on fastboot/recovery mode from the pc, tried booting to miui, allowing the transfer of files and booting to twrp again (for some reason i can't boot to twrp from the device itself, it has to be via fastboot with the command "fastboot boot ***") but all twrp shows me are folders with random characters, it seems to be some sort of auto-encryption, do you know how to solve it?
Miui auto encrypts the device, that is why your device is encrypted. You are unable to boot to twrp for two reasons: 1. Miui auto checks and rewrites over any custom recovery 2. Fastboot boot command does not install twrp, it only boots into it, from which u must install twrp again.
Upon booting into twrp, you need to FORMAT data, flash TWRP, flash this file https://zackptg5.com/android.php#disverfec (DM-verity and anti-encryption) this will prevent anti encryption when your freshly flashed ROM boots up.
Side note: DO NOT RELOCK YOUR BOOT LOADER IF YOUR MI 8 IS CHINA VARIANT AND YOU ARE INSRALLING GLOBAL ROM.
I HIGHLY SUGGEST YOU HEAD OVER ONTO THIS THREAD TO UNDERSTAND BETTER! https://forum.xda-developers.com/mi-8/development/rom-mi-8-miui-10-global-beta-8-8-7-t3826560/page7
achickennugget said:
Miui auto encrypts the device, that is why your device is encrypted. You are unable to boot to twrp for two reasons: 1. Miui auto checks and rewrites over any custom recovery 2. Fastboot boot command does not install twrp, it only boots into it, from which u must install twrp again.
Upon booting into twrp, you need to FORMAT data, flash TWRP, flash this file https://zackptg5.com/android.php#disverfec (DM-verity and anti-encryption) this will prevent anti encryption when your freshly flashed ROM boots up.
Side note: DO NOT RELOCK YOUR BOOT LOADER IF YOUR MI 8 IS CHINA VARIANT AND YOU ARE INSRALLING GLOBAL ROM.
I HIGHLY SUGGEST YOU HEAD OVER ONTO THIS THREAD TO UNDERSTAND BETTER! https://forum.xda-developers.com/mi-8/development/rom-mi-8-miui-10-global-beta-8-8-7-t3826560/page7
Click to expand...
Click to collapse
Ok, lets see if i got it right, just to be sure...
i boot to twrp
i format data in twrp (only data)
flash the twrp file from fastboot
flash the file for preventing encryption IN TWRP
flash my rom of choice
what i did was
1.flash global stable 9.5 via fastboot
2.Wait till it gets on
3.Restart the device
4.flash twrp via fastboot
5.install magisk 16.7 using twrp
6.install dm verity
7.format data
8.wait till it boots downgrade magisk to 16.0 via magisk manager
Hello, everyone!
I hope anyone can help me.
Yesterday I assisted with rooting and flashing a Mi 9 T Pro with Xiaomi.eu firmware.
Here are the steps which were done:
1. Unlocking bootloader via MiFlash Tool.
2. Flashing TWRP (this one: https://androidfilehost.com/?fid=6006931924117906979)
3. First trouble: It only booted once into TWRP with "fastboot boot recovery xxx.img, after formatting data and a restart of TWRP it refused to get access again, neither with a command nor with hardware keys. It was stuck in fastboot.
4. With the MiFlash Tool I reverted to the stock global (this one: http://bigota.d.miui.com/V10.3.1.0....M_20190805.0000.00_9.0_global_135788d537.tgz)
5. After successfully flashing the stock ROM, I downloaded and flashed this TWRP: https://www.androidfilehost.com/?fid=1899786940962577905
6. Flashing this version of TWRP went perfectly fine.
7. In TWRP I formatted data again. I restarted TWRP and copied the following files to storage:
ROM: https://androidfilehost.com/?fid=1899786940962578113
Magisk 19.2.zip
Disable_dm verity_ForceEncrypt
8. I wiped Dalvik, cache, system and data.
9. I flashed ROM - it went through without problems
10. I tried to flash the dm verity, then an error occurred (please see the attached picture).
Can you please tell me what I'm doing wrong? Root is mandatory for me, I definitely need it.
I'm looking forward to your input and your help, it's very appreciated!
try to unmount system then flash it again
SkipperRyujin said:
try to unmount system then flash it again
Click to expand...
Click to collapse
Thanks for your input. I tried that, unfortunately this didn't work.
But I found the solution a few minutes ago:
I downloaded TWRP 3.3.1-13 (one version newer) and flashed it inside of my old TWRP. I rebooted to recovery again and then flashed Magisk without problems.
(The dm verity still refuses to install but the phone is booting and running.)
Well, it always work for me, or simply reboot recovery also work. Try wzsx twrp, it has remove DM verity & forced encryption remover in advanced menu
hello
It's been a while since I wrote anything on XDA, so please be gentle
Let's get the ball rolling.
I have been using MI9 since launch. I bought mine directly at the store in Shanghai, and brought it with me to Europe. After 2 weeks i unlocked the bootloader, and was able to flash TWRP + xiaomi.eu ROM (current beta at that time).
For a couple of months I received OTA updates (all firty flashes), up until introduction of beta android Q (miui 11).
I downloaded the ROM, and flashed, everything worked fine. after some time I had an issue with google pay, so thought of reverting to android Q. I checked, and dirty flash was not recommended option, so I prepared Android P ROM (not sure if exact version is relevant), booted to TWRP (3.3.1.42), wiped the data and tried to flash the ROM (from USB OTG).
Sadly - received error 7, some info about system partition.
I tried reflashing android Q - only to receive the same error.
Stuck at TWRP or fastboot, I used miflash and returned to a global stable.
then I reflashed twrp hoping to remove the error, but had the same error while flashing. Tried to flash from both internal memory, and usb OTG.
returned with miflash to stable, to use the phone..
bootloader is still unlocked, I can flash twrp again, but it will be wiped once I restart the system (as global roms "reflash" recoveries when they boot up).
I looked on some guides how to deal with error 7, but most of them aren't applicable (removing asses lines from config files, as there is no assess line in the ROMs).
Perhaps I am missing some files that I should flash, such as "vendor" files, or something ?
I thought that miflash restores fully to factory state, so TWRP shouldn'[t give any more errors.
There might be something wrong about either the rom, or the twrp.
> Since error 7 is the updater script checking for the phone model, it's either a bad script, or you missed an asserts file when flashing with MiFlash, as even the "factory" roms might not contain all partitions.
> Some partitions can't be seen by Mauronofrio's TWRP, but that shouldn't be a problem tho...
- Try using TWRP 3.3.1-1001 by a chinese team
- Try using the latest 10.10.2019 MIUI11 Rom from xiaomi.eu, I'm using in on an EEA phone and quite satisfied with it
Hi,
I have Carbon ROM with Android 10,
I wanted to flash Bliss ROM, and it says that I need a rooted device,
So I've downloaded Magisk and follow the instruction, created a boot.img and flashed it in fastboot, then I did the same only with twrp recovery & Magisk, flashed it and now it is wiered and I'm not sure what is the problem,
I have fastboot BUT when I try to perform any command, it shutsdown and preety useless, I've tried from PC, if I try from MAC, I can boot into twrp but every operation is causing the tablet to reboot.. So I can't even flash a stock ROM,
In PC, the recognized Android device (When in fastboot mode) I update it's driver to Android bootloader device
How can I solve it?
Thanks !!!