Android Question GPS simulated location

fbritop

Active Member
Licensed User
Longtime User
I have an app, which uses Fused Location Provider. My actual android phone does not allow, but I´ve seen phones that allow you to simulate de GPS location.

Is it possible, that the user (thorugh the developer system menu), can enter a fake location, and force the app to use this location?. I don´t want that, but to avoid that. Is it is possible, how can the fusedLocation know that the actual position is a simulated one and not the real one?

Thanks
FBP
 

fbritop

Active Member
Licensed User
Longtime User
Yes
I have try with enable, returns 0
Enable and external app giving a mock location returns 0
 
Upvote 0

fbritop

Active Member
Licensed User
Longtime User
Before I could not find the settings, but i found it. It allows you to select 1 App or nothing. I have tried with the extenal app running a giving a false location, and p.getSettings does always returns "0". If for any case, device is Huawei p30 lite
 
Upvote 0

fbritop

Active Member
Licensed User
Longtime User
Sory if it was my mistake, I want to disable some of my buttons, if the location is a MOCK

Is it possible, that the user (thorugh the developer system menu), can enter a fake location, and force the app to use this location?. I don´t want that
 
Upvote 0
Top