Exclamation [Q] Safe Mode in bootloop

Hi, I installed this application and I think I did something wrong, now I have a bootloop (stuck in the nexus booting logo) and I need to boot in the safe mode, any body know how to enable safe mode while the device booting, or know how to fix this problem in adb or recovery?
help me please, Thanks.

Free Syria For All Syrians
Sorry For My Horrible English