Go to this link if you don't understand anything then reply me
I tried flashing every stock firmware but it didn't work I tried nand erase also.Go to this link if you don't understand anything then reply me
Download the official Samsung SM-J701F Stock Firmware (Flash File) for your Samsung Smartphone. We also provide all other Samsung Stock Firmware for free.firmwarefile.com
After that I tried to root my phone and I rooted it but when I restarted it says only official binary are allowed to flash. After that I reinstalled stock rom and it worked properly. But I want to root my phone because knox is tripped so security is not there. So how can I fix this problem.