[OFFICIAL][TWRP]Official TWRP For Xiaomi Redmi 5

hkjo

Member
Mar 24, 2013
31
2
0
If it's just a superset, you may say it can only be better.

But I will concede that if the superset is not as rigorously tested it may have bugs that weren't in the baseline.
 

aIecxs

Senior Member
Feb 17, 2016
945
294
73
after MIUI update Oreo (miui_HM5Global_V10.3.2.0.ODAMIXM_c9235681be_8.1.zip) the TWRP from post #14 does not work anymore

Code:
Data successfully decrypted, new block device: '/dev/block/dm-0'
Successfully decrypted with default password.
Failed to mount '/data' (No such process)
however, seems it has just problem with mounting /data but no problem with decryption. so i checked the file system showing the magic 53 ef at offset 0x438 which confirmed to me it is a ext4 partition. i mounted manually and was able to create a backup to external MicroSD Card

Code:
[email protected] ~/Android/Backup/rosy $ adb shell
/ # hexdump -C -n1088 /dev/block/dm-0
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000400  e0 33 18 00 f3 bb 60 00  00 80 00 00 6c a0 2a 00  |.3....`.....l.*.|
00000410  9c 16 17 00 00 00 00 00  02 00 00 00 02 00 00 00  |................|
00000420  00 80 00 00 00 80 00 00  f0 1f 00 00 bd 76 59 5d  |.............vY]|
00000430  bd 76 59 5d d1 00 0a 00  [COLOR="Red"]53 ef[/COLOR] 01 00 02 00 00 00  |.vY]....S.......|
00000440
/ # mkdir /tmp/data
/ # busybox mount -t ext4 -o ro,noexec,noload /dev/block/dm-0 /tmp/data
/ # cd /tmp/data
/tmp/data # ls
FTM_AP          connectivity    mediadrm        security
adb             dalvik-cache    misc            shared
anr             data            misc_ce         ss
app             dpm             misc_de         system
app-asec        drm             miui            system_ce
app-ephemeral   fota            mqsas           system_de
app-lib         fpc_tpl         nfc             thermal
app-private     hostapd         ota             time
audio           local           ota_package     tombstones
backup          log             property        user
bootchart       lost+found      resource-cache  user_de
cache           media           sdcard          vendor
/tmp/data # busybox mount -o bind /tmp/data /data
/tmp/data # busybox mount -o bind /tmp/data/media /sdcard
/tmp/data # busybox mount -o bind /tmp/data/media/0 /sdcard
/tmp/data # ls /sdcard
Android          MiVideoGlobal    Tumblr           fac_sources
Camera           PeriodCalendar   WhatsApp         temp
DCIM             Pictures         bluetooth        usb_cam_log.txt
Download         Recording        dctp             wlan_logs
Kik              Snapseed         did              wt_logs
MIUI             TWRP             downloaded_rom
/tmp/data # df
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                  1439020       156   1438864   0% /dev
tmpfs                  1439020        32   1438988   0% /tmp
/dev/block/mmcblk0p25
                        507848      6356    491008   1% /cache
/dev/block/mmcblk1p1  30367456  17639040  12728416  58% /sdcard1
/dev/block/dm-0       24960064  13785744  11026864  56% /tmp/data
/dev/block/dm-0       24960064  13785744  11026864  56% /data
/dev/block/dm-0       24960064  13785744  11026864  56% /sdcard
/tmp/data #
i managed to copy all files from Internal storage to PC via USB
Code:
adb pull /sdcard/
edit: even when /dev/block/mmcblk0p49 formatted with mke2fs TWRP is not able to mount, neither encrypted nor unencrypted. manually mount works. does anybody know the reason for this? Redmi 5 Plus seems to have similar issue related to disk quota

edit2: i have included the read-only mount for encrypted userdata and added option to backup internal storage in this twrp-recovery-3.2.3-redmi5-rosy-emergency.zip - use it for backup to external MicroSD Card only. USB MTP is working, too
 
Last edited:
  • Like
Reactions: hkjo

Nitin2953

New member
Sep 15, 2017
3
0
11
TWRP Show 0MB Internal Storage

I Have Redmi 5 Latest Official Package Installed
Code:
• MIUI version ⇒ MIUI Global 11.0.2  |  Stable 11.0.2.0(ODAMIXM)
• Android version ⇒ 8.1.0 OPM1.171019.026
• Security patch level ⇒ 2019-12-01
After the Update Of MIUI 10 V10.1.3.0.ODAMIFI ANDROID 8.1 Flashing OR Booting TWRP Showing 0MB Internal Storage
I'm not able to flash anything

I'm Frustrated with MIUI 11[no update] & Android 8.1 Oreo
Just wanted to install Resurrection Remix ROM => Magisk
What should I do to properly Install TWRP without Facing Internal Storage 0MB Error
 
Last edited:

Michael P.

Member
Mar 12, 2020
14
3
3
I Have Redmi 5 Latest Official Package Installed


After the Update Of MIUI 10 V10.1.3.0.ODAMIFI ANDROID 8.1 Flashing OR Booting TWRP Showing 0MB Internal Storage
I'm not able to flash anything

I'm Frustrated with MIUI 11[no update] & Android 8.1 Oreo
Just wanted to install Resurrection Remix ROM => Magisk
What should I do to properly Install TWRP without Facing Internal Storage 0MB Error
Don't use official twrp recovery. Use xdoge recovery.