(flashing / booting) Problems with all roms - Xiaomi Mi 8 Questions & Answers

Hi,
since many days I have a new Mi8.
The device is a chineese model, and because it was delivered with unlocked bootloader and a shop ROM, i want to use the latest Xiaomi.eu stable rom.
After flashing the TWRP, i cleared all (System, Data, Cache, internal storage) and installes the latest xiaomi.eu ROM.
Unfortunately the ROM was notstartet. Later i readed, that the xiaomi.eu ROM needs the system partition, so i tried to install some different ROMs.
All tested roms failed to install (device missmatch), so i tried to use different recoveries and at least i updated the vendor Image to MI8Global_V10.3.5.0.PEAMIXM.
After this, some Roms are able to install, mut the ROMs wont boot.
After a clean install of the xiomi global fastboot image, the phone is running, but i still have problems to install custom ROMs or the stable Xiaomi.eu ROM.
The fastboot ROM installation with mi flash tools ends with an error (Not catch checkpoint (\fastboot -s .*lock) Flash is not done (I choosed the option clean all, not the lock function)
cDroid Rom is working, but with this ROM i cant use google pay.
cDroid with update to xiaomi.eu weekly is also working, but also without google pay.
Xiaomi.eu stable - bootloops
Do you have any ideas why i cant use all ROMs?
Should i choose a chineesevendor image or something else?
I also heared, that it could be, that the device bricks, when i try to re-lock the bootloader, is this an option?
Which ROM should work fith functional google pay ?
Thanks in advance

The problem seems to be solved,
i have to flash "Disable_Dm-Verity_ForceEncrypt" after the flashing of every ROM, then I have no bootloops / boot Problems.
Now i only have the problem with google pay...

I couldn't also get Miui Eu bootable on my mi8 last time. I didn't realize what you had mentioned Disable_Dm-Verity_ForceEncrypt. But I could manage to get MiRoom Miui workable and it seems ok for now.

stevedat said:
I couldn't also get Miui Eu bootable on my mi8 last time. I didn't realize what you had mentioned Disable_Dm-Verity_ForceEncrypt. But I could manage to get MiRoom Miui workable and it seems ok for now.
Click to expand...
Click to collapse
DM verity zip removes the 'DM Verity' check that looks for modifications to the boot partitions (D-device M-mapper). You cannot boot with modifications (like root) without disabling the verity check. Also, if you are on a stock ROM, your custom recovery image file will be overwritten with stock upon reboot if you don't disable DM Verity. Hope this helps you understand more.
Found it on this topic.
I´m still looking for a ROM with google pay support, but iu think with unlocked bootloader and without root therre is no chance...

Related

TWRP telling me device is encrypted on clean install with no lock screen

While trying to go from a custom ROM to the official global stable, I'm having issues. I used Mi Flash to install the rom with no issue, but when I boot into TWRP with fastboot, it tells me the data is encrypted. I have no lock screen on and I can't decrypt it because default_password didn't work. I'm going to try to explain to the best of my ability exactly what I was trying and what I did to get here.
Starting point: Epic Rom
I used mi flash tool to install official Nougat Global Stable ROM.
I accidentally lock my bootloader doing this, but no big deal, I unlock it again with the tool xiaomi provides.
I guess the official ROM has it's own recovery, since it overwrote TWRP.
I reflash TWRP, and use fastboot to boot into it.
I wanted to install magisk, so I boot the phone, download it, and boot back into TWRP from the command line.
Here's where I notice the data is encrypted and I can't access internal storage to install magisk.
I start over and reflash the global rom and twrp, this time not setting a lock screen at all.
Still encrypted.
Wipe userdata and repeat.
Still encrypted.
I'm lost at this point. I can't even flash a custom ROM because I again can't get into my internal storage in TWRP to install it. Does anyone have any ideas? I'm a bit desperate at this point
After a little bit more searching, it seems it automatically encrypts if supersu isn't installed. Is there a way around this for magisk?
I recently had the same issue with the global stable rom, twrp wouldn't show anything in my internal storage. How I fixed it was miflashing the latest global stable developer rom instead an then twrp , an that did it..... I was able to see internal storage. For some reason the global stable doesn't allow you to see the storage. Hope that helps
kjm2323 said:
I recently had the same issue with the global stable rom, twrp wouldn't show anything in my internal storage. How I fixed it was miflashing the latest global stable developer rom instead an then twrp , an that did it..... I was able to see internal storage. For some reason the global stable doesn't allow you to see the storage. Hope that helps
Click to expand...
Click to collapse
Brilliant, this worked! My issue now is that, as far as I can tell, developer ROM isn't on MIUI9? That seems strange, but I guess I may go back to a custom ROM in this case.
master565 said:
Brilliant, this worked! My issue now is that, as far as I can tell, developer ROM isn't on MIUI9? That seems strange, but I guess I may go back to a custom ROM in this case.
Click to expand...
Click to collapse
I know I'm on the latest an it is miui8, which I'm fine with... The device runs great an has everything I need. Just a heads up I didn't shut the updater off an left my phone on wifi. When I woke up in the morning it auto updated to the newest rom an I lost twrp, SU, xposed.... Had to re-do all that. Everything worked but just a pain. You don't get that auto update running a custom rom.

Flashing chinese Mi9 issues and getting stuck in bootloop

Hi all,
So over the last day I have decided to install twrp and flash a new rom on my Chinese Mi9. Previously I have locked the bootdoader and installed the global rom. I have adb set up correctly and all relevant PC drivers.
So this is what I did and the problems I encountered. Hoping I can get some feedback as to what may have happened.
1 - Installed TWRP (mauronofrio) then it would get stuck on splash screen. Was told to install TWRP (LR.Team/wzsx150) which I did and it worked. I formatted and wiped my drive to get rid of encryption.
2 - I flashed EU rom (after editing script) using TWRP (wzsx150) then after install it would get stuck in bootloop.
3 - I installed TWRP (mauro) then installed EU rom and success, everything worked well. But I found with this EU rom, most of my apps would not install from play store or my Mi restore would not work, there were apps everywhere. Also EU rom was very buggy flashed it again and still the same issues so decided to go back to global rom. Too many apps would crash for no reason and even clearing cahce/data in app settings would not fix it.
4 - I flashed global rom on TWRP (mauro) and installed fine. But when restarted phone it got stuck in bootloop and couldn't get out of there. Had to use Miflash to flash the rom and start from scratch. I now lost TWRP and got Mi recovery back because of this.
5 - I flashed TWRP (mauro) again and tried global rom once again, flashed magisk etc and once installed rom, the thing got stuck in bootloop again.
6 - I now have flashed TWRP (wzsc150) and have installed global rom and it is installing and restoring fine. Once global rom has installed I have lost TWRP. I am also stuck in bootloop and can't get out.
So basically no TWRP works on my phone.
I have managed to flash phone back to original condition with the global rom. On a positive it still works and the storage is unencrypted.
Does anyone have any ideas or suggestions why my Chinese Mi9 doesn't like TWRP (mauro) and it always gets stuck in bootloop. I just want root access on my phone and google pay to work with unlocked bootloader.
Thank you
This seems to be the theme with 8GB version? I have this version too and makes me worried. I still have about 5 days till unlock insha Allah
These TWRP for Mi 9 are quite beta (no working decryption, no proper backup and restore for example).
If you want to have it, you must use custom rom like EU one.
Stock rom auto re-flashs Mi recovery, period.
BTW, I don't find any unbearable bug the EU rom (most of guys here also have no problem with it), just reinstall the app, backup program such as Titanium backup may introduce a lot of errors...
Sent from my MI 9 using Tapatalk
The apps were fresh installation from Google restore. Even when I deleted them and installed again they still crashed. Gmail, Waze and even checking software version in settings all made it crashed.
So now if I were to install twrp and euro rom again, it shouldn't delete my user data as I no longer need to unencrypt my storage right? Will euro rom just overwrite global rom and keep all my data
ted presley said:
These TWRP for Mi 9 are quite beta (no working decryption, no proper backup and restore for example).
If you want to have it, you must use custom rom like EU one.
Stock rom auto re-flashs Mi recovery, period.
BTW, I don't find any unbearable bug the EU rom (most of guys here also have no problem with it), just reinstall the app, backup program such as Titanium backup may introduce a lot of errors...
Click to expand...
Click to collapse
Do you think when I installed this rom I never did a wipe and all my apps were there on start up. Do you think this might be a cause of certain apps crashing?
Rommco05 said:
...for example I have EEA variant and lastly using Global Dev rom. I still geting regulary updates even when I have TWRP (mauronofrio) and root. Only before every update I need flash stock boot and recovery. Then update phone and then flash back TWRP and Magisk. All the time working my old Magisk + Xposed (Ed) modules working without reinstalling them. Little out of topic here but just wanted to say
Click to expand...
Click to collapse
So with a custom rom like EU rom, everytime there is an update do you have to flash back twrp etc? Do the updates work OTA?
Rommco05 said:
I was talking about official Global Developer rom. To answer your questions. With EU you always need reflash Magisk for sure, if also twrp I don't remember. Yes EU have OTA updates but only full packages and need be flashed over twrp so all bloadware is back.
Click to expand...
Click to collapse
But when you flash back, you don't wipe the cache/data and lose all your stuff do you?
Ok, managed to flash to EU rom with no problems. Works great. Will updating with the updater delete my stuff?
perryano said:
Ok, managed to flash to EU rom with no problems. Works great. Will updating with the updater delete my stuff?
Click to expand...
Click to collapse
It won't.
Sent from my MI 9 using Tapatalk
ted presley said:
It won't.
Sent from my MI 9 using Tapatalk
Click to expand...
Click to collapse
Thank you for all your help with this Ted. It has helped a lot.
So I did the OTA update this morning successfully, but noticed before doing the flash in TWRP, there was a message saying it had to do it that way due to my device been encrypted. That's funny because I have formatted then wiped the drive before installing the rom. Is this a true message?
Always do a full wipe when flashing to a different variant of miui since current twrp has issues on decryption. I also had tons of problems from just resetting only without wiping data. For example flashing to eu from china stable everything worked from just doing factory reset. But google play cannot download any app that has an obb attached for some reason. Most likely problems with file encryption so i did a full wipe now everything works properly.
I'm not able to make TWRP work, its successfully install on terminal and when I reboot and hot volume Up key it bringing me to FASTBOOT mode, and if I do restart system, it and then hold Volume Up key, its again the stock Recovery.
My device is Chinese 8GiB 128GiB. any help will be appreciated. I want to install Xiaomi.eu rom as my current stock Chinese rom with google app giving me horrible battery life, standby battery drain is too bad.
QuakeString said:
I'm not able to make TWRP work, its successfully install on terminal and when I reboot and hot volume Up key it bringing me to FASTBOOT mode, and if I do restart system, it and then hold Volume Up key, its again the stock Recovery.
My device is Chinese 8GiB 128GiB. any help will be appreciated. I want to install Xiaomi.eu rom as my current stock Chinese rom with google app giving me horrible battery life, standby battery drain is too bad.
Click to expand...
Click to collapse
You need to do it quickly.
After successfully installed TWRP in fastboot, hold power button to power off (it will restart instead of completely off), when the screen gone black, very quickly hold the volume up button, hold it until you see the twrp screen.
If you are not quick enough, the phone will boot up and stock recovery will be automatically intstall back, you have to start over: install twrp again.
Sent from my MI 9 using Tapatalk

MIUI 11

So finally there's MIUI 11 officially announced in China. XDA recently provided the links to download recovery ROM based on MIUI 11 for certain devices here- https://www.xda-developers.com/download-miui-11-beta-now-for-13-xiaomi-devices-changelog/amp/
These ZIPs are chinese beta builds and my question as a xiaomi.eu 's ROM user is-
HOW CAN I FLASH A CHINESE BETA ROM USING TWRP WHILE CURRENTLY I'M USING XIAOMI.EU ROM?
Thanks in advance ;p
u don't. I tried them. they have anti-rollback feature. u will be stuck in them. u won't be able to flash twrp. fastboot will reject everything saying anti rollback hszghsjcklsj........ like something. I tried. my phone got bricked. but somehow fastboot was on and I unlocked bootloader then in edl mode flashed stock ROM. I must say that I was not able to access even recovery.
in short, the way to go back to using custom ROMs/recoveries are destructive and could brick ur device and u may not be able to recover it anytime soon.
So, I risked my phone and tried (that was the only option I had). Here's how to flash Chinese beta (or official MIUI) when your Xiaomi device is running unofficial MIUI like xiaomi.eu's MIUI or even a custom ROM-
Again HOW TO FLASH OFFICIAL MIUI CHINESE/GLOBAL ON A XIAOMI DEVICE THAT IS CURRENTLY ON A CUSTOM ROM
DISCLAIMER: THE BELOW MENTIONED METHOD IS WHAT WORKED IN MY CASE, I thought to help if someone needs help in this case because I didn't get any
Step 1. Make a backup of your data and wipe every partition (except Internal storage, USB OTG & SD card)
Step 2. Since MIUI has anti-rollback, you've gotta flash the recovery ROM with a lazyflasher like tool. (Lazyflasher didn't work at all in my case. So use Dm-verity disabler, Force encryption by @Zackptg5).
Note: You don't need this tool while flashing xiaomi.eu ROM or custom ROM. YOU DON'T!
Step 3. As mentioned above flash both zips and reboot to system.

