When I try to flash a custom ROM I always end up with this, and the device only boots to TWRP Recovery - Xiaomi Redmi 8 Questions & Answers

What could be the cause?
{
"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"
}

Xiaomi protect their device from custom rom or custom recovery and some time device go to hardbrick and stock on fastboot mode
So every time you want to install a custom rom after successful to install(dirty flash better) the rom first go beck to twrp menu and format system and dalvik cache then go to install>install image>select twrp img file>install
Then go to reboot>reboot to recovery
Then reboot to system

I don't have your device. But that list of files/folders with random letters means your internal storage/data partition is encrypted. You need to go to "repair filesystem" menu in twrp and reformat it to another type and back to ext4. Or use "format Data" menu. All your data will be wiped.
Don't take my word for it. Google "how to decrypt device in TWRP" and learn about it.
Ps: @moh4556 your answer is correct but it's not format system and dalvik, it's wipe system/dalvik/data menu. It will delete those partitions but for data it leaves /data/media (your internal sdcard) alone. It's sometimes not enough when moving from stock to custom rom.
Hope this helps

weird, i was pretty sure i replied to this thread
strange characters in roms mean you havent formatted data most of the time. once you answer yes you lose your entire data (and locking mechanisms which scrambles names) altogether
for the most part, installing roms follow the same steps
format (not wipe) data
wipe system, vendor, dalv and cache
flash stuff
wipe dalv and cache again
moh4556 said:
Xiaomi protect their device from custom rom or custom recovery and some time device go to hardbrick and stock on fastboot mode
So every time you want to install a custom rom after successful to install(dirty flash better) the rom first go beck to twrp menu and format system and dalvik cache then go to install>install image>select twrp img file>install
Then go to reboot>reboot to recovery
Then reboot to system
Click to expand...
Click to collapse
not entirely true. it is highly recd to install the vbmeta patch for redmi8. im lucky and havent required it.
newer miui does make it a pain to install custom recovs directly, hence the 3.6 update included an advanced install option
older miuis arent that protected and only require a reboot to recov after installing the custom recov
also a bit offtop but whatev

Related

[GUIDE] Installing/Flashing Treble ROMs

I am not responsible for people bricking their devices because they haven't made a backup.
Click to expand...
Click to collapse
{
"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"
}
Downloads
TWRP For P10 lite: HERE
ADB & Fastboot: HERE
The first step is to make a backup.
2. Download your Treble ROM, i recommend a GSI ROM.
In my case I'll be using Havoc-OS
Download: https://forum.xda-developers.com/project-treble/trebleenabled-device-development/rom-havoc-os-8-1-t3819050
3. Go into TWRP and do a FACTORY RESET and then reboot into fastboot.
4. The only thing you need to do now is flash the ROM, so get your downloaded ROM & extract the .img file from it (if there is no .img file and you see other files, flash via twrp).
On your PC open the fastboot command prompt and type
fastboot -u flash system <YourImageFileHere>
Click to expand...
Click to collapse
After just type : "fastboot reboot" and wait until your phone boots into the system. You may need to flash google apps afterwards.
It is normal for the phone to reboot a couple times so be patient.
Congratz, your phone is not running a treble ROM with your stock ROM's vendor.
Click to expand...
Click to collapse
Video:
I just need backup Boot, System and data if i want go back to stock?
Bad idea to factory reset with TWRP, it doesn't do it clean enough.
You could get in serious problems by doing it, such as random apps crashing, sd unmounting and worse.
Safer option is to factory reset and wipe cache with stock recovery after every system flash.
I'm telling this from my own experience, I don't want people to mess up like I did :highfive:
Ret-Zero said:
I just need backup Boot, System and data if i want go back to stock?
Click to expand...
Click to collapse
Yes that should be enough, vendor stays the same anyway.. I recommend flashing roms designed for kirins cpus btw because there is a higher chance it will work

How to Flash the fastboot ROMs without wiping internal storage

