From 59743503dd045af9625488951f7eba61fde0eec6 Mon Sep 17 00:00:00 2001 From: langxiankui <33216671+langxiankui@users.noreply.github.com> Date: Wed, 14 Nov 2018 13:44:19 +0800 Subject: [PATCH] Update rootdetection.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加模拟器识别功能,目前仅能识别Android SDK中的模拟器 --- www/rootdetection.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/rootdetection.js b/www/rootdetection.js index ac86ac4..c72079e 100644 --- a/www/rootdetection.js +++ b/www/rootdetection.js @@ -3,3 +3,7 @@ var exec = require('cordova/exec'); exports.isDeviceRooted = function(success, error) { exec(success, error, "RootDetection", "isDeviceRooted", []); }; + +exports.isEmulate = function (success, error) { + exec(success, error, "RootDetection", "isEmulate", []); +}