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

[RECOVERY][3.4.0-10][dipper] Official/Unofficial TWRP recovery for Xiaomi Mi 8

Search This thread

mauronofrio

Recognized Developer
Jun 29, 2012
4,359
13,691
24
Castellana Grotte
toolaio.tk
Team Win Recovery Project 3.x, or twrp3 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:
#include <std_disclaimer.h>
/*
*
* 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.
*
*/

Features:
- Decrypt works
- Mtp works
- Adb works
- Notch theme included ( https://goo.gl/zh9ATT )
- EDL Button (Only in the unofficial one)
- Android 10/Q support
- Android 11 Decryption

Download:
TWRP 3.4.0-10 Unofficial by mauronofrio
TWRP 3.4.0-0 Unofficial by mauronofrio

TWRP 3.3.1-2 Unofficial by mauronofrio
TWRP 3.3.1-1 Unofficial by mauronofrio
TWRP 3.3.1-0 Unofficial by mauronofrio
TWRP 3.2.3-5 Unofficial by mauronofrio
TWRP 3.2.3-4 Unofficial by mauronofrio
TWRP 3.2.3 Official by mauronofrio (Actually the official one is the same of the 3.2.3-3 unofficial)

Reccomended ADB and Fastboot binaries:

Adb and Fastboot Installer

Source code:
https://github.com/omnirom/android_bootable_recovery
https://github.com/mauronofrio/android_device_xiaomi_dipper

Donations:



Credits:
@notsyncing
@alfazulu77

Created 2019-01-26
 
Last edited:

mauronofrio

Recognized Developer
Jun 29, 2012
4,359
13,691
24
Castellana Grotte
toolaio.tk
Hi, Is It multilanguage? And Can I use for install Xiaomi.eu rom?

Inviato dal mio MI 8 utilizzando Tapatalk

It's multilanguage, i don't remember if i added also extra languages, in all cases i can add it easily. For the .eu rom i have not tested it

EDIT: tested and with this twrp you can flash the .eu
 
Last edited:

marco-ko

Member
Oct 16, 2016
19
2
I installed with twrp and when restart recovery it freeze at home Page teamwin 3.2.3.0 without show install, wipe etc... :(
Now i have to flash another with fastboot :(

Inviato dal mio MI 8 utilizzando Tapatalk
 

JustinTrouble

Senior Member
May 16, 2010
293
51
Amazon Fire TV
Xiaomi Poco X3 NFC
I installed with twrp and when restart recovery it freeze at home Page teamwin 3.2.3.0

Can you tell me on which rom you are now?

I have the same problem. It freezes on the TWRP splash screen.

I'm running the latest Syberia Project ROM (syberia_dipper-v2.1-20190113-1557-OFFICIAL) and I flashed from fastboot.

I don't know if this logcat is helpful...?
Code:
01-27 11:34:03.243   522   522 E cutils-trace: Error opening trace file: No such file or directory (2)
01-27 11:34:03.243   517   517 E cutils-trace: Error opening trace file: No such file or directory (2)
01-27 11:34:03.256   517   517 W hwservicemanager: getTransport: Cannot find entry [email protected]::IServiceManager/default in either framework or device manifest.
01-27 11:34:03.256   517   517 E SELinux : avc:  denied  { find } for interface=android.hardware.keymaster::IKeymasterDevice pid=522 scontext=u:r:recovery:s0 tcontext=u:object_r:hal_keymaster_hwservice:s0 tclass=hwservice_manager permissive=1
01-27 11:34:03.257   517   517 W hwservicemanager: getTransport: Cannot find entry [email protected]::IKeymasterDevice/default in either framework or device manifest.
01-27 11:34:03.258   522   522 I ServiceManagement: getService: Trying again for [email protected]::IKeymasterDevice/default...
01-27 11:34:04.258   522   522 W ServiceManagement: Waited one second for [email protected]::IKeymasterDevice/default. Waiting another...
01-27 11:34:06.258   522   522 I chatty  : uid=0(root) /sbin/recovery identical 2 lines
01-27 11:34:07.258   522   522 W ServiceManagement: Waited one second for [email protected]::IKeymasterDevice/default. Waiting another...
01-27 11:34:08.090   573   575 I adbd    : initializing functionfs
01-27 11:34:08.090   573   575 I adbd    : opening control endpoint /dev/usb-ffs/adb/ep0
01-27 11:34:08.092   573   575 I adbd    : functionfs successfully initialized
01-27 11:34:08.092   573   575 I adbd    : registering usb transport
01-27 11:34:08.092   573   577 E cutils-trace: Error opening trace file: No such file or directory (2)
01-27 11:34:08.258   522   522 W ServiceManagement: Waited one second for [email protected]::IKeymasterDevice/default. Waiting another...
 
Last edited:

marco-ko

Member
Oct 16, 2016
19
2
It freezes even if I load it with fastboot boot twrp 3.2.3-0-dipper.img.
I checked MD5 sum and it is the same as that shown on the androidfilehost web page.

I don't understand what is the issue.

P.S.:
If it could be useful my Mi8 is 6/128Gb CN version with MIUI 10.2.2.0 global stabile and Magisk v18.

I also flashed disable no-verity ForceEncrypt to allow O.S. to boot

Inviato dal mio MI 8 utilizzando Tapatalk
 
Last edited:

mauronofrio

Recognized Developer
Jun 29, 2012
4,359
13,691
24
Castellana Grotte
toolaio.tk
It freezes even if I load it with fastboot boot twrp 3.2.3-0-dipper.img.
I checked MD5 sum and it is the same as that shown on the androidfilehost web page.

I don't understand what is the issue.

P.S.:
If it could be useful my Mi8 is 6/128Gb CN version with MIUI 10.2.2.0 global stabile and Magisk v18.

I also flashed disable no-verity ForceEncrypt to allow O.S. to boot

Inviato dal mio MI 8 utilizzando Tapatalk

Forceencrypt is no more needed, i need to check a bit, seems there is a bug for someone
 
  • Like
Reactions: By.TRabZonLu™

mauronofrio

Recognized Developer
Jun 29, 2012
4,359
13,691
24
Castellana Grotte
toolaio.tk
I have the same problem. It freezes on the TWRP splash screen.

I'm running the latest Syberia Project ROM (syberia_dipper-v2.1-20190113-1557-OFFICIAL) and I flashed from fastboot.

I don't know if this logcat is helpful...?
Code:
01-27 11:34:03.243   522   522 E cutils-trace: Error opening trace file: No such file or directory (2)
01-27 11:34:03.243   517   517 E cutils-trace: Error opening trace file: No such file or directory (2)
01-27 11:34:03.256   517   517 W hwservicemanager: getTransport: Cannot find entry [email protected]::IServiceManager/default in either framework or device manifest.
01-27 11:34:03.256   517   517 E SELinux : avc:  denied  { find } for interface=android.hardware.keymaster::IKeymasterDevice pid=522 scontext=u:r:recovery:s0 tcontext=u:object_r:hal_keymaster_hwservice:s0 tclass=hwservice_manager permissive=1
01-27 11:34:03.257   517   517 W hwservicemanager: getTransport: Cannot find entry [email protected]::IKeymasterDevice/default in either framework or device manifest.
01-27 11:34:03.258   522   522 I ServiceManagement: getService: Trying again for [email protected]::IKeymasterDevice/default...
01-27 11:34:04.258   522   522 W ServiceManagement: Waited one second for [email protected]::IKeymasterDevice/default. Waiting another...
01-27 11:34:06.258   522   522 I chatty  : uid=0(root) /sbin/recovery identical 2 lines
01-27 11:34:07.258   522   522 W ServiceManagement: Waited one second for [email protected]::IKeymasterDevice/default. Waiting another...
01-27 11:34:08.090   573   575 I adbd    : initializing functionfs
01-27 11:34:08.090   573   575 I adbd    : opening control endpoint /dev/usb-ffs/adb/ep0
01-27 11:34:08.092   573   575 I adbd    : functionfs successfully initialized
01-27 11:34:08.092   573   575 I adbd    : registering usb transport
01-27 11:34:08.092   573   577 E cutils-trace: Error opening trace file: No such file or directory (2)
01-27 11:34:08.258   522   522 W ServiceManagement: Waited one second for [email protected]::IKeymasterDevice/default. Waiting another...

Can you extract the recovery log you can fin in /tmp when you boot the twrp? You can extract it via adb
 
  • Like
Reactions: By.TRabZonLu™

JustinTrouble

Senior Member
May 16, 2010
293
51
Amazon Fire TV
Xiaomi Poco X3 NFC
Can you extract the recovery log you can fin in /tmp when you boot the twrp? You can extract it via adb

Of course. Here it is...
Code:
Starting TWRP 3.2.3-0-2315e859 on Mon Apr 13 01:02:20 1970
 (pid 521)
BOARD_HAS_NO_REAL_SDCARD := true
RECOVERY_SDCARD_ON_DATA := true
I:Lun file '/sys/class/android_usb/android0/f_mass_storage/lun0/file' does not exist, USB storage mode disabled
TW_INCLUDE_CRYPTO := true
I:TW_BRIGHTNESS_PATH := /sys/class/backlight/panel0-backlight/brightness
I:Found brightness file at '/sys/class/backlight/panel0-backlight/brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 420
I:LANG: en
Starting the UI...
setting DRM_FORMAT_BGRA8888 and GGL_PIXEL_FORMAT_BGRA_8888
setting DRM_FORMAT_ARGB8888 and GGL_PIXEL_FORMAT_RGBA_8888
setting DRM_FORMAT_ARGB8888 and GGL_PIXEL_FORMAT_RGBA_8888
Using drm graphics.
I:TWFunc::Set_Brightness: Setting brightness control to 420
I:Loading package: splash (/twres/splash.xml)
I:Load XML directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly
I:Checking resolution...
I:Scaling theme width 1.000000x and height 1.170833x, offsets x: 0 y: 0 w: 0 h: 0
I:Loading resources...
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Loading page splash
I:Switching packages (splash)
=> Linking mtab
=> Processing /etc/recovery.fstab
I:Reading /etc/recovery.fstab
I:Processing '/boot'
I:Processing '/cache'
I:Processing '/recovery'
I:Processing '/system'
I:Processing '/vendor'
I:Processing '/system_image'
I:Processing '/vendor_image'
I:Processing '/data'
I:FBE contents 'ice', filenames 'aes-256-cts'
I:Processing '/firmware'
I:Created '/firmware' folder.
I:Processing '/cust'
I:Created '/cust' folder.
I:Processing '/misc'
I:Processing '/modem'
I:Processing '/bluetooth'
I:Processing '/dsp'
I:Processing '/efs1'
I:Processing '/efs2'
I:Processing '/efsc'
I:Processing '/efsg'
I:Processing '/persist'
I:Created '/persist' folder.
I:TWFunc::Fixup_Time: Pre-fix date and time: 1970-04-13--01-02-20
I:TWFunc::Fixup_Time: Setting time offset from file /sys/class/rtc/rtc0/since_epoch
I:TWFunc::Fixup_Time: will attempt to use the ats files now.
I:TWFunc::Fixup_Time: Setting time offset from file /persist/time/ats_2, offset 1539800375167
I:TWFunc::Fixup_Time: Date and time corrected: 2019-01-27--19-21-56
I:Processing '/usb_otg'
I:Created '/usb_otg' folder.
I:Done processing fstab files
I:Setting up '/data' as data/media emulated storage.
I:mount -o bind '/data/media' '/sdcard' process ended with RC=0
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
I:File Based Encryption is present
e4crypt_initialize_global_de
calling retrieveAndInstallKey
Key exists, using: /data/unencrypted/key
 
  • Like
Reactions: mauronofrio

mauronofrio

Recognized Developer
Jun 29, 2012
4,359
13,691
24
Castellana Grotte
toolaio.tk
Of course. Here it is...
Code:
Starting TWRP 3.2.3-0-2315e859 on Mon Apr 13 01:02:20 1970
 (pid 521)
BOARD_HAS_NO_REAL_SDCARD := true
RECOVERY_SDCARD_ON_DATA := true
I:Lun file '/sys/class/android_usb/android0/f_mass_storage/lun0/file' does not exist, USB storage mode disabled
TW_INCLUDE_CRYPTO := true
I:TW_BRIGHTNESS_PATH := /sys/class/backlight/panel0-backlight/brightness
I:Found brightness file at '/sys/class/backlight/panel0-backlight/brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 420
I:LANG: en
Starting the UI...
setting DRM_FORMAT_BGRA8888 and GGL_PIXEL_FORMAT_BGRA_8888
setting DRM_FORMAT_ARGB8888 and GGL_PIXEL_FORMAT_RGBA_8888
setting DRM_FORMAT_ARGB8888 and GGL_PIXEL_FORMAT_RGBA_8888
Using drm graphics.
I:TWFunc::Set_Brightness: Setting brightness control to 420
I:Loading package: splash (/twres/splash.xml)
I:Load XML directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly
I:Checking resolution...
I:Scaling theme width 1.000000x and height 1.170833x, offsets x: 0 y: 0 w: 0 h: 0
I:Loading resources...
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Loading page splash
I:Switching packages (splash)
=> Linking mtab
=> Processing /etc/recovery.fstab
I:Reading /etc/recovery.fstab
I:Processing '/boot'
I:Processing '/cache'
I:Processing '/recovery'
I:Processing '/system'
I:Processing '/vendor'
I:Processing '/system_image'
I:Processing '/vendor_image'
I:Processing '/data'
I:FBE contents 'ice', filenames 'aes-256-cts'
I:Processing '/firmware'
I:Created '/firmware' folder.
I:Processing '/cust'
I:Created '/cust' folder.
I:Processing '/misc'
I:Processing '/modem'
I:Processing '/bluetooth'
I:Processing '/dsp'
I:Processing '/efs1'
I:Processing '/efs2'
I:Processing '/efsc'
I:Processing '/efsg'
I:Processing '/persist'
I:Created '/persist' folder.
I:TWFunc::Fixup_Time: Pre-fix date and time: 1970-04-13--01-02-20
I:TWFunc::Fixup_Time: Setting time offset from file /sys/class/rtc/rtc0/since_epoch
I:TWFunc::Fixup_Time: will attempt to use the ats files now.
I:TWFunc::Fixup_Time: Setting time offset from file /persist/time/ats_2, offset 1539800375167
I:TWFunc::Fixup_Time: Date and time corrected: 2019-01-27--19-21-56
I:Processing '/usb_otg'
I:Created '/usb_otg' folder.
I:Done processing fstab files
I:Setting up '/data' as data/media emulated storage.
I:mount -o bind '/data/media' '/sdcard' process ended with RC=0
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
I:File Based Encryption is present
e4crypt_initialize_global_de
calling retrieveAndInstallKey
Key exists, using: /data/unencrypted/key

Ok, can you share also a full dmesg? do you know how to make it?
Maybe can you also share a full logcat? you can copy it on pastebin

EDIT: no more needed, can i ask you which twrp you are using actually?
 
Last edited:
  • Like
Reactions: By.TRabZonLu™

Top Liked Posts