Download the fastboot ROM that you want to flash to restore your phone unzip it and then change the flash-all.bat to flash-all.txt then open it. It will have a line that looks like this
fastboot -w update images.zip
Change it to this
fastboot update images.zip
Then close it and save. Change the file name back to flash-all.bat it will now flash the fastboot ROM without wiping internal storage. After that boot back to bootloader and boot phone to twrp and wipe only dalvikcache and data. You will keep all the files on you're phone flash twrp and flash you're new custom ROM gapps magisk the way you normally do. You will have to set you're ROM up again but everything on you're internal storage will still be there. I hope this helps people flashing on a/b devices.
Pretty sure it asks if you want to wipe the internal storage.
It never asked me if I wanted to wipe it just go straight through the process but that it doesn't reset the bootloader like the MSM tool and doesn't wipe internal storage it makes it easier to flash ROMs with the A/b partition. At the beginning when I first bought my McLaren OnePlus 6t I would have to put my music and all my files back on my phone and I have a hundred gigs of music so it was hard to flash a ROM now I can flash one everyday day or every other day. the only reason I even posted this was I couldn't find it anywhere online and then I remembered that if you erase something from the. Bat file it would not wipe so I took a look and figured it out figured I'd post it so that people with the OnePlus 6t would have this information readily handy.
DaveIsHome said:
Download the fastboot ROM that you want to flash to restore your phone unzip it and then change the flash-all.bat to flash-all.txt then open it. It will have a line that looks like this
fastboot -w update images.zip
Change it to this
fastboot update images.zip
Then close it and save. Change the file name back to flash-all.bat it will now flash the fastboot ROM without wiping internal storage. After that boot back to bootloader and boot phone to twrp and wipe only dalvikcache and data. You will keep all the files on you're phone flash twrp and flash you're new custom ROM gapps magisk the way you normally do. You will have to set you're ROM up again but everything on you're internal storage will still be there. I hope this helps people flashing on a/b devices.
Click to expand...
Click to collapse
Thank you very much about this topic. I will try this method for my OP6. I also face your problem about internal data. I have more than 100gb data in my phone and i don't want lost it's on every time i flash the phone. I hope everything ok after use this method.
AWESOME!!
Good to know.
Gonna try this on my oneplus 8 pro but the twrp is buggy atm and doesn't wipes data or even cashes, will have to find some fastboot commands to just wipe data and not internal storage, cheers
Can you please make a video tutorial, it will be great to understand...
How can I flash a Fastboot ROM with my bootloader locked? Please help.
pagan_1 said:
How can I flash a Fastboot ROM with my bootloader locked? Please help.
Click to expand...
Click to collapse
AFAIK you can't.
pagan_1 said:
How can I flash a Fastboot ROM with my bootloader locked? Please help.
Click to expand...
Click to collapse
I was able to flash while having my bootloader locked...
You should enter EDL mode by connecting two test points at the back of your A2 lite and plug the USB. It all dose the magic.
{
"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"
}
I did as follows.
Note-I was not successful with latest flash tool. Succeeded with 20160830 version at https://www.xiaomiflash.com/download/

Phone does not recognise encrypted storage, please help!

Hi,
There is this bug on LOS16 that if the pop up camera is up and then the device switches off, the camera stays up permanently until a stock rom is reflashed. I had this issue before, so I restored a backup I made on MIUI 10.3.16 using TWRP, but the device was stuck in a bootloop, and the camera was still stuck, so after restoring different backups I made, I decided to finally use MiFlash to fastboot flash MIUI 10.3.16, and I chose the 'keep user data' option, however this also bootlooped and went into MIUI recovery. I reflashed TWRP and now I face this issue:
TWRP does not recognise that my phone is encrypted, and does not ask for my password, so I can see that my files are here, but they have random folder and file names. (example shown below)
{
"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"
}
I managed to get MIUI running, however it does not ask me for my password, only my Mi account password.
I restored a LOS16 backup I made ages ago, and that also does not ask me for my password - the files I see in the file manager are all encrypted like TWRP.
I attempted the 'twrp decrypt' command, but that does not work either.
I attempted flashing backups and custom roms from a USB, using PitchBlack recovery, OrangeFox, and two TWRP versions.
All I want is for either a recovery or a rom to ask for my unlock password, so it can use that to decrypt my files.
I am not 100% sure if using MiFlash is what caused this, but is there anything else I could try? Are all my files gone? I cannot copy my encrypted files over to my PC and Windows returns an error when trying to do so. Are there any 3rd party tools I can use to decrypt my stuff?
I know I could just wipe my storage and start again, but I do not really want to do that until I know for sure that my files are gone.
I was thinking that MiFlash wiped the decryption keys from my device, but wouldn't a backup restore them?
If it is not possible to save my files, could someone explain why, so I do not make the same mistake again?
Any help would be appreciated.
Format Data, you cant go from miui to aosp or vice versa without doing that. backup your data to pc before or whatever cuz it wipes all internal.
Best thing to do is to fastboot flash again, but use the clean all option.
It's never a good idea to dirty flash when doing anything other than updating a ROM. You might sometimes be OK if flashing from one AOSP ROM to another AOSP ROM.
If your going from MIUI to a custom ROM, or from a custom ROM to MIUI, then it's not worth the aggro you'll most likely get by dirty flashing. Just spend the extra time backing up your data and save the headache.
As for the data, try installing a different TWRP and see if that will then ask for a password to decrypt the phone, before you do a clean install of MIUI.

