there isnt much easy way(for this phone) rather than flashing pre-rooted firmware...
as the Qualcomm is using SE technology (Security Enhanced)
you may have noticed the option in the about phone menu at the bottom said: SE for Android status "permissive"
this means that bootloader will permit the changes done by user but the changes must be reverted back to normal before restarting the phone...
suppose somehow we bypassed system and made changes
the Factory service will start monitoring each and every thread and process...
and it will make a log of it.
That log will be saved in kernel heap
so if phone is restarted by you, it will compare the differences in boot and will result in either boot loop or softbrick (not hard brick)
press thanks if this post helped you