nativescript-rootbeer
by chimon2000 | v1.0.0
为 Telerik NativeScript 的 RootBeer 插件
npm i --save nativescript-rootbeer

NativeScript RootBeer

一个检测 Android 系统是否 root 的 NativeScript 模块。它使用了 RootBeer

安装

在命令提示符下进入您的应用程序根目录并执行

tns plugin add nativescript-rootbeer

用法

以下是支持的功能

函数:isRooted

JavaScript

  let rootBeer = require('nativescript-rootbeer')

rootBeer.isRooted();

TypeScript

  import { isRooted } from 'nativescript-rootbeer'

isRooted()

函数:detectRootManagementApps

JavaScript

  let rootBeer = require('nativescript-rootbeer')

rootBeer.detectRootManagementApps();

TypeScript

  import { detectRootManagementApps } from 'nativescript-rootbeer'

detectRootManagementApps()

函数:detectPotentiallyDangerousApps

JavaScript

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

rootBeer.detectPotentiallyDangerousApps();

TypeScript

  import { detectPotentiallyDangerousApps } from 'nativescript-rootbeer'

detectPotentiallyDangerousApps()

函数:detectTestKeys

JavaScript

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

rootBeer.detectTestKeys();

TypeScript

  import { detectTestKeys } from 'nativescript-rootbeer'

detectTestKeys()

函数:checkForBusyBoxBinary

JavaScript

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

rootBeer.checkForBusyBoxBinary();

TypeScript

  import { checkForBusyBoxBinary } from 'nativescript-rootbeer'

checkForBusyBoxBinary()

函数:checkForSuBinary

JavaScript

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

rootBeer.checkForSuBinary();

TypeScript

  import { checkForSuBinary } from 'nativescript-rootbeer'

checkForSuBinary()

函数:checkSuExists

JavaScript

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

rootBeer.checkSuExists();

TypeScript

  import { checkSuExists } from 'nativescript-rootbeer'

checkSuExists()

函数:checkForRWPaths

JavaScript

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

rootBeer.checkForRWPaths();

TypeScript

  import { checkForRWPaths } from 'nativescript-rootbeer'

checkForRWPaths()

函数:checkForDangerousProps

JavaScript

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

rootBeer.checkForDangerousProps();

TypeScript

  import { checkForDangerousProps } from 'nativescript-rootbeer'

checkForDangerousProps()

函数:checkForRootNative

JavaScript

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

rootBeer.checkForRootNative();

TypeScript

  import { checkForRootNative } from 'nativescript-rootbeer'

checkForRootNative()

函数:detectRootCloakingApps

JavaScript

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

rootBeer.detectRootCloakingApps();

TypeScript

  import { detectRootCloakingApps } from 'nativescript-rootbeer'

detectRootCloakingApps()

感谢

Scott Alexander-BownMatthew Rollings 为 RootBeer 做出的贡献

许可

Apache 许可证,版本 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

     https://apache.ac.cn/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.