Android 6.0.1 Marshmallow gives plenty of reasons as to why people might want to install a custom ROM on a smartphone that isn’t able to run that update yet any other way. There is a whole other side to customizing a mobile device that has nothing to do with swapping over the ROM and everything to do with making changes the ROM that is running on your device right now. The way we do that is with root access.
Having root access on Android is another way of saying having control over the root user account. The root user is the person who gets to decide what is installed and uninstalled and there is nothing in your way to stop that from happening anymore.
- You need to have the Samsung Galaxy J5 smartphone that comes with the SM-J500F model number to use this guide. The CF-Auto-Root tool package in this guide is only made for that one model number and flashing it on another model number likely means that device is bricked until it gets another stock ROM flashed on it.
- You need to have a computer that is running on a version of the Windows operating system to use this guide. The Odin flashing tool is great, but it only works if you are running in a Windows environment.
BEFORE WE BEGIN
- Chainfire had the MMB29M.J500FXXU1BPG5 firmware running on the Samsung Galaxy J5 SM-J500F smartphone when the CF-Auto-Root tool in this guide was developed, but it doesn’t suggest you need to be running on the same. You just need to make sure that you have the right model number and that it is running on the Android 6.0.1 Marshmallow software updates and the rest should be fine.
- Have the Developer Options menu unlocked and the USB Debugging Mode turned on  so that you are then able to make the required changes to the Android operating system.
- Ensure that you have installed the Samsung USB Drivers  on the computer before getting started on the guide so that the flashing app can detect your Samsung Galaxy J5 smartphone on the computer.
HOW TO ROOT SAMSUNG GALAXY J5 SM-J500F RUNNING ON ANDROID 6.0.1 USING CF-AUTO-ROOT
- Download the CF-Auto-Root  tool for the Samsung Galaxy J5 SM-J500F running Android 6.0.1 Marshmallow.
- Open the folder that is set to be the default download location (called the Downloads folder by default) and extract the CF-Auto-Root tool to the Downloads folder. Doing so gives you the rooting file and the Odin flashing tool file.
- Run the Odin flashing tool executable file that is available in the Downloads folder now and the flashing tool user interface opens on the computer, so it is ready for you to connect to when you are ready.
- Boot the Samsung Galaxy J5 SM-J500F smartphone into the Download Mode  and connect the smartphone to the computer with the USB cable when it is in the said mode.
- Check that Odin shows a blue or yellow ID: COM port and gives the added message from the Log, so you know that the Samsung USB Drivers are working.
- Click on the AP button and then head to the Downloads folder where you need to select the MD5 rooting file and upload it to the Odin.
- Click on the Start button located in Odin now and the rooting of the Samsung Galaxy J5 smartphone begins.
- Wait until you get a green pass message from the top box in Odin before unplugging from the computer.
In conclusion, that is how to root Samsung Galaxy J5 SM-J500F smartphones running on the Android 6.0.1 Marshmallow software updates by using the systemless root version of the SuperSU via CF-Auto-Root. It is said that the systemless root version of the rooting tool will not be around in the future versions of the app, but for now, it means you can unroot by taking a factory reset.