Where's my Location (Data)
18 Feb 2015
These notes were prepared for CUGOS meeting 02/18/2015 and were not peer reviewed by the author.
Where am I when applications access my mobile location?
- who: which app
- when: timestamp
- what: location accessed
- where: known location
Root Android device and run tcpdump in the background to capture all data entering and leaving device. Isolate traffic with location data for analysis.
This is tcpdump running on my computer:
Long story short, one could capture a lot of data through this method, but it’s messy and a lot of it is probably unreadable.
Does Android’s location manager log access events in the system log? I haven’t been able to find a difiniive answer to this question yet and it requires a rooted device to find out what is actually there.
Seems really unlikely that the location manager would store all the information I want, even temporarily.
Location API Hacking
Initial thought here: hack the OS (steep learning curve) to log required data when accessed. If this is possible, it seems like a clean way to capture the data points.
After an informal conversation with a friend, this does not seem possible. Google Services, which is where Google puts its latest and greatest, is proprietary, not open source.
This could be easier if I switch to a version of Android that is open, but then I’d no longer be centered under Google’s umbrella.
Straight from the source
portal: Location History
Now this is (kinda) what I’m talking about! If you have location reporting enabled on your device, Google collects lots of data and it’s pretty accessible through this portal.
I downloaded the last 30 days. The KML file had 17,470 timestamped points.
I’ll probably run with the data from the portal for now to develop the questions/maps I can answer/make before getting deeper into collecting the full dataset.
Open to suggestions.