I'm trying to mock location for use in another application, but that application is removing my TestProvider, making it impossible to mock the location.
How can I prevent this other app from removing my TestProvider ?
The code that the other application is running to prevent mock is:
private void BuscarLocalizacaoAtual(String provider, LocationListener locationListener) {
try {
this.locationManager.removeTestProvider(provider);
} catch (Exception e) {
}
this.locationManager.requestLocationUpdates(provider, time, 0.0f, locationListener);
}
* I would like to initially get around this problem through an apk. I know I could do this by editing the operating system.
bounty of 100 for anyone who helps me dribble this deal.