• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[Official][Recovery][TWRP]TWRP For Xiaomi Redmi 4X

Search This thread

TingyiChen

Senior Member
May 28, 2016
179
1,239
Huanggang
Team Win Recovery Project 3.x, or TWRP3.x for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
Code:
/*
 * Your warranty is now void.
 *
 * We are not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at us for messing up your device, we will laugh at you.
 *
 */
Download : TWRP For Santoni
Source Device Tree: Device Tree For Building TWRP
 
Last edited:

cikenkari

Senior Member
Oct 7, 2011
131
22
just press cancel when it asking the password, then wipe DATA, this will bring your phone to factory reset and at next recovery boot twrp will not asking password anymore
 

M4rQu1Nh0S

Senior Member
Sep 18, 2015
103
17
Guarulhos
The TWRP have a bug with ROM Backup, about Password in lockscreen.
The fix and the bug has been reported in the One Plus Forum:
https://forums.oneplus.net/threads/fix-wrong-pin-pattern-when-restoring-twrp-nandroid-backup.452384/

This TWRP don't save the password of ROM in they backup
If i do a backup from Rom1 and the Rom2, and if i reinstall ROM1 with backup and after this restore the backup of ROM2, my password will be incorrect, after restart the system and try access the system as found in the One Plus Forum:

When you create and restore a TWRP backup (as example because you tried out a custom ROM and saw that it's not good) you'll be greeted with:

a) A "enter PIN before boot" screen
b) A wrong lockscreen code (either PIN or Pattern) when booted to Android

[...]Is needed delete (or rename) the following files inside /data/system (note that probably not all of them exist for you, simply delete those you can find) to regain access of your system backup:
*password.key
*pattern.key
*locksettings.db-wal
*locksettings.db-shm
*locksettings.db
[...]

I have one MOTO G2 Titan with own TWRP that don't have this bug.
Will be great add some commands in TWRP to ease this problem!

If i'm wrong in some part please correct me!
 

peffel

Member
Aug 19, 2011
22
5
Hi guys, I have a problem. I flashed the TWRP and when I try to boot with Volume Up, I only start in the Mi Recovery mode with some chinese touch buttons. After booting into TWRP with "fastboot boot twrp.img" I cant boot into MiUI. Just have the Mi logo and it won't go any further.
Any suggestions? Thanks!
 

M4rQu1Nh0S

Senior Member
Sep 18, 2015
103
17
Guarulhos
Hi guys, I have a problem. I flashed the TWRP and when I try to boot with Volume Up, I only start in the Mi Recovery mode with some chinese touch buttons. After booting into TWRP with "fastboot boot twrp.img" I cant boot into MiUI. Just have the Mi logo and it won't go any further.
Any suggestions? Thanks!

I've placed the twrp recovery in boot sector place of device, the command is wrong:
"fastboot boot twrp.img"

The correct command is, i guess:
"fastboot flash recovery twrp.img"

To reverse the problem you need the boot.img file of you ROM back and flash with command:
"fastboot boot boot.img" or "fastboot flash boot boot.img"
 

incubus9867

Member
Aug 26, 2017
7
1
I have Redmi 4X. I have installed TWRP on it. But I can't boot into recovery mode. After flashing TWRP when my device reboot, then my stock recovery appears. I can only boot to TWRP by "fastboot boot recovery.img". Otherwise, I can't boot into TWRP recovery mode in no way. Please help me. I flashed official TWRP...
 

kriak24

Member
Jan 27, 2007
43
7
I have Redmi 4X. I have installed TWRP on it. But I can't boot into recovery mode. After flashing TWRP when my device reboot, then my stock recovery appears. I can only boot to TWRP by "fastboot boot recovery.img". Otherwise, I can't boot into TWRP recovery mode in no way. Please help me. I flashed official TWRP...

Do you use VolUp + Power to enter TWRP? This didn't work for me too.
Try VolUp + VolDown + Power at the same time. It works for me.
 

BarnOwl

Senior Member
Jan 21, 2003
466
117
The Netherlands
www.parketvloeren.nl
I've placed the twrp recovery in boot sector place of device, the command is wrong:
"fastboot boot twrp.img"

The correct command is, i guess:
"fastboot flash recovery twrp.img"

To reverse the problem you need the boot.img file of you ROM back and flash with command:
"fastboot boot boot.img" or "fastboot flash boot boot.img"

Found out there is a lot of problems with this version of TWRP. I installed it as a .zip from existing TWRP, didn't boot at all. Then I installed it as IMG, had it starting but all kind of misery when installing custom rom, so went back to TWRP 3.1.0-1
that is working flawless.
 
Last edited:

arthur.

Member
Jan 24, 2011
17
0
Hi guys, I have a problem. I flashed the TWRP and when I try to boot with Volume Up, I only start in the Mi Recovery mode with some chinese touch buttons. After booting into TWRP with "fastboot boot twrp.img" I cant boot into MiUI. Just have the Mi logo and it won't go any further.
Any suggestions? Thanks!
if its not fixed yet, you can switch languange to English. Must be looking like 中文 (https://translate.google.de/#en/zh-TW/chinese)
and one of the others buttons is the recovery. after first install of twrp theres its not possible to run again into miui. it stops at the logo. Enter TWRP and flash a new ROM
 

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    Team Win Recovery Project 3.x, or TWRP3.x for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
    Code:
    /*
     * Your warranty is now void.
     *
     * We are not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at us for messing up your device, we will laugh at you.
     *
     */
    Download : TWRP For Santoni
    Source Device Tree: Device Tree For Building TWRP
    5
    The easiest way to get TWRP 3.1.1.0 on your phone would be presented here: >LINK<
    4
    TWRP updated!

    Changelog:
    * Fixed all decryption issues.
    * Updated with Pie kernel.

    Link: https://twrp.me
    3
    DON'T install that linked version!!! It's the 3.1.1 again!
    Haven't you been reading version 3.1.1 is faulty!
    Version 3.1.0 is the one to go for, no problems with that one

    So the 3.1.1 decryption password problem hasn't been fixed?
    I would update to the twrp3.1.1 if it worked flawlessly, but I'm not going to do a data partition format and re-install my system just to get around a twrp 3.1.1 bug...
    that doesnt make sense.
    I'll just stick with 3.1.0 until a proper 3.1.x comes out, as they say never change a working system

    So twice you advice here against a perfect working recovery without even trying it? I give up.............
    3
    The TWRP have a bug with ROM Backup, about Password in lockscreen.
    The fix and the bug has been reported in the One Plus Forum:
    https://forums.oneplus.net/threads/fix-wrong-pin-pattern-when-restoring-twrp-nandroid-backup.452384/

    This TWRP don't save the password of ROM in they backup
    If i do a backup from Rom1 and the Rom2, and if i reinstall ROM1 with backup and after this restore the backup of ROM2, my password will be incorrect, after restart the system and try access the system as found in the One Plus Forum:

    When you create and restore a TWRP backup (as example because you tried out a custom ROM and saw that it's not good) you'll be greeted with:

    a) A "enter PIN before boot" screen
    b) A wrong lockscreen code (either PIN or Pattern) when booted to Android

    [...]Is needed delete (or rename) the following files inside /data/system (note that probably not all of them exist for you, simply delete those you can find) to regain access of your system backup:
    *password.key
    *pattern.key
    *locksettings.db-wal
    *locksettings.db-shm
    *locksettings.db
    [...]

    I have one MOTO G2 Titan with own TWRP that don't have this bug.
    Will be great add some commands in TWRP to ease this problem!

    If i'm wrong in some part please correct me!