[Galaxy A3, A5, A7, A8, A9 General] htcLoverBD:
I am not a developer at all , just got a working method from different web sources. so i think posting this method will help all A5 users. hope it helps you ...

Note: This Method Will Set Your KNOX Status As 0x1 , That Means Your Warranty Will Be Void Forever.

Download Links For CF-Auto-Root Packages:

CF-Auto-Root Package For A5 SM 5000

CF-Auto-Root Package For A5 SM 5009

CF-Auto-Root Package For A5 SM 500F

CF-Auto-Root Package For A5 SM 500FU

CF-Auto-Root Package For A5 SM 500G

CF-Auto-Root Package For A5 SM 500H

CF-Auto-Root Package For A5 SM 500K

CF-Auto-Root Package For A5 SM 500L

CF-Auto-Root Package For A5 SM 500M

CF-Auto-Root Package For A5 SM 500S

CF-Auto-Root Package For A5 SM 500Y

CF-Auto-Root Package For A5 SM 500YZ

Download Links For Other Tools:

Flashify Premuim

Samsung Android USB Driver for Windows

ODIN 3.10

Download Links For Firmwares:

Firmware Source 1

Firmware Source 2

Root Process:

Step 1: So A5 has many variants under it and so i have provided chain fire root kit for all of them, so choose the kit as per your device model and download it on your PC. Once downloaded you have to create a folder named A5 on desktop and extract the contents of the downloaded zip file inside it.

Step 2 : After you do the above step now you have to download the famous Odin for A5 which will utilize the above kit and root your A5 .

Step 3 : Now we need our device in download mode so to do that turn off your A5 and then press home button along with the power button and the down button of volume all of them together until the mode loads up.

When mode loads up you have to use the USB cable to connect the device to PC.

Step 4 : Now when you open the Odin software which you just now installed on your computer, you will see a message saying added which means that A5 is added to Odin.

Step 5 : Once added you will see a button on which PDA/AP is written which upon clicking you have to select a file named .tar.md5 from the extracted folder which you kept on desktop.

Step 6 :After you do that, you will have to for sure follow this point before hitting start so click on F.Reset time and Auto reboot options and then you can click start.

Step 7 : When you hit start the Odin by using the root kit files, will root your device and will take around 2 – 3 minutes may be less then that to complete its process and when it is done successfully then it will show a message saying PASS which means the root access has been achieved on A5 , If Failed Follow Below Steps

Here is a problem , If ODIN saying RESET then your device will be rebooted and rooted successfully but it already destroyed boot.img and recovery.img . don't worry we are going to solve this issue with some simple steps. Download Falshify from above links and install after that download firmware for your device from above links then rename the Firmware_File_Name.tar.md5 to Firmware_File_Name.tar then open it using winrar and extract boot.img , recovery.img then copy it to your device storage and flash both of them using Flashify . don't reboot after flashing one image,flash both image then reboot.

You Have Root On Your Samsung Galaxy A5 ,Whatever It KitKat Or Lollipop.

Credits To: bestandroidrootedapps and mygalaxya (xda user)