Root Samsung Galaxy A5 2017 SM-A520F/K/W Oreo 8.0 using TWRP

Samsung Galaxy A5 2017 still receiving regular monthly patch updates, But there are no confirmed Major updates for future from Samsung. So, If you are experiencing any Lag issues, you can Root your device. But, If you are a regular user, Who use your mobile just for chatting and Calling, you won’t need Root. But, It purely depends on you. If you use your mobile for gaming, you should root your device to enhance the performance and lag-free experience.
Samsung A5 2017 with Plants Background

Why should you Root Samsung Galaxy A5 2017?

Some devices working great, but some have lag issues. If you have problems, you can Root your device. Yep, you have 3 GB RAM, but if you use for a Long-term, you already know some lag issues. Octa-Core processor is best, But It is a Mid-range Processor. Also, the Exynos processor performs less compare with Snapdragon processors, Say 3-5%. You face daily lag, sometimes random restarts due to Overheat processor and RAM usage, even for small consuming apps. So, after rooting, I can expect Lag free experience? Probably. Also if we hibernate and remove a lot of unwanted apps, and optimize some apps, your device is hardware limited. But, within these limits, we can enhance the performance by 20-50% compared with your old usage. If you use Lite weight Custom ROMs, you can expect a 50-80% improvement in performance based on what custom OS you are choosing.

How to Root Samsung Galaxy A5 2017 (SM-A520F / SM-A520K / SM-A520W)

Samsung Galaxy A5 2017 comes with a flexible bootloader other than Verizon devices. Verizon devices come with locked Bootloader. This means that the other smartphone variants can be easily rooted. Also, the device can accept to install TWRP recovery or any other custom recovery file/app alike.

TWRP recovery is a custom recovery file which must be installed on Samsung Galaxy devices because you can root them successfully. In this article, we explained the easiest method to follow and install TWRP recovery on Samsung Galaxy A5 2017. However, the tool required for rooting this device is the Magisk App.

With the help of TWRP Recovery, you can quickly flash the latest version of Magisk into your Samsung Galaxy A5 2017 to gain root access. Before sharing the tutorial, you may want to know that, with the TWRP recovery present on your device, you can easily install any custom ROM or firmware. Does it seem complicated? Relax, everything will be explained succinctly in bullets.

Things to check out for;

  • Select TWRP Based on the mobile model number.
  • Make sure your device battery is charged above 50%

  • Backup your current files and data, just in case (save them on external storage).

Pre-Requirement Steps

Enabling developer option

  • Enable USB Debugging Mode and OEM Unlock in your mobile. To do this; go to settings >>> about >>> Tap on the “Build Number” 7-10 times consistently to enable “Developer Options,” then go to the “Developer Options” and enable USB Debugging Mode and OEM Unlock. There is no complicated process in the Samsung Galaxy A5 2017.

  • Also, download the ODIN software. Select above Oreo version in the ODIN list. Install ODIN in your PC.

  • Download Magisk.Zip (Latest Version) and Copy it to Your Phone Memory.
  • Download and save the TWRP File. Please select correct model number TWRP file.

Flash TWRP using ODIN

A5 2017 Download Mode


  • Restart the device. Then, enter into Download mode. To do this; press and hold down the Volume Down + Home+ Power buttons at the same time for some time.

A5 2017 Download Mode Warning Screen


  • Press the Volume Up button to continue when you see the warning message.

  • Now, connect the Samsung Galaxy A5 2017 mobile to the computer via USB cable.

  • Launch the Odin app on your computer. If the device is detected by this app (Odin), it will show you a message that reads – added!!!

ODIN Added Message


However, if the device is not correctly connected to the PC, you won’t see this message. So, you have to check the USB cable if it is good and reconnect the device.

  • After connecting the Samsung device, click on the PDA/PA button to browse/search and get the TWRP from where you saved it on your PC. Also, navigate to “options” and tick the Auto Reboot.

Odin Auto Reboot

  • Click on “Start”

  • Once the file is loaded into the device, reboot your device.

  • Kudos, you have just Installed the TWRP on your Samsung Galaxy A5 2017. If you installed TWRP, Don’t turn on your mobile. Immediately, move to Magisk Installation steps.

Install Magisk in your Samsung Galaxy A5 2017 using TWRP

  • Boot it Into recovery mode->Volume Up+ Home +Power Button.
  • Now it Will Boot into TWRP Recovery Mode.
  • Select Wipe->Advance Wipe->Select Cache Data.
  • Return to Home of TWRP select Install.
  • Select Magisk.Zip.
  • After the Installation Reboot Your Mobile.

What More?

Samsung Galaxy A5 2017 is a Mid-Range phone; There are Major regular updates and monthly updates, from Samsung for a long duration. But, If you use Lite weight Custom Roms, you can expect a considerable performance Improvement. So, If you have little knowledge in tech, I advise you to Root and uninstall some unwanted apps. You can also flash some Custom ROMs. If you flash Custom ROM, check what is working and what is not working. It is wise to use Some Official Custom ROMs like Lineage. If you accidentally bricked your mobile, you can fix your mobile by flashing the official Samsung a5 2017 stock firmware.

Share This Post:

45 thoughts on “Root Samsung Galaxy A5 2017 SM-A520F/K/W Oreo 8.0 using TWRP

  1. Please give me the latest procedure for rooting Samsung a5 2017 oreo update, android security patch level 1 Feb 2020…which version of twrp and Odin I have to use? Do I need any extra zip files to flash?

      • build number R16NW.A520FXXSDCTB5
        After installing TWRP, it is necessary to flash 1)no verity opt encrypt 6.0, 2)RMM State bypass mesa v2? or can I directly flash magisk manager without flashing those two zip files…

          • Ok thanx, I will try, but I’m scared if the phone is stuck at boot loop, then again I have to reinstall stock rom…

          • Read the guide once or twice. You will understand and can make some pre-arrangements. It will prevent most of the errors.

  2. After trying to push stock recovery (Android 8.1.0), I have that in Odin :
    Enter CS for MD5.
    Check MD5. Do not unplug the cable.
    Please wait..
    Checking MD5 finished Successfully.
    If someone has a way to reset everything…
    Honestly, Samsung devices are a mess for root…
    On my OnePlus 3, you push with adb, then TWRP installs root, and that’s all. First, try. No error. Nothing wrong…

    I remember my Galaxy S3 was a mess, too, in some cases. Almost brick it…

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.