Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Fake locations get a height of 686 meter +/- accuracy
Browse files Browse the repository at this point in the history
Refs #1179
  • Loading branch information
M66B committed Feb 3, 2014
1 parent 67ee725 commit ffe9b2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Test and beta releases will have experimental functions enabled by default.
* Fixed on demand choice not sticking
* Fixed on demand asking for same restriction
* Fixed reboot problem in relation to on demand ([issue](https://github.com/M66B/XPrivacy/issues/1238))
* Fake locations get a height of 686 meter +/- accuracy ([issue](https://github.com/M66B/XPrivacy/issues/1179))
* Removed restriction *Srv.getConfiguredNetworks*

[Open issues](https://github.com/M66B/XPrivacy/issues?state=open)
Expand Down
2 changes: 1 addition & 1 deletion src/biz/bokhorst/xprivacy/PrivacyManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ public static Location getDefacedLocation(int uid, Location location) {
else
location.setLongitude(Float.parseFloat(sLon) + (Math.random() * 2.0 - 1.0) * location.getAccuracy() * 9e-6);

location.setAltitude(0);
location.setAltitude(686 + (Math.random() * 2.0 - 1.0) * location.getAccuracy());

return location;
}
Expand Down

0 comments on commit ffe9b2e

Please sign in to comment.