DEV Community

Cover image for How to check root (jailbreak) status device (iOS or android)
Code Better #Sofast
Code Better #Sofast

Posted on

2 1

How to check root (jailbreak) status device (iOS or android)

You develop an application by Native programming (Java, Kotlin, ObjectC, Swift) , also Cross-platform (Flutter, React Native,...) And you need check root or jailbreak status. Have many methods to check it. After i will list some method that i know:

  • Check by access permission with special path, or file. With android, example: "/system/bin/su", "/system/xbin/su", "/data/local/xbin/su", "/data/local/bin/su", ... With iOS: "/usr/sbin/sshd", "/private/var/lib/apt/"
  • Check exist root app (after rooted or jailbreak): Cydia.app with iOS and Superuser.apk with android If an system be content with two conditions upper, you can return rooted (jailbreak)

Top comments (0)

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay