jail-monkey icon indicating copy to clipboard operation
jail-monkey copied to clipboard

CanMockLocation method returns true even for the calender in xaiomi phones

Open Nikhil-Rattan opened this issue 2 years ago • 4 comments

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

Nikhil-Rattan avatar Nov 07 '23 06:11 Nikhil-Rattan

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.

JoymenR avatar Nov 09 '23 14:11 JoymenR

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

Nikhil-Rattan avatar Nov 10 '23 10:11 Nikhil-Rattan

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.

devdaniellima avatar Jan 29 '24 14:01 devdaniellima

Any update on this false positive issue of canMockLocation() ? Vivo phones have this issue despite even if the developer options is turned off.

smohit02 avatar Feb 26 '25 11:02 smohit02