If you are already rooted with any other method please fully unroot now. If you do not have a custom recovery You cannot install magisk, you will need to figure out how to convert your spoof app to a system app and then unroot to be able to pass safetynet. You can do this multiple ways- in supersu app go to setting/full unroot or you can reboot to TWRP recovery and go to mount, select system, go back to home select advanced select file manager. From there delete the /supersu folder, /system/xbin/su file, delete the /system/bin/su file, delete the /system/app/supersu app file. If you had xposed installed it also needs to go at this time. Reboot and Download a root check app to make sure you’re clean.
Now its time to install Magisk Manager. Navigate to your downloads and select the Magisk Manager apk and install it. Now reboot into your TWRP recovery(power down then hold power+volume up+home for most devices). Select install, navigate to the magisk .zip that you downloaded and install it. reboot system and start Pokemon GO latest hack
Give it a few minutes and them open Magisk Manager, you should now be properly rooted. Tap the grey box to check safetynet status, if you followed along this far you should be green and Google/niantic has no clue you are rooted. If you fail it may be because you were failing even before root.
If you’re failing safetynet now or anytime in the future go HERE and read a few threads, it’s likely down for everyone and an update will be released to get it working again. Google updates safetynet usually once a month to break this method of root.