This application can be used to check the device is rooted or not and this will show all the root checking methods and the result of individual methods. Refer the code and methods used to check root in GitHub : https://github.com/Akshay-Kumar-S/rootChecker