seemoo-lab / AirGuard

Protect yourself from being tracked 🌍 by AirTags 🏷 and Find My accessories πŸ“
Apache License 2.0
1.96k stars 110 forks source link

Incorrect locations shown #127

Closed philnagel closed 1 year ago

philnagel commented 1 year ago

I am getting notifications for 2 devices that are following me. I believe these are false positive alerts but what is strange is that the locations shown for both of the devices are identical, and they are both showing incorrect locations.

In this screenshot, only 1 of the pins corresponds to my actual location, I never visited any of the other locations on the days this is reported. I believe these tags are located somewhere at my office, which is very likely since there are a lot of other people here who probably have tags on their keys, etc. I am wondering if the reason it is alerting me is because it is picking up these tags at more than one location, where they are all incorrect except for one? In other words, does the algorithm for determining if something is following me, consider whether it is seen > 1 locations?

Screenshot_20230426-084758 (I disabled networks temporarily to block the map tiles from loading for this screenshot)

By the way, I believe the additional locations are just the "coarse" locations from cell towers or similar. I think I have everything set up correctly for the app to be able to use precise locations though.

Screenshot_20230426-084003 Screenshot_20230426-084017

Zoarial94 commented 1 year ago

I am seeing a similar issue, but with locations I have been to. Recently I've had at least 2 false positives.

Today, I left home with no devices that could've been tracking me, drove to 2 different locations, and returned home 7hrs after first leaving. I only received a notification once I returned home.

The map shows a point at my apartment from before I initially left, a point at my last stop before directly heading home, and a point once I got back home. I can confirm I don't have a tracker in my car or on my person.

I suspect the app is using a stale location sometimes.

I am using the latest version on Graphene OS on a Pixel 6 Pro. Precise location is always on. Battery usage is unrestricted.

Screenshot_20230819-224329.png

Sn0wfreezeDev commented 1 year ago

In the worst case we use older locations. Our algorithm works like this:

  1. The app queries a current location over GPS or Wi-Fi
  2. If no location is found in 60s we default back to the last location known by Android
  3. This location can be older.

We try to use the best possible technique to get the most current location. Depending on the conditions it might not work and we only get an old location.

Kind regards Alexander Heinrich On 20. Aug 2023 at 04:45 +0200, Hunter White @.***>, wrote:

I am seeing a similar issue, but with locations I have been to. Recently I've had at least 2 false positives. Today, I left home with no devices that could've been tracking me, drove to 2 different locations, and returned home 7hrs after first leaving. I only received a notification once I returned home. The map shows a point at my apartment from before I initially left, a point at my last stop before directly heading home, and a point once I got back home. I can confirm I don't have a tracker in my car or on my person. I suspect the app is using a stale location sometimes. I am using the latest version on Graphene OS on a Pixel 6 Pro. β€” Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

aereaux commented 1 year ago

This seems to be causing a lot of false positives for me. It might be made worse by the fact that (I think) my phone (grapheneos) doesn't have a wifi-based location provider. But when I stay in one location for a while sometimes AirGuard thinks that I've been moving around along with whatever airtags have been near me for that time. Is there some way I can set it to only use non-stale GPS locations?

Sn0wfreezeDev commented 1 year ago

That’s interesting feedback to hear. We already have seen some other issues with Graphene OS, so it could be more common with these Android devices. When we evaluated Pixel and Samsung devices the GPS location would reach a good accuracy after about 30-40s. So we expected that in most cases this would work when combining it with the network provider for inside environments. However, this seems to be a misconception for some Android versions.

We will look into this further.

Kind regards Alexander Heinrich On 28. Aug 2023 at 19:02 +0200, Aidan Epstein @.***>, wrote:

This seems to be causing a lot of false positives for me. It might be made worse by the fact that (I think) my phone (grapheneos) doesn't have a wifi-based location provider. But when I stay in one location for a while sometimes AirGuard thinks that I've been moving around along with whatever airtags have been near me for that time. Is there some way I can set it to only use non-stale GPS locations? β€” Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

aereaux commented 1 year ago

It may also be more prominent with certain locations. When I'm in my apartment it seems to take a while to get a first fix, probably longer than 60s some or most of the time.

Let me know if there's anything I can do to provide more information or debugging.

Sn0wfreezeDev commented 1 year ago

So it seems like GPS may be slow and the network location provider too inaccurate. Both in combination could lead to that issue. In version 2.1 we also rely on the fused location provider and take more time until the last location is used

aereaux commented 1 year ago

Unfortunately it seems that it still causes false positives for me with 2.1.