Bring light into the darkness of encryption

Hi togehter,
I had some problems with flashing new custom roms and ended up in a bootloop with not being able to boot to recovery. This could be solved by flashing the stock image with the xiaomi flash tool.
Before I will fu up again I would like to bring some light into the darkness.
When coming from Stock Rom:
1. Unlock Bootloader -> done successfully
2. Flashed TWRP Recovery -> done successfully but storage (data) was encrypted
3. Flashed Magisk via Recovery -> done successfully (storage still encrypted)
from here I was happy using the Stock Rom with Root.
Now I started messing things up:
Because there are a few things that bother me about the stock rom i wanted to use lineageOS/Pixel Experience. So I proceeded as following:
1. Backup my data (still have to enter key when starting twrp to decrypt the storage) -> done successfully
2. Flash LineageOS -> resulted in bootloop to TWRP
When entering twrp there was no query about the key and data where encrypted. Also the Backup was not accessible .
3. I used all in one tool to erase storage and decrypt data. -> successfully... Now i was able to place data on the internal storage again and start flashing a rom
4. Flashing LineageOS -> done successfully and able to boot into rom
Back to TWRP data was encrypted and I had to enter key.
5. Flashing remove force encryption script via twrp. -> done but now i was facing boot to black screen. TWRP was not working anymore.
Only way to get it work again, was flashing stock image.
Why is the data system always encrypted. This is rly annoying and backups don't work, because i can not encrypt them. Also, I can not put any files on the memory because it is encrypted.
I would rly like to try a custom rom, but I would also like to be able to go back to a backup. What have i done wrong?
You have to flash no dm verify right after formatting data & flashing rom. Don't let it boot.
I would recommend using the stock firmware. Los/AOSP is rubbish for our device, it's too unstable, lacking features and has worse gestures.
SeppGoPro said:
Hi togehter,
.... What have i done wrong?
Click to expand...
Click to collapse
You need to format data (not just wipe data) in TWRP. Some people suggest before flashing a ROM and some say after, but I don't think it makes a great deal of difference either way.
Make sure you either flash the appropriate firmware and vendor recommended, or the fastboot ROM of that version.
Then in TWRP wipe cache and dalvik, then format data.
Reboot into TWRP, or unmount and mount the data partition in TWRP so it correctly reads the data partition.
Copy across the ROM (and GApps if needed)
Them flash.
Boot into the ROM and you should be good.
After initial setup, if you want root, boot into TWRP and flash Magisk.
From here, if you've set a pin on the ROM, you'll be encrypted, but everything should still work normally. You should be able to access everything normally in TWRP and also perform backups. You should be able to got data across from/to a PC normally.
Turbine1991 said:
You have to flash no dm verify right after formatting data & flashing rom. Don't let it boot.
I would recommend using the stock firmware. Los/AOSP is rubbish for our device, it's too unstable, lacking features and has worse gestures.
Click to expand...
Click to collapse
Not true in many ways.
There is need to flash no dm verity. It's one way of solving the issue, but it's not the only way. You should only do this if you know what it's for and if you know you want this.
AOSP ROMs are not unstable. I've been using them on mine for over 4 months. None are perfect and they have a few minor issues/bugs, but they are far from being considered unstable. I've never had shutdowns, reboots or FC'S.
Thanks for the replies.
Robbo.5000 said:
Make sure you either flash the appropriate firmware and vendor recommended, or the fastboot ROM of that version.
Click to expand...
Click to collapse
So for example with LineageOS 17 I can use the global vendor and firmware, but sometimes in the thread it is recommended to use chinese vendor and firmware. In this case I should flash another vendor and firmware then the global one.
What do you mean with a fastboot rom. How can I identify one of them?
Is the MiuiMix Rom a fastboot rom. This one changed my vendor and firmware. After flashing this rom, my bootlogo changed to redmi... Am i right with this suggestion?
SeppGoPro said:
Thanks for the replies.
So for example with LineageOS 17 I can use the global vendor and firmware, but sometimes in the thread it is recommended to use chinese vendor and firmware. In this case I should flash another vendor and firmware then the global one.
What do you mean with a fastboot rom. How can I identify one of them?
Is the MiuiMix Rom a fastboot rom. This one changed my vendor and firmware. After flashing this rom, my bootlogo changed to redmi... Am i right with this suggestion?
Click to expand...
Click to collapse
Fastboot ROMs are official ROMs that are flashed through the Mi Flash Tool
, with the phone booted into fastboot mode and connected to the PC. They contains almost all partitions, including vendor and all firmware. They will be a .tgz file. They are mainly used as an almost failsafe way to recover the phone, should you mess things up. Flashing them will restore the phone to factory, so will lose TWRP, but you're guaranteed a clean starting point.
If, for example, you want to install Havoc 3, it is recommended to flash it on top of either China or India 10.4 vendor and firmware. So if you're phone is currently on global firmware, you would then need to flash, say, Chinese firmware and vendor flies, before flashing Havoc.
If you have been previously flashing other mods, such as 75Hz, screen refresh rate, for example, then you might choose to flash the official Chinese fastboot ROM, instead of just the firmware and vendor, to ensure that you've cleaned the phone of any mods, etc. In most cases you will be fine flashing firmware and vendor, though.
Miuimix is a custom ROM, which is based on the official China MIUI ROM. Because it's based on the China ROM this is why the logo changed to Redmi.
Robbo.5000 said:
Miuimix is a custom ROM, which is based on the official China MIUI ROM. Because it's based on the China ROM this is why the logo changed to Redmi.
Click to expand...
Click to collapse
So in this case, i can just flash this rom and there is no need of flashing a diffrent vendor or firmware.
So final question: I'm happy with the stock rom plus root. I would like to try a custom rom but I'm not willing to go through the whole installtion procedure again. Is there a way of making a backup and keeping it?
When I backup the stock rom right now, the backup will ne encrypted again...When I formate the data, all my data will be gone again ?

