On Launch of the application, I want to detect if the device running is rooted. Is there proper way of detecting it?
I don't think trying to write a file to '\data' to see if rooted is a good solution. (Since even rooted devices may have that path unprivileged)