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

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

Open
Nikhil-Rattan opened this issue Nov 7, 2023 · 3 comments

Comments

@Nikhil-Rattan
Copy link

Nikhil-Rattan commented Nov 7, 2023

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

JoymenR commented Nov 9, 2023

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

Nikhil-Rattan commented Nov 10, 2023

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

devdaniellima commented Jan 29, 2024

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.

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