[Samsung Galaxy J700T & J700T1 ROMs, Kernels, Recov] TechNash:
WARNING: Anything done wrong could result in a brick! Make sure you use the proper firmware, and really only do this if have skill with Odin, or absolutely have to due to a brick.

Following this guide will restore your phone to 'Samsung OFFICIAL' and reset your model to default. This will not reset your Knox counter.

Please note: I have no experience with Jodin3, and would advise you read or watch a couple guides before using it. I don't know whether or not it is stable, so I cannot take the blame if Jodin3 ruins your phone, It's just the only alternative for Mac OS X. (WineHQ does not have USB support on Mac OS.)

Edit:

Let me just clear something up. When I say PC I MEAN ANY COMPUTER!

What makes me more annoyed than anything is when people call Windows computers exclusively, and don't consider an iMac or Linux machine a PC. PC literally means Personal Computer!

https://www.collinsdictionary.com/us/dictionary/english/pc

Hello everybody! A couple days ago I was uninstalling Magisk and installing SuperSU instead, due to the fact that I couldn't change file permissions in root explorer. (I'm back on Magisk, because I found out ES would change the permissions with Magisk.) When I did it, the encryption breaker wouldn't work, due to already flashing it. (When fullofhell made his Pixel 2 rom.) I had reset my SD card, but forgot, so I didn't have a backup when it ended up boot looping. (Stuck on android logo forever.) I ended up having to use Odin and go to stock, however it wasn't as easy (or atleast not something that I knew how to do) to figure out how exactly to do it.

1.) The first thing you need to do is download the stock ROM from here or from Updato. (It doesn't matter what version you use, as long as it's for T or T1, meaning you could install Marshmallow if you wanted to.)

2.) Download and install Odin3 for your Windows PC. (I own a iMac, but I honestly don't feel like risking using it with Jodin3 because I don't know it's potential) or use WineHQ on Linux. After doing so open Odin3, Odin3 WineHQ, or Jodin3.

3.) Download and install the Samsung USB Drivers if you haven't already from here.

4.) Put your phone in Odin mode, via holding Volume Down + Home + Power or by entering recovery and then rebooting into Download mode, and pressing volume up when it prompts you.

5.) Plug your phone in via USB, and if everything done correctly you should see 'Added' in the dialouges, and see a box turn blue saying Com3.

6.) Select AP and then select your stock file. After selecting Odin might freeze or even get a dialouge saying "Odin3.exe has stopped working." When this happens don't close it.

7.) In settings disable Auto Reboot.

8.) Select flash and wait.

Do not unplug your USB, shutdown your phone, and do not shutdown your PC.

9.) When done shut down your phone. (Battery pull may be necessary, for people like me.)

10.) Boot into recovery mode, by holding Volume Up + Home + Power. You should not boot into TWRP or any custom recovery, if you do something went wrong.

11.) Use volume keys and power keys to select buttons:

Select Factory Reset phone

Select Reset Cache

12.) Boot up your phone. (You will be on the T-Mobile screen for 10 seconds to 1 minute.)

13.) Do not install any apps or important data after setup if you intend to root, as you will need to install TWRP via Odin, and then wipe /data when install Magisk or SuperSU to avoid a brick.

I hope I helped in any way.

Please note all I did was gather a bunch of links and put together a guide.

I do not take credit for stock ROM, TWRP, Odin, SuperSU, Magisk, or any other programs and files.

I would like to thank [MENTION=8146955]fullofhell[/MENTION] for giving this post a better website in replacement for sammobile.