Rooting the Samsung Galaxy A5 smartphones can be done without having to install a custom recovery. We do it by installing the CF-Auto-Root tool by Chainfire–a popular one-click rooting method that is made available for nearly all Samsung devices. CF-Auto-Root is flashed the same way we flash a stock ROM with the Odin flashing tool only this time instead of getting a new ROM installed we are getting the SuperSU installed and enabled. Chainfire also makes the SuperSU app, and it is how most other people get root access when they install a custom recovery.
The following guide is going to take you through the steps on how to root the Samsung Galaxy A5 SM-A510F smartphones running on the Android 5.1.1 Lollipop updates using the CF-Auto-Root tool method:
- You need a computer that is running a version of the Windows operating system to use this guide. The Odin flashing tool only runs on Windows.
- Chainfire was running on the LMY47X.A510FXXU2APC4 firmware build number when he created the CF-Auto-Root package found in this guide. It does not mean you need to be running on that same firmware as him when you are rooting the device. You can be running on any firmware build number that is based on the Android 5.1.1 Lollipop updates if you have the SM-A510F model number. You can find out the model number and the Android version that is running on the Samsung Galaxy A5 SM-A510F smartphone by tapping on the Menu > Settings > About Device menu.
BEFORE WE BEGIN
- Unlock the Developer Options menu on the Samsung Galaxy A5 SM-A510F smartphone by tapping on the Menu > Settings > About Device > Build Number. Tap on the build number at least seven times and do not stop until you can see a new message on the screen of the smartphone saying that you are using the device as a developer. That means you now have the Developer Options menu available from the settings.
- Turn on the USB Debugging Mode on the Samsung Galaxy A5 smartphone by heading back to the home screen and then tapping on the Menu > Settings > Developer Options > USB Debugging Mode. Once you have checked the box next to the USB Debugging head back out of there and the Android operating system remembers your preferences.
- Install the Samsung USB Drivers on the Windows computer  before you get started with the guide so the Samsung Galaxy A5 smartphone can get detected by the Odin flashing application when it is running on the computer.
HOW TO ROOT SAMSUNG GALAXY A5 SM-A510F RUNNING ANDROID 5.1.1
- Log into the computer using the administrators account so the Odin flashing application can run.
- Download the CF-Auto-Root  tool for the Samsung Galaxy A5 SM-A510F smartphone when it is running on Android 5.1.1 Lollipop.
- Extract the rooting file to the downloads folder and you get the Odin flashing app and the rooting file available.
- Double-click the Odin flashing tool that is on the desktop and then it opens on the computer.
- Do not make any changes from the default settings available from the Odin flashing tool buttons.
- Boot the Samsung Galaxy A5 smartphone into the download mode  and then connect it to the computer with the USB cable.
- Make sure you can see a yellow or blue color coming from the Odin flashing tool user interface and it giving you the added message or else the Samsung USB Drivers are not yet working.
- Click the AP button from the Odin app on the computer and then select the rooting file from the downloads folder.
- Click the Start button from the Odin application on the computer and wait for the rooting to complete.
In conclusion, that is how to root Samsung Galaxy A5 SM-A510F smartphones when they are running on the Android 5.1.1 Lollipop software updates by using Chainfire’s CF-Auto-Root tool. You may open the Google Play Store app as soon as it reboots and then search for the root checker app to check the root status of the smartphone.