Using android ndk(c++) to determine if the phone is rooted. The jni function is a boolean function named isRooted().
- which su
- execute 'which su', if we get a path, that means it may be rooted
- package manager
- find packages that are usually installed after rooting the phone
- path
- find comman path of root files
- build-tag
- check build tag
- Check if is in debugging mode
- Check /proc/self/status and see if TracerPid != 0
- Check Packages