[RECOVERY][3.4.0-10][davinci]Official/Unofficial TWRP for Xiaomi Redmi K20 (Stable)

Search This thread

zgfg

Senior Member
Oct 10, 2016
8,515
6,240
Xiaomi Mi 11 Lite 5G
Hello,
I have this twrp3 flashed. There is something weird: the titles of the sdcard contents are just sequences of letters and/or numbers, not the proper names of the folders, so I can not install a ROM as I can properly navigate.
Anyone got an idea what's the issue here?

Many thanks.
Did you simply try to enter your Android screen unlock pin - for stock or xiaomi.eu MIUI 12, Android 10 this is enough, and there is no need to format Data. You just have to do it every time when you reboot to TWRP (just like you do it every time when you reboot to Android - hence no inconvenience here)
 
Last edited:

vblanche

Senior Member
Oct 11, 2008
154
12
Did you simply try to enter your Android screen unlock pin - for stock or xiaomi.eu MIUI 12, Android 10 this is enough, and there is no need to format Data. You just have to do it every time when you reboot to TWRP (just like you do it every time when you reboot to Android - hence no inconvenience here)
thanks, it works. I did not realise that I had to enter my pin, now it works, thanks.
 

zgfg

Senior Member
Oct 10, 2016
8,515
6,240
Xiaomi Mi 11 Lite 5G
Why don't you format data? Don't write the word yes. It seems to crash.
Formatting data is only neccessary when switching e.g. from stock to custom ROM. If you stick with stock, absolutely no need for - TWRP can perfectly access storage for read/erite, with the given pin or pattern. Absolutely no need for formatting and decrypting Data

Unfortunately, there are too omany old guides/posts even new ones where are people copy/paste wrong and unnecessary steps. Maybe you need if you use some very okd and wrong TWRP
 
Last edited:

leobahlis

Member
Nov 14, 2018
49
4
this TWRP 3.4.0 is working the password decript or need to be a pattern?
i was using 3.3.1 with android 10 and was working, now with new .eu (android 11) dont work with password to decrypt...
 

zgfg

Senior Member
Oct 10, 2016
8,515
6,240
Xiaomi Mi 11 Lite 5G
this TWRP 3.4.0 is working the password decript or need to be a pattern?
i was using 3.3.1 with android 10 and was working, now with new .eu (android 11) dont work with password to decrypt...
It works both pin and pattern.
However, for pattern it takes me sometimes minutes to wait until I could draw a pattern (grid is displayed but kind of staying passive) hence I prefer pin
 

keepercito

Senior Member
Mar 23, 2015
122
14
I recently back to stock, so I did a fastboot flash of MIUI 12 and also I want to install xiaomi.eu, but after the fastboot flash, I flashed twrp 3.4.0 and apparently it was a success installation and then, go to flash xiaomi.eu, after that I faced with encryted data on may sdcard, I though something was wrong so I did some wipe to my /data partition and cache, tried to reboot but my device stuck a long time on pink MIUI letters. I decided to reinstall again the fastboot rom and now when I tried to flash twrp it doesn't install, still get the default recovery... I dont know what happen, anyone has an idea what could be the problem??? :(
 

raul16

Senior Member
I recently back to stock, so I did a fastboot flash of MIUI 12 and also I want to install xiaomi.eu, but after the fastboot flash, I flashed twrp 3.4.0 and apparently it was a success installation and then, go to flash xiaomi.eu, after that I faced with encryted data on may sdcard, I though something was wrong so I did some wipe to my /data partition and cache, tried to reboot but my device stuck a long time on pink MIUI letters. I decided to reinstall again the fastboot rom and now when I tried to flash twrp it doesn't install, still get the default recovery... I dont know what happen, anyone has an idea what could be the problem??? :(
it get install but you must go directly from fastboot into recovery (TWRP) otherwise it is overwritten by stock and you end up in default recovery - see OP...
so after 'fastboot flash ...' do not reboot, do 'fastboot oem recovery' and you will get into twrp
in case that you want to flash a custom rom (xiaomi.eu) over stock rom you must FORMAT data (wipe not enough) as your data is encrypted - aka you do a clean install (!)
 

nemo232

Senior Member
Apr 11, 2012
82
13
Be aware, that miui based on android 11 has problem with custom recovery!!! It's not possible to boot to recovery. It's possible only from fastboot with: FASTBOOT BOOT TWRP.IMG. TWRP=name of your recovery image [emoji16]

Odoslané z Mi 9T pomocou Tapatalku
 
Last edited:

I_CRAFT

Member
Dec 25, 2013
24
8
Redmi K20 / Xiaomi Mi 9T
Be aware, that miui based on android 11 has problem with custom recovery!!! It's not possible to boot to recovery. It's possible only from fastboot with: FASTBOOT BOOT TWRP.IMG. TWRP=name of your recovery image [emoji16]

Odoslané z Mi 9T pomocou Tapatalku

I cant confirm that, i am using Miui12.2 20/10/30 (a11)
and can Boot to Recovery via hardware Keys and the extendet reboot menu.
 

theOriginalSuperl2

