Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shannah/cn1jailbreakdetect
Codename One library to detect if devices if rooted/jailbroken
https://github.com/shannah/cn1jailbreakdetect
Last synced: 2 months ago
JSON representation
Codename One library to detect if devices if rooted/jailbroken
- Host: GitHub
- URL: https://github.com/shannah/cn1jailbreakdetect
- Owner: shannah
- Created: 2020-04-27T13:41:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T02:35:49.000Z (8 months ago)
- Last Synced: 2024-05-21T03:43:27.085Z (8 months ago)
- Language: Java
- Size: 90.8 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= CN1JailbreakDetection
A library for https://www.codenameone.com[Codename One] to detect if the device is jailbroken/rooted.
This cn1lib is a thin wrapper around https://github.com/thii/DTTJailbreakDetection[DDTJailbreakDetection] on iOS
and https://github.com/scottyab/rootbeer[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 https://www.codenameone.com/blog/automatically-install-update-distribute-cn1libs-extensions.html[this tutorial] which explains the process.
== Usage
[source,java]
----
if (JailbreakDetect.isJailbroken()) {
// device is jailbroken
} else {
// device is probably not jailbroken. BUT NOT 100% sure.
}
----== Further Reading
. https://www.codenameone.com/[Codename One website]
== Credits
. Created by https://sjhannah.com[Steve Hannah].
. Rootbeer created by https://github.com/scottyab[Scott Alexander-Brown].
. DDTJailbreakDetection created by https://github.com/thii[Thi]