How to Root and Flash TWRP for Samsung Galaxy A52 with Magisk v23

May 13, 2021 | By androidhowto@youtube | Filed in: Root, TWRP.

How to root and flashing TWRP Recovery for Samsung Galaxy A52. Rooting will use Magisk v23.0 that fixed safetyNet API error and bypass safetyNet.  TWRP for Samsung Galaxy A52 is brought to you by RealVelosh@XDA. Team Win Recovery Project (TWRP) is an open-source software custom recovery image for Android-based devices. It provides a touchscreen-enabled interface that allows users to install third-party firmware and back up the current system which are functions often unsupported by stock recovery images. Use at your own risk, I’m not responsible for bricking your device.

Download and Terms

  1. The phone bootloader must be unlocked, if not read How to unlock bootloader Galaxy A52
  2. Download TWRP twrp-3.5.2_10-0-a52q.tar
  3. Download Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip
  4. Download Universal SafetyNet fix: safetynet-fix-v1.1.1.zip
  5. Download Magisk-v23.0.apk stable Rename to Magisk-v23.0.zip
  6. Copy ROM to SD Card

Flashing Instructions

  1. Make sure the bootloader unlocked, the OEM Unlocking option is grey out
  2. Enter Download Mode : Turn Power Off. Press and hold Volume Up + Volume Down key together, while pressing these keys, connect the phone to computer, then press volume up once.
  3. Open ODIN, IMPORTANT!: Uncheck “Auto Reboot” in Options!
  4. Flashing twrp-3.5.2_10-0-a52q.tar as AP in ODIN, then click start.
  5. DO NOT SKIP THIS STEP! Don’t remove USB Cable, let it connected. Press and hold Volume Down + Power Key, when the screen blank quickly press and hold Volume Up + Power key until red warning “This phone is not running Samsung’s official software…” disappears. Then release all keys. It will take more time than usual until TWRP recovery appears.
  6. Select Wipe -> Format data, type ‘yes’ and confirm
  7. Select Install – select Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip, Swipe to confirm Flash
  8. Select Reboot to System if you don’t want to install Magisk or Reboot to Recovery for installing Magisk.
  9. Select Install – select Magisk-v23.0.apk, Swipe to confirm Flash
  10. Select Reboot to System
  11. Setup the phone
  12. Done!

Rooting and Bypass SafetyNet

  • Connect Phone to Internet
  • Install Magisk and Open it. Magisk will ask to do additional setups. Let it do its job and the app will automatically reboot your device.
  • Install safetynet-fix-v1.1.1.zip ( Bypass SafetyNet )
  • Reboot from magisk
  • Open Settings
  • Enable MagiskHide option
  • Done

Watch this video!

How to Root and Flash TWRP for Samsung Galaxy A52 with Magisk v23
Watch this video on YouTube.

If you want to uninstall custom recovery and back to stock ROM, just flash the stock ROM to your device. Flashing stock ROM will also uninstall custom Recovery and it will back to stock Android Recovery.

Notes / Warning!

  1. Use at your own risk, I’m not responsible for bricking your device.
  2. Using the incorrect file may brick your device.
  3. If your target device has a custom firmware flash counter, Rooting will trigger it. If you’re lucky, Triangle Away has support for your device and can be used to reset the counter.
  4. If you have a KNOX-enabled device, flash custom rom and Rooting will trip the KNOX WARRANTY VOID status!
  5. If your device storage is encrypted, Rooting will wipe your data !
  6. If you have locked bootloaders, flashing one of these will probably brick your device – with the exception of Nexus devices, which will usually automatically “OEM unlock” and wipe your data !
  7. Make sure to backup your important data before root it.


Tags: , , , , ,

Leave a Reply

Your email address will not be published.