islamdidarmd / rootchecker

A class to verify if the device is rooted or not

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rootchecker

A class to verify if the device is rooted or not

Installation (with Gradle)

Add the dependency to your root build.gradle:

   repositories {
        jcenter()
        maven { url "https://jitpack.io" }
   }

Now add this dependency in your module build.gradle

   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

About

A class to verify if the device is rooted or not

License:MIT License


Languages

Language:Kotlin 75.4%Language:Java 24.6%