RootBeerFresh Android Library

repository·master·Indexed 41 days ago

https://github.com/kimchangyoun/rootbeerfresh

An open-source Android library for detecting rooted devices, specifically targeting modern rooting technologies like Magisk. Provides the RootBeer class with methods such as isRooted() and isRootedWithoutBusyBoxCheck() to avoid false positives from manufacturer-installed BusyBox.

Tokens
325
Snippets
3
Records
3
Agent score
1%

What's inside RootBeerFresh

  1. Install the RootBeerFresh library via Gradle

    master

    To use RootBeerFresh in your Android project, add the library as a dependency in your build.gradle file. The library is available on Maven Central and JitPack.

    dependencies {
        implementation 'kimchangyoun:rootbeerFresh-lib:0.0.11'
    }
  2. Detect rooting using the RootBeer class

    master

    You can check if an Android device is rooted by instantiating the RootBeer class with a context and calling isRooted().

    Note: This method may return false positives if the device manufacturer includes BusyBox in the device's ROM. If you want to avoid detecting BusyBox as a root indicator, use isRootedWithoutBusyBoxCheck() instead.

    RootBeer rootBeer = new RootBeer(context);
    if (rootBeer.isRooted()) {
        // we found indication of root
    } else {
        // we didn't find indication of root
    }