Senior Member
May 28, 2016
482
701
Melbourne
I'm unable to make an account on xiaomi.eu but following the final part of OP's guide fixed the pale washed out colors and broken OS miui
OP from xiaomi.eu it doesnt seem to be triggered by magisk, although it may be the case, I formatted completely (everything) and did a clean install of miui 11 beta 20.1.21 and just rebooted to recovery and it did the washed out broken os thing without magisk, it seems to be the recovery or after latest canary ( v20.4-740559e3(20305)) seems to trigger something that twrp cant handle (the "recovery mode" was ticked on the new magisk app) also now i have magisk 20300 but have the old themed app (canary channel isnt an option)[this was after hiding magisk to "Manager"]. After that i followed the guide above with the extra
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
To flash the TWRP:
Code:
fastboot flash recovery twrp-3.3.1-xx-xxxxxx-mauronofrio.img
Then reboot in TWRP manually.
and it seems to work so far without messing up miui going to post updates to see if anything breaks it... working up the courage to get edxposed again.
you can back up your data in recovery even when its in that 'broken state' just copy it to ur pc because you probly have to do a full wipe etc..:good::good::good:
https://xiaomi.eu/community/threads/magisk-problems.54567/#post-529119
yup happened again i tried to save the install but even just flashing vbmeta and twrp it would clear the enablefilecrypto_ but upon reboot it would return (removed magisk and tried a older version) with no luck. Id love to record the logs but once booted into android/miui its basicly f***ed and you cannot do anything.
This morning I updated to latest canary magisk with the app and the phone took about 15 minutes to boot, then the screen was washed, very pale color and nothing worked, tried settings, apps, etc everything caused bootloop.

Flashed ROM and magisk again and happened the same. Unistalled magisk (with TWRP) and didn't work either.

So clean flash, wiped everything, format data and phone booted perfectly, set it with account etc.. and install magisk and all the problem started again.....

Tried a new clean flash but installing magisk right after the ROM but TWRP (latest official) give me "updater process ended with error 1 magisk"

Any tip? Don't know what more can I do...

Thanks in advance.
Edit: I'm on latest xiaomi eu beta

I just got this on my K20 Pro, this is the only reference to the issue that I can find.
I think it's actually caused by rebooting into recovery from software, like from Magisk Manager, the MIUI power menu, or even with ADB.
 

sonnhy

Senior Member
Jun 24, 2012
718
97
Redmi K20 / Xiaomi Mi 9T
I'm trying to do a full backup of the whole phone via recovery, with all the partitions checked.
I'm on Mi 9T EU, on the latest firmware, on Lineage 11-11-2020, on TWRP 3.4.0
After the process has started, when reaching the Data partition, the process fails. The error is the following:
Code:
...
I:addFile '/data/vendor/mediadrm/IDM1013/L1' including root: 1
  ==> set selinux context: u:object_r:mediadrm_vendor_data_file:s0
found policy '/data/vendor/mediadrm/IDM1013/L1' - '1DK' - '0ab10fbae90332e0'
I:addFile '/data/vendor/mediadrm/IDM1013/L1/usgtable.bin' including root: 1
  ==> set selinux context: u:object_r:mediadrm_vendor_data_file:s0
I:addFile '/data/vendor/mediadrm/IDM1013/L1/certLHCAHdhvaa-aBHTfHz9-WA==.bin' including root: 1
  ==> set selinux context: u:object_r:mediadrm_vendor_data_file:s0
I:addFile '/data/vendor/mediadrm/IDM1013/L1/cert2I6Z13AjyqJ_6dD1e3hq2Q==.bin' including root: 1
  ==> set selinux context: u:object_r:mediadrm_vendor_data_file:s0
I:addFile '/data/vendor_ce' including root: 1
  ==> set selinux context: u:object_r:vendor_data_file:s0
I:addFile '/data/vendor_ce/0' including root: 1
  ==> set selinux context: u:object_r:vendor_data_file:s0
failed to lookup tar policy for '/data/vendor_ce/0' - '88f5b9f6bff79727'
I:Error adding file '/data/vendor_ce/0' to '/data/media/0/TWRP/BACKUPS/35c0c331/2020-11-16--21-43-55_lineage_davinci-userdebug_10_QQ3A200805001/data.f2fs.win000'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/35c0c331/2020-11-16--21-43-55_lineage_davinci-userdebug_10_QQ3A200805001/data.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
I:Copied file /tmp/recovery.log to /data/media/0/TWRP/BACKUPS/35c0c331/2020-11-16--21-43-55_lineage_davinci-userdebug_10_QQ3A200805001/recovery.log
I:Set page: 'action_complete'
I:operation_end - status=1
...
 

blinkycan

Senior Member
Mar 1, 2019
51
10
can i use 3.5.0-9.0 official for android 10 roms? why it's not android 10?

and how to decrypt work profile user 10 ? it ask me for a password but i'm using a scheme
 

Lighta

New member
Jan 1, 2021
2
0
Hello together,
did this custom rom support ASHA (Audio Streaming for Hearing Aids)?
Or are they any other custom rom for Xiaomi mi 9t that supports this feature?
Thank you
 

djdelarosa25

Senior Member
May 27, 2014
1,144
475
Moto Z Play
Samsung Galaxy S20 FE
can i use 3.5.0-9.0 official for android 10 roms? why it's not android 10?

and how to decrypt work profile user 10 ? it ask me for a password but i'm using a scheme
It says 9.0 because davinci released with Android 10. Yes, it does work with Android 10+ ROMs.
Hello together,
did this custom rom support ASHA (Audio Streaming for Hearing Aids)?
Or are they any other custom rom for Xiaomi mi 9t that supports this feature?
Thank you
This is a custom recovery, not a custom ROM.
 

Hazem1abc

Member
Mar 2, 2016
44
5
alexandria
hello guys ,
iam new here , i got my files encrypted by twrp and cant boot to system and i got random letters and numbers for all files in internal storage
iam using twrp 3.3.1-2
anyone knows how to decrypt my files back or even boot to system once cause i really have very very important files for work and college and it will be a nightmare if i lost them
please help..
 

Top Liked Posts