Advertisement
Hygcgggnngff

anti cheat

Sep 28th, 2024
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. bool IsDeviceRooted()
  2. {
  3. string[] rootIndicators = {
  4. "/system/app/Superuser.apk",
  5. "/system/xbin/su",
  6. "/system/bin/su",
  7. "/system/xbin/mu"
  8. };
  9.  
  10. foreach (string path in rootIndicators)
  11. {
  12. if (System.IO.File.Exists(path))
  13. {
  14. Debug.LogWarning("Device is rooted!");
  15. return true;
  16. }
  17. }
  18.  
  19. return false;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement