The article “Cool or Creepy? Your iPhone and iPad Are Keeping Track of Everywhere You Go, And You Can See It” [via @netzzwerg] describes that iPhones and iPads keep a log of the locations you have visited while they were switched on:
Named “consolidated.db,” the file has thousands of location data points for each of them starting at the time they respectively updated their operating systems to iOS 4 — released in June 2010. Each location point includes latitude, longitude, a time stamp, and the IP address for the wireless network their phone was accessing for service. One of the researchers had 33,000 location check-ins over seven months (including a few erroneously placing him in South America).Comments:
[...]
Warden [...] expresses concern about the fact that the history is sitting on a plain, unencrypted file on the iPhone, and then transferred to a computer any time the device is synced.
You should encrypt your backups, if not for security reasons, for a big convenience gain: encrypted backups will include your email and Mobile Me passwords so you never need to re-enter them after a restore.On the other hand, this makes it easier for hackers to get to your iOS passwords [source, in German].
![]() |
Mac application “iPhone Tracker”. |
The big question of course, is why Apple is storing this information. I don’t have a definitive answer, but my little-birdie-informed understanding is that consolidated.db acts as a cache for location data, and that historical data should be getting culled but isn’t, either due to a bug or, more likely, an oversight. I.e. someone wrote the code to cache location data but never wrote code to cull non-recent entries from the cache, so that a database that’s meant to serve as a cache of your recent location data is instead a persistent log of your location history. I’d wager this gets fixed in the next iOS update.
[...] the collected geodata is stored on the iOS device, then anonymized with a random identification number generated every 24 hours by the iOS device, and finally transmitted over an encrypted Wi-Fi network every 12 hours (or later if there’s no Wi-Fi available) to Apple. That means Apple and its partners can’t use this collected geodata to personally identify a user.
At Apple, the data gets stored in a database “accessible only by Apple,” the letter says.
[...] after that data is transmitted to Apple “every 12 hours,” Apple’s database should already have the data needed to improve your location services, and there’s no reason for it to stick around on your device — especially after 10 months. [This would support the hypothesis of [2] that keeping the data that long has been an oversight on Apple’s part.]