sankardevisharath / CN1JailbreakDetect

Codename One library to detect if devices if rooted/jailbroken

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Java 76.2%Language:Objective-C 10.8%Language:JavaScript 7.4%Language:C# 5.6%