Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool IsDeviceRooted()
- {
- string[] rootIndicators = {
- "/system/app/Superuser.apk",
- "/system/xbin/su",
- "/system/bin/su",
- "/system/xbin/mu"
- };
- foreach (string path in rootIndicators)
- {
- if (System.IO.File.Exists(path))
- {
- Debug.LogWarning("Device is rooted!");
- return true;
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement