Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iremyk opened this issue Dec 19, 2023 · 2 comments
Open

Comments

@iremyk
Copy link

iremyk commented Dec 19, 2023

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:

  • React Native Version: 0.72.5
  • jail-monkey Version: 2.8.0
  • Emulator: Android Studio Emulator

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
Copy link

guvenkaranfil commented Jan 3, 2024

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants