[GUIDE] Fix device automatically rebooting after few seconds of booting.

Edwin Hamal

Senior Member
Feb 21, 2014
234
62
0
If you are having a weird bootloop where the phone just reboots after few seconds of booting like shown here (https://www.youtube.com/watch?v=3YcWsWYQVGQ) then you're in the right place, here's how you can fix the issue.
Before proceeding make sure you know your risks as I am not responsible for bricked devices, dead SD cards, thermonuclear war and anything really.
Steps:
1) Download Mi Flash Tool and install it. (For the drivers, skip it if you have installed the drivers already)
2) Download and Install minimal ADB and Fastboot Tool, persist.img and temporary twrp.img links will be below.
3) Copy the persist.img to your internal storage.
4) Copy the recoveryxx.img to same folder where you've saved the minimal ADB/Fastboot tool.
4) Goto the minimal adb fastboot tool folder where you had put the recoveryxx.img
5) Open cmdhere.exe
6) Put your phone in fastboot mode (Volume - and Power)
7) Type the following commands:
- fastboot devices (you should something like this:
Fastboot dsad5454sfs, If not, re-install the the fastboot drivers correctly. )
- fastboot oem unlock (This is just for unlocking the bootloader you can just skip it if you have unlocked bootloader.)
- fastboot boot recoveryxx.img *(basically the filename of the image file.)
Now you will boot to the temporary twrp and once you're there follow these steps:
8) Open Terminal in TWRP Custom Recovery (go to “Advanced” > “Terminal”).
9) Type the following command:
- dd if=/sdcard/persist.img of=/dev/block/mmcblk0p27
10) Go to reboot and select system and that's it!
Voila!
Minimal ADB and Fastboot tool: https://forum.xda-developers.com/sho....php?t=2317790
Mi Flash Tool: http://c.mi.com/thread-235054-1-1.html
TWRP Recovery: https://forum.xda-developers.com/mi-a1/development/recovery-twrp-3-1-1-0-touch-recovery-t3688472 , download the recovery3/2x.img according the android version your on.
Persist(Using this persist.img file is a must) : https://xiaomifirmware.com/download-link/?dlm-dp-dl=7270
 
Last edited:

zidanne

Member
Jan 2, 2008
13
0
0
Step 7.1 adb devices
Step 7.2 adb push persist.img /sdcard

Worked in my case.

Thanks

---------- Post added at 03:12 AM ---------- Previous post was at 03:10 AM ----------

Now i need to fix my IMEI
 

keyoke_za

New member
Aug 24, 2018
1
0
0
Can I re-lock bootloader?

Hi,
Flashing the persist.img seems to have resolved the issue for me also, once I have completed the steps in the guide can I re-lock the bootloader?
I assume as we didn't flash TWRP and only booted into it temporarily should be fine?
Thanks