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

[RECOVERY] Unofficial TWRP 3.6.0_9-0 for Stock Android 9, 10, 11 & Custom ROMs

Search This thread

wetito

Senior Member
Dec 12, 2014
1,002
191
49
reggio emilia
Xiaomi Mi A3
Updated -
Unofficial TWRP 3.5.1_9-0 for Android 10, 11 & Custom ROMs

Download -

Changelog -
i'm on android 11...
so first i had to install this latest twrp. reboot into it... and then flash latest twrp installer. it's right?
 

Technical

Senior Member
Jun 2, 2008
3,465
1,216
There is no TWRP for A11 firmware yet. It could be used on A10 firmware + Custom ROM on A11. It cannot be used on stock A11.
 

axon7fan

Member
Oct 28, 2018
16
13
I still can't decrypt my Android 10 userdata using this TWRP. I've tried adb shell twrp decrypt password but keep getting the following in /tmp/recovery.log:

Code:
Attempting to decrypt data partition or user data via command line.
E:Unexpected value for crypto key location
E:Error getting crypt footer and key
E:Could not get footer
Failed to decrypt data.

I've even tried modifying /etc/fstab with:

Code:
/dev/block/bootdevice/by-name/userdata /data f2fs rw,encryptable=footer:auto 0 0

... but TWRP doesn't seem to be able to find the encryption footer which is at the last 16KB of the partition.

I know the password, I use it every time I boot Android 10, so any ideas on how I can get TWRP to decrypt the userdata partition with my supplied password would be fantastic!
 

stres3d

New member
Jun 15, 2021
3
3
Android 11 TWRP + root (needed turn off encryption)

If you want root, download these (otherwise skip steps 14, 16-21):
option for root - download Canary Magisk Manager ( https://raw.githubusercontent.com/topjohnwu/magisk_files/canary/app-release.apk )
also download magisk module safetynet-fix-v1.1.1.zip ( https://github.com/kdrag0n/safetynet-fix/releases )

Needed:
- download TWRP (see first post :) for twrp-3.5.2_9-0-laurel_sprout.img )
- download DisableForceEncryption.zip ( https://androidfilehost.com/?fid=6006931924117915021 )
- download stock full fastboot ROM (For me = EU - https://bigota.d.miui.com/V12.0.7.0....RFQEUXM_20210513.0000.00_11.0_3e81dfb140.tgz for others https://forum.xda-developers.com/t/rom-official-fastboot-xiaomi-mi-a3-laurel_sprout.3962489/ )
- extract ROM and extract ROM again to c:\work\ (example)
- edit flash_all.bat:
a) on system_b change system_other.img -> system.img
b) move line with "fastboot %* reboot" after "pause"
- in images\crclist.txt delete line with system_b
- in images\sparsecrclist.txt copy line with system_a and rename to system_b
- copy vbmeta.img from images to folder with bat files
- copy boot.img from images to folder with bat files
- move app-release.apk to folder with bat files
- copy app-release.apk and this copy rename as magisk.zip
- rename TWRP image just to twrp.img
- download ADB minimal portable extract to folder with bat files ( https://androidfilehost.com/?fid=962187416754459552 )
- run cmd-here.exe as administrator
- enable USB debugging in phone (if you dont know how or how to find it you are dumb and not do next steps!)
- run adb devices, remember and allow in phone
- shutdown phone, still connected to USB

Connect phone to PC,
1) Hold vol- a power until BL shows
2) fastboot flashing unlock (before click Enter, hold vol-)
3) fastboot flashing unlock_critical (before click Enter, hold vol-)
4) fastboot --set-active=a, then flash_all.bat (laurel_sprout_eea_global_images_V12.0.7.0.RFQEUXM_11.0)
5) after rom is flashed, hold vol- and then click enter -> vbmeta patching:
run cmd-here.exe as administrator again
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_b vbmeta.img
6) fastboot --set-active=b
7) fastboot flash boot twrp.img
8) fastboot reboot (before click Enter, hold vol+ -> go to new recovery)
9) Wipe -> Format Data (yes), after that empty disk appears in windows explorer ( Mi A3 - Internal storage ). Select boot.img + twrp.img + DisableForceEncryption.zip + magisk.zip in folder with bat files and copy to phone
10) Go to menu Install-> select boot.img and flash it to boot partition (both slots)
11) Go to menu Advanced -> install recovery ramdisk and select twrp.img
12) Go to menu Reboot -> enable slot A and then reboot to recovery
13) Go to menu Install (folder changes to /data/media) -> DisableForceEncryption.zip, after install wipe dalvik
14) Go to menu Install -> magisk.zip, after install wipe dalvik and finally click reboot system
15) set up your phone, then click to Magiks in menu a tap download (allow installation from Unknown Sources)
16) delete boot.img + twrp.img + DisableForceEncryption.zip + magisk.zip from /data/media/ (use file manager in TWRP)
17) if you root, then copy safetynet-fix-v1.1.1.zip to internal storage (to folder Downloads for example)
18) Go to magisk settings and tap Hide app Magisk, change name to something and wait a while - app restarts in about 10-15s, allow add icon to desktop
19) enable in settings MagiskHide, then go to Home , tap last icon modules and select install from storage
20) select safetynet-fix-v1.1.1.zip and after install restart
21) check SafetyNET status -> PASS :)
EDIT:
22) update google play and reboot
23) force turn off play store and then clear cache and app data
24) google play certified!

