mirror of
https://github.com/shuto-cn/cordova-plugin-root-detection.git
synced 2026-01-28 00:00:01 +08:00
Update rootdetection.js
添加模拟器识别功能,目前仅能识别Android SDK中的模拟器
This commit is contained in:
@@ -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", []);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user