be aware, that the rooting process is only possible in KitKat!!
you have to downgrade before you can root.....!
my S5 came with Lollipop 5.0. I downgraded, rooted, flashed recovery and finally flashed a pre-rooted debloated Lollipop Rom.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer? | Terms of Service