I am developing some enterprise applications which are be restricted to run on Rooted devices.
I was using this piece of code of identifying the root access and it was working fine.
Determine if running on a rooted device
But today I came to know that my security team had broken the root check in the application using Root Cloak.
Root Cloak link: http://galaxy-note-3.wonderhowto.com/how-to/trick-apps-wont-run-if-your-phone-is-rooted-into-thinking-its-not-galaxy-note-3-0150385/
I am planning to restrict the access of my application If Root Cloak application is present on the device. But I doesn't feel it is a good solution because what if a new app will come tomorrow.
Also I was thinking that if Root Cloak can add or remove apps for Hiding root Access can't my application use the only the remove part and when I launch my app first it remove the app from hided root access using some piece of code.
Can anybody have any idea about how Root Cloak is doing the same and what could be the workaround to get rid of this.