[RECOVERY][UNOFFICIAL][3.5.0][apollo]TWRP for Mi 10T/Mi 10T Pro/Redmi K30S Ultra

Search This thread

ApoMiro

Member
Feb 24, 2021
5
1
Hello,
I would like to install this TWRP recovery and than flash a custom rom, but I don't understand some things, so please a little help.
On xiaomi.eu it says:
  • Install TWRP via Fastboot mode, then install our ROM
  • Code:
    fastboot flash recovery twrp.img
    fastboot boot twrp.img
But on here the OP says:

Install guide:
To boot (Reccomended):
Code:
fastboot boot <twrp.img>
To recovery (Not Reccomended):
Code:
fastboot flash recovery <twrp.img>

The OP says that "fastboot flash recovery twrp.img" is not recommended, but on xiaomi.eu it seems is part of the process.

So, how I have to flash the recovery? I'm a bit confused. Can someone help?
Thank you
follow the guide in xiaomi.eu
it's pretty safe to flash this twrp to recovery partition now.
the worst thing can happen, when you acces it from button gesture, the /data not decrypted so you can't flash xiaomi.eu rom and you need to acces it trough fastboot..."fastboot boot [Recovery/twrp_IMG_filename].img"

n.b: if you install root and/or flash twrp don't ever lock bootloader the phone will hardbrick i think.
 
Last edited:
  • Like
Reactions: Arfoid

Arfoid

Member
Dec 20, 2019
20
2
follow the guide in xiaomi.eu
it's pretty safe to flash this twrp to recovery partition now.

n.b: if you install root and/or flash twrp don't ever lock bootloader the phone will hardbrick i think.

Hi, and thank you for the reply.
So basically I can go with " fastboot boot twrp.img" then boot into recovery manually and flash the rom, right?
Thank you
 

calinorg

Senior Member
Hello,
I would like to install this TWRP recovery and than flash a custom rom, but I don't understand some things, so please a little help.
On xiaomi.eu it says:
  • Install TWRP via Fastboot mode, then install our ROM
  • Code:
    fastboot flash recovery twrp.img
    fastboot boot twrp.img
But on here the OP says:

Install guide:
To boot (Reccomended):
Code:
fastboot boot <twrp.img>
To recovery (Not Reccomended):
Code:
fastboot flash recovery <twrp.img>

The OP says that "fastboot flash recovery twrp.img" is not recommended, but on xiaomi.eu it seems is part of the process.

So, how I have to flash the recovery? I'm a bit confused. Can someone help?
Thank you
you can do either, or both, i guess.
You could just fastboot boot without flashing twrp, i did that and it worked.
I really don't understand the process at eu site - first flash twrp to recovery partition, then boot twrp from YOUR PC, not that newly flashed twrp. That way you don't use that twrp in recovery partition at all...
 
  • Like
Reactions: Arfoid

Arfoid

Member
Dec 20, 2019
20
2
you can do either, or both, i guess.
You could just fastboot boot without flashing twrp, i did that and it worked.
I really don't understand the process at eu site - first flash twrp to recovery partition, then boot twrp from YOUR PC, not that newly flashed twrp. That way you don't use that twrp in recovery partition at all...

Thank you very much. I will try and see how it goes, hopefully no brick involved :)
 

wdnm奥

New member
Mar 5, 2021
1
0
有联系方式吗

----------

MOD EDIT: English Translation Below

Is there a contact way?
 
Last edited by a moderator:

shadowstep

Forum Moderator
Staff member
Jun 6, 2014
4,917
9,697
30
Ambala
OnePlus 5
@wdnm奥 Hi! I see that you're new here. Welcome to XDA! :) Please note that XDA is an international forum, and hence only English is permitted to be used across the website.

The above is as per the Forum Rules:

4. Use the English language.

We understand that with all the different nationalities, not everyone speaks English well, but please try. If you're really unable to post in English, use an online translator. You're free to include your original message in your own language, below the English translation. (This rule covers your posts, profile entries and signature). You could try :- https://translate.google.com/ or https://www.babelfish.com/ or use one of your choice.

As a courtesy, I've added the English translation to your post. Going forward, kindly use English to post/reply on the forum. :)

Regards,
shadowstep
Forum Moderator

----------

你好! 我看到你是新来的。 欢迎使用XDA! :) 请注意,XDA是一个国际论坛,因此整个网站仅允许使用英语。

以上内容是根据论坛规则

4。使用英语。

我们了解到,在所有不同国籍的人中,并不是每个人的英语说得很好,但请尝试一下。 如果您真的无法用英语发布,请使用在线翻译。 您可以随意在英语翻译下方以您自己的语言包含原始消息。(此规则涵盖您的帖子,个人资料条目和签名)。 您可以尝试:- https://translate.google.com/https://www.babelfish.com/ 或使用您选择的一种。

出于礼貌,我已将英语翻译添加到您的帖子中。 展望未来,请使用英语在论坛上发表/回复。:)

问候,
shadowstep
论坛主持人
 
  • Like
Reactions: munteangabi

titomax82

Senior Member
Jan 21, 2008
177
30
Since last update I found yesterday MIUI Global 12.1.2.0 stable, twrp doesn't work anymore.
I use the option to only boot twrp (latest 3.5.0_10-beta_1, but the same with 3.4.0_10).
After rebooting to twrp and pressing cancel to the password prompt, I'm not able to choose any file to flash, it seems that all folders are empty. With the previous MIUI (I don't rember version), it worked flawlessly.
Can you help me?
 

calinorg

Senior Member
Since last update I found yesterday MIUI Global 12.1.2.0 stable, twrp doesn't work anymore.
I use the option to only boot twrp (latest 3.5.0_10-beta_1, but the same with 3.4.0_10).
After rebooting to twrp and pressing cancel to the password prompt, I'm not able to choose any file to flash, it seems that all folders are empty. With the previous MIUI (I don't rember version), it worked flawlessly.
Can you help me?
Cancelling password disables decryption, and your partitions are encrypted. That's why you can't access files in storage, they stay encrypted. You have to type password/pin/pattern to decrypt storage and access files. Now, it might or might not work depending on a type of password you use (pin, pattern etc) so your best bet is to remove protections in system altogether before entering twrp...
 

totmakina

Senior Member
Nov 13, 2013
154
64
In android 10 and 11 it is not possible to make backups separately from vendor and system, right? You also cannot enter fastbootd with the fastboot reboot fastboot commands. Is there a way to get into fastbootd? I would like to install GSI LeOs and it is not possible for me
Thanks!
 

titomax82

Senior Member
Jan 21, 2008
177
30
Cancelling password disables decryption, and your partitions are encrypted. That's why you can't access files in storage, they stay encrypted. You have to type password/pin/pattern to decrypt storage and access files. Now, it might or might not work depending on a type of password you use (pin, pattern etc) so your best bet is to remove protections in system altogether before entering twrp...
First, thank you because it worked.

Second, is there a way to only boot twrp without using a computer?
 

calinorg

Senior Member
In android 10 and 11 it is not possible to make backups separately from vendor and system, right? You also cannot enter fastbootd with the fastboot reboot fastboot commands. Is there a way to get into fastbootd? I would like to install GSI LeOs and it is not possible for me
Thanks!
Command should be fastboot reboot bootloader, but I'm afraid xiaomi doesn't have fully functional fastbootd like other devices. You only get that screen, without menu. You could try sideloading from there though...
 

titomax82

