public class LocationFudger extends Object
The goal is just to prevent applications with only the coarse location permission from receiving a fine location.
Modifier and Type | Field and Description |
---|---|
static long |
FASTEST_INTERVAL_MS
This is the fastest interval that applications can receive coarse
locations.
|
Constructor and Description |
---|
LocationFudger(Context context,
Handler handler) |
Modifier and Type | Method and Description |
---|---|
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
Location |
getOrCreate(Location location)
Get the cached coarse location, or generate a new one and cache it.
|
public static final long FASTEST_INTERVAL_MS
public Location getOrCreate(Location location)
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)