System startup with root, disabled encrypting and TWRP stay in boot image. In slot B is boot image without root.

Maybe is playing with system_b useless, but i try different procedures and this one works best (no problems yet, I don't have time to try less steps. But vbmeta is important, also flash DisableForceEncryption before Magisk...

Enjoy and dont hate me if something go wrong
 

Attachments

  • DisableForceEncryption.zip
    177.6 KB · Views: 24
  • magisk.zip
    12.7 MB · Views: 23
  • safetynet-fix-v1.1.1.zip
    705.6 KB · Views: 18
  • crclist.txt
    779 bytes · Views: 21
  • sparsecrclist.txt
    103 bytes · Views: 17
  • flash_all.bat.txt
    6 KB · Views: 31
Last edited:

X gamerz

Member
Mar 19, 2013
23
2
Android 11 TWRP + root (needed turn off encryption)

If you want root, download these (otherwise skip steps 14, 16-21):
option for root - download Canary Magisk Manager ( https://raw.githubusercontent.com/topjohnwu/magisk_files/canary/app-release.apk )
also download magisk module safetynet-fix-v1.1.1.zip ( https://github.com/kdrag0n/safetynet-fix/releases )

Needed:
- download TWRP (see first post :) for twrp-3.5.2_9-0-laurel_sprout.img )
- download DisableForceEncryption.zip ( https://androidfilehost.com/?fid=6006931924117915021 )
- download stock full fastboot ROM (For me = EU - https://bigota.d.miui.com/V12.0.7.0....RFQEUXM_20210513.0000.00_11.0_3e81dfb140.tgz for others https://forum.xda-developers.com/t/rom-official-fastboot-xiaomi-mi-a3-laurel_sprout.3962489/ )
- extract ROM and extract ROM again to c:\work\ (example)
- edit flash_all.bat:
a) on system_b change system_other.img -> system.img
b) move line with "fastboot %* reboot" after "pause"
- in images\crclist.txt delete line with system_b
- in images\sparsecrclist.txt copy line with system_a and rename to system_b
- copy vbmeta.img from images to folder with bat files
- copy boot.img from images to folder with bat files
- move app-release.apk to folder with bat files
- copy app-release.apk and this copy rename as magisk.zip
- rename TWRP image just to twrp.img
- download ADB minimal portable extract to folder with bat files ( https://androidfilehost.com/?fid=962187416754459552 )
- run cmd-here.exe as administrator
- enable USB debugging in phone (if you dont know how or how to find it you are dumb and not do next steps!)
- run adb devices, remember and allow in phone
- shutdown phone, still connected to USB

Connect phone to PC,
1) Hold vol- a power until BL shows
2) fastboot flashing unlock (before click Enter, hold vol-)
3) fastboot flashing unlock_critical (before click Enter, hold vol-)
4) fastboot --set-active=a, then flash_all.bat (laurel_sprout_eea_global_images_V12.0.7.0.RFQEUXM_11.0)
5) after rom is flashed, hold vol- and then click enter -> vbmeta patching:
run cmd-here.exe as administrator again
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_b vbmeta.img
6) fastboot --set-active=b
7) fastboot flash boot twrp.img
8) fastboot reboot (before click Enter, hold vol+ -> go to new recovery)
9) Wipe -> Format Data (yes), after that empty disk appears in windows explorer ( Mi A3 - Internal storage ). Select boot.img + twrp.img + DisableForceEncryption.zip + magisk.zip in folder with bat files and copy to phone
10) Go to menu Install-> select boot.img and flash it to boot partition (both slots)
11) Go to menu Advanced -> install recovery ramdisk and select twrp.img
12) Go to menu Reboot -> enable slot A and then reboot to recovery
13) Go to menu Install (folder changes to /data/media) -> DisableForceEncryption.zip, after install wipe dalvik
14) Go to menu Install -> magisk.zip, after install wipe dalvik and finally click reboot system
15) set up your phone, then click to Magiks in menu a tap download (allow installation from Unknown Sources)
16) delete boot.img + twrp.img + DisableForceEncryption.zip + magisk.zip from /data/media/ (use file manager in TWRP)
17) if you root, then copy safetynet-fix-v1.1.1.zip to internal storage (to folder Downloads for example)
18) Go to magisk settings and tap Hide app Magisk, change name to something and wait a while - app restarts in about 10-15s, allow add icon to desktop
19) enable in settings MagiskHide, then go to Home , tap last icon modules and select install from storage
20) select safetynet-fix-v1.1.1.zip and after install restart
21) check SafetyNET status -> PASS :)