Flashing problem on Chinese version K20 Pro (raphael)

Hello there,
I'm using the Xiaomi.eu latest Beta rom ATM. I'm trying to flash other roms (like lineage OS 17.1 for example) but it seems to reboot to fastboot everytime. I've tried doing a clean flash, formatting data, dirty flashing. Nothing seems to help it boot into the new rom.
Clearly I'm doing something wrong. If I try flashing the recommended Chinese vendor firmware (stable version), I get an error 7..but my TWRP is up to date as recommended.
If anyone has any idea where I'm going wrong, that would help a lot.
Thanks
therightperson_630 said:
Hello there,
I'm using the Xiaomi.eu latest Beta rom ATM. I'm trying to flash other roms (like lineage OS 17.1 for example) but it seems to reboot to fastboot everytime. I've tried doing a clean flash, formatting data, dirty flashing. Nothing seems to help it boot into the new rom.
Clearly I'm doing something wrong. If I try flashing the recommended Chinese vendor firmware (stable version), I get an error 7..but my TWRP is up to date as recommended.
If anyone has any idea where I'm going wrong, that would help a lot.
Thanks
Click to expand...
Click to collapse
Don't know what your doing wrong, but this is my failsafe method should nothing else work.
Flash the latest Chinese 11.0.5 fastboot ROM. Make sure you don't lock the bootloader if using the Mi Flash Tool.
Boot into MIUI once to allow it to finalise the install, you don't need to do the initial phone setup once it boots into MIUI.
Boot into fastboot and install TWRP. I recommend the latest from mauronofrio which should be 3.1.1-32
Boot immediately into TWRP. I use the volume up button while powering up the phone.
Perform a factory reset in TWRP (using the swipe button), then format data (need to type 'yes' to confirm).
Reboot into TWRP using the TWRP boot menu, this ensures the newly formatted data partition is correctly mounted.
Copy over the ROM you want and GApps if needed, then flash.
Boot into your new ROM, everything should be OK. Then boot back into TWRP to install Magisk if you want root.
Yep that seems to have done the trick. At first I was getting frustrated because I thought I was downloading the right Chinese ROM, turns out I was downloading the recovery version instead of the fastboot one.
I think it wasn't working because I was on the beta channel. Switching over to the stable channel meant I had to go through a fastboot flash apparently. I've seen this before on my OP3.
Got lineage OS loaded, thanks for your help!

Categories

Resources