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

CanMockLocation method returns true even for the calender in xaiomi phones #208

Open Nikhil-Rattan opened 11 months ago

Nikhil-Rattan commented 11 months ago

JailMonkey.canMockLocation() Every it returns true in xaiomi phone, so unable to use the app further.

Testing Device: Any Xaiomi phone

Just want that the package should ignore the inbuild calender of Xaiomi and check for other apps that mocks the location.

@GantMan It would be great help, if you can look into this issue

JoymenR commented 11 months ago

Hello @Nikhil-Rattan how did you find out that the calendar app was using mock location, is there any way of detecting apps that use this mock location feature?

I'm facing a similar issue where no actual mock location app is being used in vivo devices but the CanMockLocation method returns true.

Nikhil-Rattan commented 11 months ago

Hi @JoymenR,

You can check it by following 3 steps: In your phone go to

Settings>Developer Options>Select mock location app

Any app showing inside this option will be considered as mock location app by jail broken. For example it is considering calender app as mock location app and I'm not able to run my app

For your refernce I'm attching 2 screenshots: WhatsApp Image 2023-11-10 at 3 36 00 PM (1) WhatsApp Image 2023-11-10 at 3 36 02 PM

devdaniellima commented 8 months ago

I'm having the same problem on LG K50S device, it have a pre-installed LG application com.lge.gnsspostest which is returning true in this validation because it has the ACCESS_MOCK_LOCATION permission. At the same time, the Fake GPS application com.blogspot.newapphorizons.fakegps returns false because it does not have this permission in the manifest.