'Set Warranty Bit: Recovery' Samsung doesn't boot I have a Samsung Galaxy J5 and it isn't booting since I patched an app with Lucky Patcher (first time I tried it). I have had the root for some time, with no problems, but now I boot it and it goes black after showing the logo and 'Set Warranty Bit: recovery' for a second.  

I have a backup with Titanium Backup in my PC, and would like to know if I should flash a custom ROM I found for my device or flash a stock version (custom ROM works for everyone and comes with instructions, but I don't trust so much the stock version). Also, the custom ROM has a lot of steps, but there is no cyanogenmod version for the J5.

Thanks in advance! (also, is there any other solution?)
Take a look at this guide. It is designed specifically for the Galaxy J5 and all flashing software and the ROM are obtained from official Samsung sources. Outline:


Backup your data
Install samsung USB drivers (No link because it will probably die soon, Google is your friend)
Install ADB &amp; Fastboot drivers if you haven't already. (HowToGeek)
Enable USB debugging (if you can)


Make sure your phone is charged. If you can't see any indicators of battery life leave it on the charger for 2 hours.


Download and install Odin (download here)
5.5 Download the stock rom for your phone (here)
Turn off your Galaxy J5 and Boot in download mode.(Hold down Volume Down + Home + Power button at the same time)
Connect it to the PC with USB cable and run Odin.
If everything is right and drivers are working properly. You will see the blue box on the ODIN screen, if not reinstall the drivers again and reboot your PC.
Now select the AP option from the ODIN screen and select the firmware file that you extracted.
Hit the Start button from the ODIN screen to start the flashing process.
Once completed you will see the PASS messages on the ODIN and Phone will reboot automatically. Now you can disconnect your phone.


IMPORTANT:. If you phone stuck on the boot loop or in the Samsung Android Loog. Then turn off the phone and reboot in recovery mode. TO do this Hold down Volume Up + Home + Power button at the same time. Now from recovery select Wipe Data/Factory Reset and after that Wipe cache partition. Now reboot you phone.