Rooting Samsung Galaxy A3 2016 (SM-A310F) How can I root the Samsung Galaxy A3 2016 (SM-A310F)?

Andoid version is Marshmallow (6.0.1) and my computer runs on Windows 7.
ROOTING YOUR PHONE WILL PROBABLY VOID YOUR WARRANTY FROM BOTH THE CARRIER AND THE MANUFACTURER. IF YOU DO NOT WISH TO ACCEPT FAULT FOR ANY ADVERSE EFFECTS OF ROOTING, THEN DO NOT READ ANY FURTHER.

Downloads and installs


Samsung USB Drivers.
Odin.
Root File.
Install Samsung drivers and unzip Odin and Root File.


Phone Setting


Turn on developer mode:


  Settings > About device > Sofware info > Build number.
  Tap build number 7 times.

Enable USB debugging:


  Settings > Developer options > USB debugging.
  Turn on.

Enable OEM (very important!):



  Settings >  Developer options > OEM unlock.
  Allow the device to be OEM unlocked.
  This has to be turned on for ever from now! Reports said without this options phones have turned into bricks.


Rooting


Turn your phone off, then turn it on in download mode.


  Press and hold together Volume Down, Home and Power.

Connect the phone to the computer.
Start Odin and select AP, then browse to the Root File.
Press Start and the rooting will process.