nativescript-rootbeer
by chimon2000 | v1.0.0
Rootbeer plugin for Telerik NativeScript
npm i --save nativescript-rootbeer

NativeScript RootBeer

A NativeScript module for detecting root on Android. It uses the RootBeer library

Installation

From the command prompt go to your app's root folder and execute:

tns plugin add nativescript-rootbeer

Usage

Here are the supported functions:

function: isRooted

JavaScript

  let rootBeer = require('nativescript-rootbeer')

rootBeer.isRooted();

TypeScript

  import { isRooted } from 'nativescript-rootbeer'

isRooted()

function: detectRootManagementApps

JavaScript

  let rootBeer = require('nativescript-rootbeer')

rootBeer.detectRootManagementApps();

TypeScript

  import { detectRootManagementApps } from 'nativescript-rootbeer'

detectRootManagementApps()

function: detectPotentiallyDangerousApps

JavaScript

  let rootBeer = require('nativescript-rootbeer');

rootBeer.detectPotentiallyDangerousApps();

TypeScript

  import { detectPotentiallyDangerousApps } from 'nativescript-rootbeer'

detectPotentiallyDangerousApps()

function: detectTestKeys

JavaScript

  let rootBeer = require('nativescript-rootbeer');

rootBeer.detectTestKeys();

TypeScript

  import { detectTestKeys } from 'nativescript-rootbeer'

detectTestKeys()

function: checkForBusyBoxBinary

JavaScript

  let rootBeer = require('nativescript-rootbeer');

rootBeer.checkForBusyBoxBinary();

TypeScript

  import { checkForBusyBoxBinary } from 'nativescript-rootbeer'

checkForBusyBoxBinary()

function: checkForSuBinary

JavaScript

  let rootBeer = require('nativescript-rootbeer');

rootBeer.checkForSuBinary();

TypeScript

  import { checkForSuBinary } from 'nativescript-rootbeer'

checkForSuBinary()

function: checkSuExists

JavaScript

  let rootBeer = require('nativescript-rootbeer');

rootBeer.checkSuExists();

TypeScript

  import { checkSuExists } from 'nativescript-rootbeer'

checkSuExists()

function: checkForRWPaths

JavaScript

  let rootBeer = require('nativescript-rootbeer');

rootBeer.checkForRWPaths();

TypeScript

  import { checkForRWPaths } from 'nativescript-rootbeer'

checkForRWPaths()

function: checkForDangerousProps

JavaScript

  let rootBeer = require('nativescript-rootbeer');

rootBeer.checkForDangerousProps();

TypeScript

  import { checkForDangerousProps } from 'nativescript-rootbeer'

checkForDangerousProps()

function: checkForRootNative

JavaScript

  let rootBeer = require('nativescript-rootbeer');

rootBeer.checkForRootNative();

TypeScript

  import { checkForRootNative } from 'nativescript-rootbeer'

checkForRootNative()

function: detectRootCloakingApps

JavaScript

  let rootBeer = require('nativescript-rootbeer');

rootBeer.detectRootCloakingApps();

TypeScript

  import { detectRootCloakingApps } from 'nativescript-rootbeer'

detectRootCloakingApps()

Thanks

Scott Alexander-Bown and Matthew Rollings for their contributions to RootBeer

License

Apache License, Version 2.0

Copyright (C) 2015, Scott Alexander-Bown, Mat Rollings, Ryan Edge

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.