npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cordova-plugin-android-rootbeer

v0.0.8

Published

A wrapper plugin for rootbeer library. This library is used to detect root on Android Devices.

Downloads

421

Readme

Cordova RootBeer

This is a simple wrapper plugin for RootBeer library by @scottyab for android. You can access 13 functions of the library.

Link to Scott's library .

Installation

Cordova:

cordova plugin add cordova-plugin-android-rootbeer

Ionic:

ionic cordova plugin add cordova-plugin-android-rootbeer

Functions

Syntax

window.cdvRootBeer.isRooted(successCallback, errorCallback);

Success Callbacks

The responses on successCallbacks are either true or false. NB, these are string values not boolean values. e.g.

window.cdvRootBeer.isRooted(function(res){
// res will be true for rooted device.
// res will be false for non-rooted device.
}, errorCallback)

| Methods | True | False | | ------------------------------ | :---: | ----: | | checkForBusyBoxBinary | true | false | | checkForSuBinary | true | false | | checkSuExists | true | false | | checkForRWPaths | true | false | | checkForDangerousProps | true | false | | checkForRootNative | true | false | | detectRootCloakingApps | true | false | | detectRootManagementApps | true | false | | detectPotentiallyDangerousApps | true | false | | detectTestKeys | true | false | | isSelinuxFlagInEnabled | true | false | | isRooted | true | false | | isRootedWithoutBusyBoxCheck | true | false |

Method Description


checkForBusyBoxBinary: This essentially checks for busybox binary in known locations like /bin , /xbin & /sbin.


checkForSuBinary : Checks for su binary in known locations.


checkSuExists : Checks for native root in a different manner.


checkForRWPaths : Checks if paths are writable . Especially important if you have /system is rw.


checkForDangerousProps: Checks for dangerous props in build. Custom ROMs include some props which enable ease of rooting. Especially ro.debuggable.


checkForRootNative : Yet another root check. Checks for root natively, which is harder against root cloaks.


detectRootCloakingApps : Detects Root cloaking apps like rootcloak, & hide my root .Also Xposed and Substrate which are frameworks which help in cloaking.


detectRootManagementApps: Detects Root management Apps like SuperSU, Superuser (noshufou),Superuser (koush)


detectPotentiallyDangerousApps : Detect apps like Lucky Patcher ,ROM Manager & App Quarantine. The list is quite limited though.


detectTestKeys : Detects if ROM build has test-keys


isSelinuxFlagInEnabled : Checks if SE Linux is Enforcing. Thats it.


isRooted: IsRooted is amalgamation of the methods above.

  • detectRootManagementApps
  • detectPotentiallyDangerousApps
  • checkForSuBinary
  • checkForBusyBoxBinary
  • checkForDangerousProps
  • checkForDangerousProps
  • detectTestKeys
  • checkSuExists
  • checkForRootNative

isRootedWithoutBusyBoxCheck : Same as above , just without busybox check. Some phone manufacturers bundle busybox with their firmware.

Issues

Post the issues related to this library here . Do provide the device details as below.

  • Device name & manufacturer
  • Android version
  • Custom OS version (Lineage , MIUI , Exodus, DU)