I can’t give a direct download URL here (it may break or change), but , the most reliable builds for GT‑P5100 Android 7.1.2 are still available on:
: If your device remains stuck on the boot animation for longer than 15 minutes, force boot back into TWRP Recovery, execute another data wipe, and re-flash the firmware file.
Gather the following files on your :