Here is how you can use the library
MockCheck(this).observerMockChanges().observe(this) {
var isMock = it
// says true if it's mock location
Or you can just call isMockedLocation method to get a boolean response of mock statusif
if (MockCheck(context).isMockedLocation){
// user is faking their location
From versions above 0.1.0, I added a few more methods to verify the location spoofing
if (mockCheck.isEmulated){
// check if your application is running on an emulated environment
Also check if developer options are enabled on the user's device
if (mockCheck.developerOptionsStatus){
// developer options are enabled
Last modified 9mo ago