Skip to content

Codename One library to detect if devices if rooted/jailbroken

Notifications You must be signed in to change notification settings

shannah/CN1JailbreakDetect

Repository files navigation

CN1JailbreakDetection

A library for Codename One to detect if the device is jailbroken/rooted.

This cn1lib is a thin wrapper around DDTJailbreakDetection on iOS and rootbeer on Android. Other platforms don’t support jailbreak detection.

License

Apache 2.0

Platform support

Currently supported on iOS and Android. isJailbroken() just returns false elsewhere.

Installation

Add the CN1JailbreakDetection.cn1lib to your project through Codename One settings.

If you haven’t activated any cn1libs before in your Codename One projects, see this tutorial which explains the process.

Usage

if (JailbreakDetect.isJailbroken()) {
	// device is jailbroken
} else {
	// device is probably not jailbroken.  BUT NOT 100% sure.
}

Further Reading

Credits

  1. Created by Steve Hannah.

  2. Rootbeer created by Scott Alexander-Brown.

  3. DDTJailbreakDetection created by Thi

About

Codename One library to detect if devices if rooted/jailbroken

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published