Senior Member
Jan 21, 2008
177
30
I have an idea about this, but I don't know if it can work...
Do you know "panda gamepad pro"? (it's the same of octopus app for using and mapping joystick commands over screen). This app needs to be activated through adb commands, but they also sell a usb dongle which, once it's inserted in usb port, gives the right adb commands to activate the software. I say that it's a sort of "autorun".
So, we could boot the fastboot without using a computer, it must be found a way that, when I insert a usb pendrive dedicated to this task, in fastbootmode, it reads the commands to execute from the pendrive... Should this be possibile? Or am I saying very stupid things?
 

totmakina

Senior Member
Nov 13, 2013
154
64
Command should be fastboot reboot bootloader, but I'm afraid xiaomi doesn't have fully functional fastbootd like other devices. You only get that screen, without menu. You could try sideloading from there though...
from recovery stock you enter fastbootd from the following command: fastboot reboot fastboot. that's when the xiaomi doll appears with the fastbootd sign. It is fully functional. If you run fastboot reboot bootloader what you do is reboot in fastboot and not in fastbootd
 
  • Like
Reactions: calinorg

Top Liked Posts

  • 1
    What have you done?

    I face the same problem because I update full zip recovery from MIUI 12.0.4.0 (A10) to 12.1.1.0 (A11). I simply do backup and then flash the zip and flash magisk. Got this problem.

    After I flash back original boot.img (extracted from recovery/fastboot rom) from fastboot, then it boot normally, but lose the root (and magisk). Someone told me that it is because I don't disable magisk module before flashing, causing the partition to be dirty when updating.

    I don't know that yet, so I ended up flashing fastboot rom A10 (still can't boot) and factory reset data to clear all the dirty partition. In your case, you probably stucked also. You can only flash original boot.img to boot normally. Backup your data as needed, then do a factory reset (probably have to reset from original recovery) to clear all the partition. Then you can try to boot TWRP and root again using magisk, and then restore your data as needed.


    MTP is working as long as your partition is not stuck just like above. It seems you have to wipe data after flashing any ROM, as the remnant from previous ROM will get it to bootloop.
    COULD U MAKE ONE GUIDE THREAD FOR THE NOOB LIKE ME ?
    THANKS IN ADVANCE
  • 2
    solved with another unoffical twrp
    what unofficial twrp did you use?
    2
    what unofficial twrp did you use?
    look mifirm .net
    1
    Hi friends
    I have a complete TWRP backup of the pkone, and would like to restore the data to the same firmware I have, but, for some reason, when starting says :extractTarFork() process ended with ERROR=255.. extractTarFork() process ended with ERROR=255
    Is there any method to restore a saved TWRP backup? (at least, the data)
    Check log ,the bottom lines of log should show you which file or folder in data partition is causing errors, delete those and try a few time then it should work.
    1
    i had backup problem like this.
    for backup the sulution was delete this folder data\extm
    try to delete this folder end after restore backup
    1
    Hello, Augusto.
    I would try this, while Is a little more complicated , is less invasive and you can keep your config. I would not install TWRP in recovery partition, as can have future drawbacks. If you want to use TWRP, you can launch fron fastboot (fastboot boot TWRPimagename.img), but you can live without TWRP. I am still having issues to restore a backup, so pretty unusable (for me at least)

    Initial situation:

    Stock firmware with stock boot. Not rooted telephone, but Magisk APK already installed. UNLOCKED BOOTLOADER

    1.- Download the stock firmware you are currently using
    2.- From the download (ussually a ZIP or a TAR) locate the file boot.img and put in a folder in your PC. Also, copy to a folder in your phone
    3.- Open Magisk APK and ask to Install, but instead of direct install, choose patch a file. Patch the file you have copied to your phone
    4.- Once done the patch, retrieve it from the phone to the PC, to the same folder you have the original boot. Rename both, one to _original_version and the other to _patched _version, to quickly know wichch firmware version and if original or patched.
    5.- Copy both to the folder you have fastboot installed in your PC and put your phone in fastboot mode
    6.- Now we are going to install the original boot image, just in case it was already rooted, This is necesaary always prior to any update. All the update are to be applied with the original and untouched boot.
    7.- From the powershell terminal, with the phone connected in fastboot mode with the PC
    fastboot flash boot originalbootimagename_original_version.img
    8.- Boot to the system. Now your phone is not rooted (but you still have all the configurations, data....)
    9.- Download the updated firmware to your PC. Apply The same process to the new boot file, so you have a couple original boot and patched boot for the updated version
    10.- Update your phone and boot. You will have now an unrooted but updated MI 10T
    11.- Put the Patched new boot (adequately named to distinguish from the original) in your fastboot forder and launch the terminal. Put your phone in fastboot and connected to the PC
    fastboot flash boot patchednewbootimagename_patched_version.img
    Reboot. You have now an updated rooted with magisk. Apply the modules you like as usual...

    If the moderator considers this is not the place for this post (as fits better in Q&A, rooting and so on), please move toghether with the question from Augusto. I put here because the asker will look for a response here.... And sorry for giving you work...

    Good luck and forza
  • 16
    3.4.0_0 (07.11.2020)
    - Init twrp recovery
    - Decryption data
    - Vibration

    3.4.0_1 (08.11.2020)
    - Can flash twrp in recovery partition.

    3.4.0_2 (20.11.2020)
    - Fix permission denied on mount
    - Fix mtp not work after install ROM. (For me seem work)

    3.4.0_3 (21.11.2020)
    - Fix f2fs file system
    - Fix screenshots(in TWRP folder)
    - Adjust MTP device name
    - Resize GUI measures
    after wipe, I suggest you change filesystem to f2fs.

    -..


    3.4.0_10(07.12.2020)
    - /data filesystem to f2fs
    - Fix mtp after factory reset
    - Add some partition (flash .img)
    After working on TWRP for 2 weeks (without configuring the system), I finally found solution to resolve it.
    Now you can flash all roms as you have done usually

    3.5.0_10-beta_1(04.01.2021
    - Android 11 support
    - Android 11 data decryption
    - Add-on zips
    (install > select storage)
    - Add prevent twrp replace
    - Add OTA fingerprint
    Notice: in some case a11 data decryption won't work, i will fix it as soon as possible.

    Tips: after wipe data, I was set the default mtp directory to /data/media and after boot, the mtp directory will set /data/media/0.
    ----------------------------------------------------------------------
    Thanks every testers:
    @xingdu @GabSam @kimbo_985

    give me yours right id.
    ----------------------------------------------------------------------
    If you like my hard works, please buy me a coffee to keep me alive.:cry:
    PayPal
    ----------------------------------------------------------------------
    Blocking checks
    - [✔] Correct screen/recovery size
    - [✔] Working Touch, screen
    - [✔] Backup to internal/microSD
    - [✔] Restore from internal/microSD
    - [✔] reboot to system
    - [✔] ADB


    Medium checks
    - [❌] update.zip sideload
    - [✔] UI colors (red/blue inversions)
    - [✔] Screen goes off and on
    - [✔] F2FS/EXT4 Support, exFAT/NTFS where supported
    - [✔] all important partitions listed in mount/backup lists
    - [✔] backup/restore to/from external (USB-OTG) storage (not supported by the device)
    - [❌] backup/restore to/from adb (https://gerrit.omnirom.org/#/c/15943/)
    - [✔] decrypt /data
    - [✔] Correct date



    Minor checks
    - [✔] MTP export
    - [✔] reboot to bootloader
    - [✔] reboot to recovery
    - [✔] poweroff
    - [✔] battery level
    - [✔] temperature
    - [❓] encrypted backups
    - [❓] input devices via USB (USB-OTG) - keyboard, mouse and disks (not supported by the device)
    - [✔] set brightness
    - [✔] vibrate
    - [✔] screenshot
    13
    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.
    **/

    Working:
    • Boot
    • Decryption data
    • Vibration
    • flash zip
    • Android 11 support
    • Ota update
    continue in #2 post

    Not working:
    • ADB sideload

    Supported devices:
    • Mi 10T (apollo)
    • Mi 10T PRO (apollopro)
    • Redmi K30S Ultra (apollo)
    I haven't tested on Mi 10T and K30S, but it should work


    We couldn't modify /system /vendor /product and /odm, caused by new type of partition, so if you want modify them, use magisk module instead.​

    Install guide:
    To boot (Reccomended):
    Code:
    fastboot boot <twrp.img>

    To recovery (Not Reccomended):
    Code:
    fastboot flash recovery <twrp.img>

    -----
    How can I pass file to device, if mtp not work s?
    You can use adb command, to push them.
    Code:
    adb push C:\<file>.zip /sdcard

    Where are the files, which i copied with mtp?
    Maybe you can find them in /data/media

    Can i flash twrp in recovery partition?
    Yes, you can flash since 3.5.0_10-beta 1. I provided prevent-twrp-replace (to keep twrp after reboot) and stock-fingerprint (for ota update).

    -----

    Download:

    Donation:

    Discussion:


    Code source:
    https://github.com/Whyle/android_device_xiaomi_apollo
    https://github.com/TeamWin/android_bootable_recovery
    -----
    Thanks:
    @mauronofrio and other twrp developer.
    6
    My brother installed the newest 3.5.0 beta on his mi 10t pro but the system Partition doesn't show up. Flashing the newest xiaomi EU fails. (Unable to mount/unable to open block device)

    Any ideas ?

    Edit: he managed to boot the rom after a few attempts. Seems like it was a recovery bootloop. But still weird, that the system Partition does not show up in twrp
    It's because google introduced dynamic partitioning a while ago. And TWRP just added support for it in 3.5 - basically super is a "master partition" containing system, vendor, and bunch of other partitions, and instructions on where is what. Without supported software such as magisk you can't really see those partitions. TWRP just added that few days ago, so expect it to work after a while...
    4
    For those who are trying to flash xiaomi.eu roms, here is what I did using this twrp:
    (I flashed this twrp)

    **i'm from global rom mi 10t (apollo)
    **Weekly eu rom is what I installed
    **Since I cannot format the system, I tried to dirty flashed the rom.

    1. Format data only (advance format)
    2. Flash rom zip file and wait until it's done.
    *You will notice that after flashing, if you will reboot into system, you will be stucked in bootlooping into twrp.
    *In twrp, go to "mount", you will also notice that you cannot mount data and system.
    Next step...
    3. Format data (not in advance format) and wait until it's successful
    4. Go back to "mount" and you will notice now that data was already mounted.
    5. Mount system and reboot. First boot will take at least 5 minutes to load.

    *Data decryption is working when you successfully flashed the eu rom.

    This worked for me like a charm. Hope this helps.
    2
    I booted my mi 10t pro with the last twrp and installed the miui eu stable.
    twrp is not flashed and an update from the system is not possible.
    has someone flashed the TWRP_apollo_3.4.0_10_whyle and does it work? can i flash the twrp without data loss?
    There won't be any problems reflashing TWRP.
    xiaomi.eu builds work fine with this version of TWRP, just you might need to manually flash updates in recovery.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone