Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 boolean

For a complete example see the sample app `https://github.com/islamdidarmd/rootchecker/tree/master/app`