I should add that the build number that I used the root method on is N770FZHS2ATC2. This method is very easy if you take your time. THIS WILL ALSO WIPE YOUR DEVICE. I AM NOT RESPONSIBLE FOR ANY DEVICE OR SD CARD DAMAGE.
BEFORE PROCEEDING, UNLOCK BOOTLOADER.
YOU CAN FIND THE FIRMWARE YOU NEED ON SAMMOBILE OR FRIJA. SAMMOBILE WILL SEVERAL VERSIONS FOR YOUR DEVICE, FRIJA WILL ONLY HAVE THE LATEST VERSION.
1. Download the firmware for your device.
2.Load Zarchiver from playstore.
3.Open Zarchiver and locate the firmware you downloaded.
4.Click on the firmware, a menu will appear at the bottom. You will then have option to extract.
5. Extract the firmware and you will have files..AP..BL..CP..CSC..and HOME_CSC. The only file we need is AP
6.Click on AP file and rename AP_N770xxxx.md5 to AP_N770xxxxx.tar so your just highlighting the file and removing md5 so it only says .tar at the end.
7.Once you have renamed AP file click and again you will be given the option to extract. Once extracted, locate boot.img.lz4
8.Then extract boot.img.lz4 leaving you with boot.img
9.You should have Magisk manager installed on device. Use Magisk to patch the boot.img. once patched locate magisk_patched.img and rename to boot.img
10.Return to Zarchiver locate the patched boot.img and compress to boot.tar.
11. Move compressed boot.tar to computer and rename to boot.img.tar
12.Put device in download mode, open odin 3.14.4 and put the boot.img.tar in AP and click start. Once odin says pass, your device will boot to stock recovery and you will have to do a factory reset so save anything you need before doing this.
13.once device boots reinstall Magisk manager and follow prompts. You should now have a rooted device.
Sent from my SM-N975U using Tapatalk