GantMan / jail-monkey

A React Native library for identifying if a phone is rooted or mocking locations
MIT License
585 stars 145 forks source link

Unexpected Behavior in isJailBroken() Method After React Native Upgrade #218

Open iremyk opened 10 months ago

iremyk commented 10 months ago

We are currently facing an issue with the jailbreak detection feature in the jail-monkey library after upgrading our React Native application to a newer version. Prior to the upgrade, the isJailBroken() method was functioning correctly and returning true as expected when running the app on both Android emulator and iOS simulator.

However, post the React Native upgrade, the isJailBroken() method now consistently returns false when the app is run on the emulator.

Additional Information:

We have thoroughly checked for changes in the React Native upgrade documentation and the jail-monkey release notes but haven't found any relevant information. Any guidance or insights into resolving this issue would be greatly appreciated.

guvenkaranfil commented 9 months ago

I guess this is not relevant to react-native upgrade @iremyk . After I investigate to implementation of isJailBroken function. It is returning if the target is simulator.

` #if TARGET_OS_SIMULATOR return NO;

endif`

To able to get true simply return YES like below;

` #if TARGET_OS_SIMULATOR return YES;

endif`

Bernardo1411 commented 5 months ago

I'm running the debug release APK on my android device, which is rooted, but I still get no message indicating that the device is rooted.