Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/islamdidarmd/rootchecker
A class to verify if the device is rooted or not
https://github.com/islamdidarmd/rootchecker
android gradle java kotlin root root-checker verify
Last synced: 20 days ago
JSON representation
A class to verify if the device is rooted or not
- Host: GitHub
- URL: https://github.com/islamdidarmd/rootchecker
- Owner: islamdidarmd
- License: mit
- Created: 2018-12-23T09:23:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-06T09:13:39.000Z (over 5 years ago)
- Last Synced: 2024-11-22T11:52:17.337Z (3 months ago)
- Topics: android, gradle, java, kotlin, root, root-checker, verify
- Language: Kotlin
- Homepage:
- Size: 126 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rootchecker
A class to verify if the device is rooted or not[![](https://jitpack.io/v/islamdidarmd/LoadingButton.svg)](https://jitpack.io/v/islamdidarmd/LoadingButton)
## Installation (with Gradle)
Add the dependency to your root *build.gradle*:
```groovy
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
```
Now add this dependency in your module *build.gradle*
```groovy
dependencies {
implementation 'com.github.islamdidarmd:rootchecker:$latest_release'
}
```### How to use
If you don't want to include this project in gradle, just copy `RootHelper.kt` class in your project and use it.
To get root status just do `RootHelper.getInstance().canRunRootCommands()`
This method returns a booleanFor a complete example see the sample app `https://github.com/islamdidarmd/rootchecker/tree/master/app`