mirror of
https://github.com/shuto-cn/cordova-plugin-root-detection.git
synced 2026-04-19 00:01:31 +08:00
59743503dd
添加模拟器识别功能,目前仅能识别Android SDK中的模拟器
10 lines
268 B
JavaScript
10 lines
268 B
JavaScript
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", []);
|
|
}
|