react-native-detect-frida
Version:
A React-Native library to detect if frida server is running or not
14 lines • 443 B
JavaScript
import { NativeModules, Platform } from 'react-native';
import NativeDetectFrida from './NativeDetectFrida';
const DetectFrida = NativeDetectFrida ? NativeDetectFrida : NativeModules.DetectFrida;
const isAndroid = () => {
return Platform.OS === 'android';
};
export function isDeviceRooted() {
if (isAndroid()) {
return DetectFrida.detectRoot();
} else {
return DetectFrida.isJailBroken();
}
}
//# sourceMappingURL=index.js.map