Redmi 7A Data Partition Encryption

How to Install TWRP and Magisk ROOT on Redmi 7A

Below we share the most detailed and working guide on how you can install TWRP and root your Xiaomi Redmi 7A device and encrypt data partition. This is required if you want to flash GSI ROM.

Please take a note that you follow the instructions below at your own risk. Authors are not responsible for bricked devices.

Make sure you’ve make a backup of all the important data (including personal data) on your phone, because during this guide we’ll completely format the phone data partition.

Flashing Custom Recovery and encrypting data partition on Redmi 7A

Download TWRP Custom Recovery for Redmi 7A

  1. First of all, you must have unlocked bootloader on your phone. Follow this tutorial, if you don’t know how to do this.
  2. Download archive.
  3. Unpack archive to C:\ drive.
  4. Download TWRP Custom Recovery for Redmi 7A.
  5. Rename downloaded recovery to Recovery.img (make sure file type is visible in your system settings).
  6. Move Recovery.img to unpacked adb folder.
  7. Download boot image file for your ROM version. If you don’t see the patched boot for the firmware version you’re using, then you’ll need to patch it by yourself.
  8. Rename downloaded boot image file to boot.img and move it to the adb folder together with Recovery.img
  9. Download Magisk 19.3 and optionally you can use
  10. Turn off your device.
  11. Reboot into fastboot mode.
  12. Connect your device via USB to PC. It’s highly recommended to use stock USB cable.
  13. Download and install
  14. Press and hold “Volume UP” button on your phone.
  15. Open the C:\adb folder with recovery.img and boot.img files and start install.bat
  16. Your phone will reboot into TWRP.
  17. You’ll see “Unmodified System Partition”, proceed with “Swipe to Allow Modifications”.
  18. Format data partition.
    1. Wipe > Format Data > Yes
  19. Optionally you can encrypt data partition on your device. If you’ll proceed with data encryption, you won’t be able to use locking options including face lock on your phone.
    1. In TWRP, go to “Install” > SD Card and locate previously downloaded, continue flashing this patch.
    2. To enable ROOT: In recovery “Install” > SD Card and locate downloaded Magisk archive, flash to root.