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

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

Search This thread

GizmoTheGreen

Senior Member
Jun 13, 2010
363
52
i9100
Ouya
Can I flash this directly in partition? (will it cause bootloop?)
Cause what I always do is boot twrp only
looks like it works best booted directly.
fastboot boot <filename.img>

if booted from recovery partition (fastboot flash recovery <filename.img>) then reboot, it can't decrypt data partition for whatever reason.

but booted directly from bootloader with fastboot it can?? xD
 
  • Like
Reactions: Nickson TDR

Nickson TDR

Member
Jul 11, 2016
14
8
looks like it works best booted directly.
fastboot boot <filename.img>

if booted from recovery partition (fastboot flash recovery <filename.img>) then reboot, it can't decrypt data partition for whatever reason.

but booted directly from bootloader with fastboot it can?? xD
will turning off the PIN/fingerprint password in the settings before booting twrp from recovery could work?
Cause I think that decrypt problem is caused by the PIN?
 

GizmoTheGreen

Senior Member
Jun 13, 2010
363
52
i9100
Ouya
will turning off the PIN/fingerprint password in the settings before booting twrp from recovery could work?
Cause I think that decrypt problem is caused by the PIN?
flashing twrp and then booting phone into recovery = password and decryption fails
booting twrp directly through fastboot = password and decryption works

I don't know why it is like this.
 

mike$47

Member
Aug 8, 2008
24
0
In TWRP 3.5.0_10-beta1 I can mount the system partition but not wipe or backup (its not shown in menu).
I'm currently using MIUI 21.1.2.0 global and want to install a custum ROM but want to backup everithing before.

Enyone else sees this?
 

BlueMan_86

Senior Member
Jul 2, 2015
82
13
Novi Sad
Mi 10T Pro 12.5.1.0(RJDEUXM) installed, but I cant BOOT in twrp... I use command in fastboot mode
in my case "fastboot boot TWRP_apollo_3.5.0_10-beta_1_whyle.img" and it do everything... Than automatic reboot, and am holding Volume UP and Power button... But instead to boot to TWRP it goes to phone recovery... Where is my error?
 

wiz.wiz

Senior Member
Oct 29, 2013
218
24
Toulouse
www.tournoidesdieux.fr
Hi,
I just bought an apollo Pro, unlocked bootloader, installed TWRP and a custom ROM (NusantaraProject).
I'm having some problems with my installation and configuration.
I'd like to run a TWRP backup to be able to test another installation of this ROM, or of other ROMS, and be abl eto restore the current installation in I want to, later.
Looking at the TWRP backup, I don't know which partitions I should backup in order to be able to restore my current installation with settings.
There are some partitions seem "new" to me, like especially the "Super" one.
I was thinking of backing up only
- "Data"
- "Super" (containing "system" with other ones ?)
=> Are those 2 enough ?
=> Do you have other recommentations or details (or a link to a tuto/explanation on the TWRP backup/restore for Mi 10TPro or totally applicable to it ?) ?
Thanks !
 

steven81ir

Senior Member
Mi 10T Pro 12.5.1.0(RJDEUXM) installed, but I cant BOOT in twrp... I use command in fastboot mode
in my case "fastboot boot TWRP_apollo_3.5.0_10-beta_1_whyle.img" and it do everything... Than automatic reboot, and am holding Volume UP and Power button... But instead to boot to TWRP it goes to phone recovery... Where is my error?
In my case i had to flash first the twrp img file and than boot it from adb command.
 
  • Like
Reactions: BlueMan_86

steven81ir

Senior Member
In TWRP 3.5.0_10-beta1 I can mount the system partition but not wipe or backup (its not shown in menu).
I'm currently using MIUI 21.1.2.0 global and want to install a custum ROM but want to backup everithing before.

Enyone else sees this?
Im also losing access if i just simple reboot to recovery without root. if you want to have full access boot your recovery img trough adb. it worked for me. Im using this twrp ->TWRP_apollo_3.5.0_10-beta_1_whyle.img
 

calinorg

Senior Member
Hi,
I just bought an apollo Pro, unlocked bootloader, installed TWRP and a custom ROM (NusantaraProject).
I'm having some problems with my installation and configuration.
I'd like to run a TWRP backup to be able to test another installation of this ROM, or of other ROMS, and be abl eto restore the current installation in I want to, later.
Looking at the TWRP backup, I don't know which partitions I should backup in order to be able to restore my current installation with settings.
There are some partitions seem "new" to me, like especially the "Super" one.
I was thinking of backing up only
- "Data"
- "Super" (containing "system" with other ones ?)
=> Are those 2 enough ?
=> Do you have other recommentations or details (or a link to a tuto/explanation on the TWRP backup/restore for Mi 10TPro or totally applicable to it ?) ?
Thanks !
You basically only need data partition, as you can restore system and firmware from zips you used to install it. But restoring just doesn't work, gives some error and fails right at the beginning. Tested with couple of other roms and it backups fine but won't restore, probably because of encryption...
 
  • Like
Reactions: wiz.wiz

mepor

New member
Jun 20, 2021
4
0
To flash custom roms, I use twrp boot with command "fastboot boot TWRP_apollo_3.5.0_10-beta_1_whyle.img".
When in twrp recovery, there is no option to wipe system partition. Does it mean, that wiping of system partition is no longer needed and direct flash of custom rom (ArrowOS) will clear all original content (miui rom) on system partition?
 
To flash custom roms, I use twrp boot with command "fastboot boot TWRP_apollo_3.5.0_10-beta_1_whyle.img".
When in twrp recovery, there is no option to wipe system partition. Does it mean, that wiping of system partition is no longer needed and direct flash of custom rom (ArrowOS) will clear all original content (miui rom) on system partition?
Wipe in stock recovery
 

mepor

New member
Jun 20, 2021
4
0
Wipe in a stock recovery removes contents of the data partition, not the system or other partitions. Wiping the system partition used to be recommended before flashing any custom ROMs.
 

mepor

New member
Jun 20, 2021
4
0
from fastboot I do "fastboot boot twrp.img"
and made backup of /data partition...
and install new custom rom from booted twrp...
rebooted to stock recovery and wipe data
booted again twrp from fastboot "fastboot boot twrp.img"
when I tried to restore /data from previous backup, I got:

extracttarfork() process ended with error=255​

what did I do wrong?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 20
    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.
    20
    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
    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.
    3
    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