Update rootdetection.js

添加模拟器识别功能,目前仅能识别Android SDK中的模拟器
This commit is contained in:
langxiankui
2018-11-14 13:44:19 +08:00
committed by GitHub
parent e560a07063
commit 59743503dd

View File

@@ -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", []);
}