Please help. Bootloop stuck for no reason. Xiaomi mi 9 lite. Need to prevent data loss.

Search This thread

Nerfpl

Member
May 27, 2012
23
0
Hello.

Stock Xiaomi mi 9 lite, global rom

My phone started to lag hard so I decided to reboot.
Reboot took ages, stuck on MI logo, finally phone rebooted into recovery (5.0)
Reboot option makes phone try to boot (about 3-5minutes) and goes back into recovery.

Adb doesn't connect with recovery and device so no shell etc.
Connect to MiAssitant option allows side load connection via adb.
I can adb reboot bootloader to get into fastboot.

All those options do not allow for data recovery or bootloop fix without loss.

Phone is stock ROM, stock recovery, not unlocked.

I'm out of options. I need to save the data. Contacts etc.

Thanks for any help.
 

innergat

Member
Jan 22, 2023
15
4
I know what you have to do, give me some time to write k , kinda busta now
Hello.

Stock Xiaomi mi 9 lite, global rom

My phone started to lag hard so I decided to reboot.
Reboot took ages, stuck on MI logo, finally phone rebooted into recovery (5.0)
Reboot option makes phone try to boot (about 3-5minutes) and goes back into recovery.

Adb doesn't connect with recovery and device so no shell etc.
Connect to MiAssitant option allows side load connection via adb.
I can adb reboot bootloader to get into fastboot.

All those options do not allow for data recovery or bootloop fix without loss.

Phone is stock ROM, stock recovery, not unlocked.

I'm out of options. I need to save the data. Contacts etc.

Thanks for any help.
 
  • Like
Reactions: Nerfpl

alecxs

Forum Moderator
Staff member
Feb 17, 2016
5,097
8
5,327
gitlab.com
try the loader first. you need to find a way to enter EDL mode. this is done either by deep flash cable or via modified fastboot.

EDL tool works best on linux. you can copy re_livedvdV4.iso to pendrive with rufus.ie and boot from BIOS F11 or F12 key.

download the loader, open Terminal with ctrl + alt + T and try to print partition tables while phone is connected in EDL mode. note there is a timeout.
Code:
edl printgpt --memory=ufs --loader=path/to/prog_ufs_firehose_sdm710_ddr.elf

if the loader works you can dump userdata partition off device.
(open your windows drive in explorer first)
Code:
cd /media/ubuntu/<your windows drive UUID>/Users/<user>/Desktop
edl r userdata userdata.img --memory=ufs --loader=path/to/prog_ufs_firehose_sdm710_ddr.elf

Now you can try to fix possible errors on dump file. this won't change anything on phone. then try to mount.
Code:
sudo apt install f2fs-tools
sudo fsck userdata.img
sudo mkdir /media/ubuntu/data
sudo mount -vo loop,ro,noexec,norecovery userdata.img /media/ubuntu/data
sudo ls -la /media/ubuntu/data
(you should see encrypted files)
 
Last edited:
  • Like
Reactions: Nerfpl

Nerfpl

Member
May 27, 2012
23
0
I didn't had deep flash cable or modified fastboot so after searching and trying every option (even asked ChatGPT, great source btw) i wiped everything using MiUnlock (phone was registered for unlocking).
It worked without problems in fastboot mode.
Next i installed twrp and installed Xiaomi eu ROM.

Lucky turned out phone had google sync on so many stuff was not lost.

(No i'v read it was about modified fastboot file, my bad. Thanks for great answer anyway)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    the only way I can image is read userdata partition off device, run fsck on linux, and restore partition image from EDL mode.
    https://github.com/bkerler/edl

    prog_ufs_firehose_sdm710_ddr.elf
    1
    I know what you have to do, give me some time to write k , kinda busta now
    Hello.

    Stock Xiaomi mi 9 lite, global rom

    My phone started to lag hard so I decided to reboot.
    Reboot took ages, stuck on MI logo, finally phone rebooted into recovery (5.0)
    Reboot option makes phone try to boot (about 3-5minutes) and goes back into recovery.

    Adb doesn't connect with recovery and device so no shell etc.
    Connect to MiAssitant option allows side load connection via adb.
    I can adb reboot bootloader to get into fastboot.

    All those options do not allow for data recovery or bootloop fix without loss.

    Phone is stock ROM, stock recovery, not unlocked.

    I'm out of options. I need to save the data. Contacts etc.

    Thanks for any help.
    1
    try the loader first. you need to find a way to enter EDL mode. this is done either by deep flash cable or via modified fastboot.

    EDL tool works best on linux. you can copy re_livedvdV4.iso to pendrive with rufus.ie and boot from BIOS F11 or F12 key.

    download the loader, open Terminal with ctrl + alt + T and try to print partition tables while phone is connected in EDL mode. note there is a timeout.
    Code:
    edl printgpt --memory=ufs --loader=path/to/prog_ufs_firehose_sdm710_ddr.elf

    if the loader works you can dump userdata partition off device.
    (open your windows drive in explorer first)
    Code:
    cd /media/ubuntu/<your windows drive UUID>/Users/<user>/Desktop
    edl r userdata userdata.img --memory=ufs --loader=path/to/prog_ufs_firehose_sdm710_ddr.elf

    Now you can try to fix possible errors on dump file. this won't change anything on phone. then try to mount.
    Code:
    sudo apt install f2fs-tools
    sudo fsck userdata.img
    sudo mkdir /media/ubuntu/data
    sudo mount -vo loop,ro,noexec,norecovery userdata.img /media/ubuntu/data
    sudo ls -la /media/ubuntu/data
    (you should see encrypted files)