System startup with root, disabled encrypting and TWRP stay in boot image. In slot B is boot image without root.

Maybe is playing with system_b useless, but i try different procedures and this one works best (no problems yet, I don't have time to try less steps. But vbmeta is important, also flash DisableForceEncryption before Magisk...

Enjoy and dont hate me if something go wrong
Thanks bro, i just follow this steps and able to get twrp in A11 and Safety net success. Only in Play store device still not certified. How about you ?
 

stres3d

New member
Jun 15, 2021
3
3
Go to settings->Info about phone->Version of android->Google Play Update (i translate it from czech, you maybe have little different names in menu). Make sure you have latest version and reboot phone if needed. Then go to Play store app info: force turn off app, clear cache and data. Check yours apps and then you may be certified
 
  • Like
Reactions: X gamerz

FredMontteiro

Senior Member
Dec 18, 2015
83
17
Hi guys, sorry for the ignorant question. It's the first time I have an A/B stot device. I always installed twrp on devices with only one slot. I'm on Stock 9 (Pie).

Edit:
1. What is the updated method to install twrp on stock 9 (Pie)?

2. What is the updated method to uninstall/remove twrp in Stock 9 (Pie)?
 
Last edited:

rubhec

Member
Oct 7, 2013
13
3
I see there is a new version of oficial Twrp. It seems works with A11Fw. But in my case, the command Fastboot boot twrp.img fails, sais remote command failed.
Somebody knows how is the way to boot temporaly twrp to flash zip inside? i only has bootloader unlocked succesfully.

 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 20
    This thread is not pirated, mirrored or copy of official twrp
    I'm just sharing the official TWRP 3.6.0_9-0 patched boot img for Stock Android 10, 11 & Custom ROMs

    Whats Working?
    Everything

    Whats Not Working?
    Encryption/Decryption of Data

    Download
    Unofficial TWRP 3.6.0_9-0 IMG for Stock Android 10, 11 & Custom ROMs

    Official TWRP 3.6.0_9-0 IMG for Stock Android 9 only

    Official TWRP Installer 3.6.0_9-0 ZIP for Stock Android 9, 10 & Custom ROMs


    Note: enable "use rm -rf instead of formatting" in TWRP settings, before you wipe data, else userdata partition will be ****ed

    Hit thanks button if you liked my work👍
    2
    Flashed it from fastboot but doesn't come ,only comes fastboot mode ?
    Only Sharp works in 10 properly.
    Your not doing it right because everyone else is able to install all recoveries it's only you who is having these issues. Without a proper bug report nobody can help you though
    2
    Android 11 TWRP + root (needed turn off encryption)

    If you want root, download these (otherwise skip steps 14, 16-21):
    option for root - download Canary Magisk Manager ( https://raw.githubusercontent.com/topjohnwu/magisk_files/canary/app-release.apk )
    also download magisk module safetynet-fix-v1.1.1.zip ( https://github.com/kdrag0n/safetynet-fix/releases )

    Needed:
    - download TWRP (see first post :) for twrp-3.5.2_9-0-laurel_sprout.img )
    - download DisableForceEncryption.zip ( https://androidfilehost.com/?fid=6006931924117915021 )
    - download stock full fastboot ROM (For me = EU - https://bigota.d.miui.com/V12.0.7.0....RFQEUXM_20210513.0000.00_11.0_3e81dfb140.tgz for others https://forum.xda-developers.com/t/rom-official-fastboot-xiaomi-mi-a3-laurel_sprout.3962489/ )
    - extract ROM and extract ROM again to c:\work\ (example)
    - edit flash_all.bat:
    a) on system_b change system_other.img -> system.img
    b) move line with "fastboot %* reboot" after "pause"
    - in images\crclist.txt delete line with system_b
    - in images\sparsecrclist.txt copy line with system_a and rename to system_b
    - copy vbmeta.img from images to folder with bat files
    - copy boot.img from images to folder with bat files
    - move app-release.apk to folder with bat files
    - copy app-release.apk and this copy rename as magisk.zip
    - rename TWRP image just to twrp.img
    - download ADB minimal portable extract to folder with bat files ( https://androidfilehost.com/?fid=962187416754459552 )
    - run cmd-here.exe as administrator
    - enable USB debugging in phone (if you dont know how or how to find it you are dumb and not do next steps!)
    - run adb devices, remember and allow in phone
    - shutdown phone, still connected to USB

    Connect phone to PC,
    1) Hold vol- a power until BL shows
    2) fastboot flashing unlock (before click Enter, hold vol-)
    3) fastboot flashing unlock_critical (before click Enter, hold vol-)
    4) fastboot --set-active=a, then flash_all.bat (laurel_sprout_eea_global_images_V12.0.7.0.RFQEUXM_11.0)
    5) after rom is flashed, hold vol- and then click enter -> vbmeta patching:
    run cmd-here.exe as administrator again
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img
    fastboot --disable-verity --disable-verification flash vbmeta_b vbmeta.img
    6) fastboot --set-active=b
    7) fastboot flash boot twrp.img
    8) fastboot reboot (before click Enter, hold vol+ -> go to new recovery)
    9) Wipe -> Format Data (yes), after that empty disk appears in windows explorer ( Mi A3 - Internal storage ). Select boot.img + twrp.img + DisableForceEncryption.zip + magisk.zip in folder with bat files and copy to phone
    10) Go to menu Install-> select boot.img and flash it to boot partition (both slots)
    11) Go to menu Advanced -> install recovery ramdisk and select twrp.img
    12) Go to menu Reboot -> enable slot A and then reboot to recovery
    13) Go to menu Install (folder changes to /data/media) -> DisableForceEncryption.zip, after install wipe dalvik
    14) Go to menu Install -> magisk.zip, after install wipe dalvik and finally click reboot system
    15) set up your phone, then click to Magiks in menu a tap download (allow installation from Unknown Sources)
    16) delete boot.img + twrp.img + DisableForceEncryption.zip + magisk.zip from /data/media/ (use file manager in TWRP)
    17) if you root, then copy safetynet-fix-v1.1.1.zip to internal storage (to folder Downloads for example)
    18) Go to magisk settings and tap Hide app Magisk, change name to something and wait a while - app restarts in about 10-15s, allow add icon to desktop
    19) enable in settings MagiskHide, then go to Home , tap last icon modules and select install from storage
    20) select safetynet-fix-v1.1.1.zip and after install restart
    21) check SafetyNET status -> PASS :)
    EDIT:
    22) update google play and reboot
    23) force turn off play store and then clear cache and app data
    24) google play certified!

    System startup with root, disabled encrypting and TWRP stay in boot image. In slot B is boot image without root.

    Maybe is playing with system_b useless, but i try different procedures and this one works best (no problems yet, I don't have time to try less steps. But vbmeta is important, also flash DisableForceEncryption before Magisk...

    Enjoy and dont hate me if something go wrong
    1
    Go to settings->Info about phone->Version of android->Google Play Update (i translate it from czech, you maybe have little different names in menu). Make sure you have latest version and reboot phone if needed. Then go to Play store app info: force turn off app, clear cache and data. Check yours apps and then you may be certified