Question Can't install Xiaomi EU ROM - Stuck without a ROM

I've followed the process outlined here. After installing the ZIP, it rebooted, but went back to recovery. When I said reboot system, it said No OS installed.
So, I tried to start over by formatting data and then copying the zip again via ADB Push. Then the trouble starts. After adb push, which takes about 5 minutes, it says
Code:
failed to copy 'xiaomi.eu_multi_HMNote10Pro_V12.5.3.0.RKFMIXM_v12-11.zip' to '/sdcard/xiaomi.eu.zip': write failed: No space left on device
After that, the data partition seems corrupted. Whenever I go to Install, it shows 0 bytes. Upon Googling I found a solution by formatting to ext2 and back to ext4. Then, it shows again as 100000MB. However, adb push every time fails with same problem.
For some weird reason, I can push to /data. But still running into same problem after installing ROM and rebooting, it goes back into recovery.
I also tried to sideload, but then I run into this issue:
Code:
D:\Tools\ROMs>adb sideload xiaomi.eu_multi_HMNote10Pro_V12.5.3.0.RKFMIXM_v12-11.zip
loading: 'xiaomi.eu_multi_HMNote10Pro_V12.5.3.0.RKFMIXM_v12-11.zip'
* cannot read 'xiaomi.eu_multi_HMNote10Pro_V12.5.3.0.RKFMIXM_v12-11.zip' *
So, I'm stuck with a device without any ROM. Any suggestions please?
Did you ask in the MIUI EU forums as well? Since there would be more ppl familiar with these issues than here.
I'm also interested in this since I prefer EU roms. Also you need a specific TWRP version which I believe is still in alpha stage for the 10 Pro since its still a new device. There should be a TWRP thread somewhere here where you can also ask.
I just got my 10 pro and need to wait a few more days to unlock BL, then I will be flashing an EU rom, hence my interest. Hope you find a solution.
Use TWRP from here:
https://forum.xda-developers.com/t/4248449/
fastboot reboot bootloader
fastboot boot TWRP_file_name.img
Format Data, type yes.
{
"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"
}
Reboot to recovery.
The internal storage should be visible.
Connect phone to PC and put ROM into phone.
Flash ROM, format data, yes
Reboot to system.
If above not work, make your phone under fastboot mode, Mi-Flash, and flash your stock fastboot MIUI. Don't lock your bootloader.

Question Help! Can't Wipe The System Partition

Need Some Help!
So, after flashing the recovery and vbmeta from lineage, whenever I try to format everything, all works except the system partition, it shows me "System Wipe Failed" as showing "E:format_volume: fs_type "erofs" Unsupported" and the reasons, I can't install the gapps in it, I feel so worried, even I reflashed the Thailand Firmware, still no work, how do I format the system partition in any way to make the room to be worked and stable with gapps?!
Here is the Attached Picture
{
"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"
}
2013Windows8.1 said:
Need Some Help!
So, after flashing the recovery and vbmeta from lineage, whenever I try to format everything, all works except the system partition, it shows me "System Wipe Failed" as showing "E:format_volume: fs_type "erofs" Unsupported" and the reasons, I can't install the gapps in it, I feel so worried, even I reflashed the Thailand Firmware, still no work, how do I format the system partition in any way to make the room to be worked and stable with gapps?!
Here is the Attached Picture
Click to expand...
Click to collapse
First format data ,Then wipe cache and after it is done then wipe system but with system wipe you will get error that is normal
Then go back and click on apply update
Choose from sdcard
Install ROM
With gapps you will get error like certification failed do you want to allow
Click on allow
Its installed now
Enjoy the ROM !
sonu dilli said:
First format data ,Then wipe cache and after it is done then wipe system but with system wipe you will get error that is normal
Then go back and click on apply update
Choose from sdcard
Install ROM
With gapps you will get error like certification failed do you want to allow
Click on allow
Its installed now
Enjoy the ROM !
Click to expand...
Click to collapse
Even after that if any thing goes wrong DM me on Instagram portal id lie_we_livee
sonu dilli said:
First format data ,Then wipe cache and after it is done then wipe system but with system wipe you will get error that is normal
Then go back and click on apply update
Choose from sdcard
Install ROM
With gapps you will get error like certification failed do you want to allow
Click on allow
Its installed now
Enjoy the ROM !
Click to expand...
Click to collapse
still no works,even i tried to flash and erase,while installing gapps,it's says that system partition is not have enough space, as after i tried to wipe the system partition,is it any problem or what,

Categories

Resources