First download the given files.
– Latest TWRP
– Updated Super su
– Latest ODIN
After downloading, follow the steps below.
step 1: First enable OEM unlocking and USB debugging from developer option in settings. (to enable developer option goto settings>>about device/phone>>tap built number 6,7 times>>go back to settings)
step 2: Install device usb drivers and Odin 3.10.7. Also copy "super su.zip" on your external sd card.
step 3: Power off the device.
step 4: Boot to download mode (long press "VOLUME DOWN+HOME+POWER" buttons).
step 5: Open Odin 3.10.7 as an administrator, connect the device to a usb port, and make sure a blue button appears and says "Added" in description on the left.
step 6: Select "AP or PDA" for older Odin and search for the downloaded ".tar" file.
step 7: Uncheck "auto reboot" from the second tab.
step 8: Start flash and you should see the "succeeded/pass" command with green highlight.
step 9: Unplug the device and long press POWER until it powers off or remove the battery.
step 10: Reboot to TWRP (long press "VOLUME UP+HOME+POWER" buttons).
*NOTE: "I recommend to make a complete system backup from TWRP before flashing super su."
step 11: Now goto "Install" and select "supersu.zip" file from your extsd card.
step 12: Swipe to flash super su. After it shows "complete" You can reboot your device.
step 13: After reboot completes, find super su app in your app drawer/menu. Then update "Binary" if necessary.
step 13: Download "rootchecker" from playstore and check if it is properly rooted or not.
Complete Image may be NSFW.
Clik here to view.
Now you have flashed a custom recovery(TWRP) and rooted your galaxy j5.
"Always use super su to fresh and clean root your device"
ENJOY :good:
** Special thanks to @Nick Verse for TWRP and Chainfire for super su. **