| « Use Google Authenticator to login to a Linux PC | IPv6 ip6tables firewall configuration » |
Regularly cleaning your consolidated.db file on the iPhone
I made a little plist that clears out my consolidated.db on my (jailbroken) iphone.
Steps taken:
- connect to the iphone using ssh:
- $ iproxy 2222 22
- $ ssh mobile@localhost -p 2222
- enter password
- become root
- $ su -
- enter password
- go to the correct directory for launchdaemons
- # cd /Library/LaunchDaemons
- create a plist
- # nano eu.bethlehem.eu.cleartrackingdb.plist
- copy the code below into the plist
- add the plist to the launchcontroller
- # launchctl load eu.bethlehem.jf.cleartrackingdb.plist
All done ![]()
Code for in the plist:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>eu.bethlehem.jf.cleartrackingdb</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/sqlite3 /private/var/root/Library/Caches/locationd/consolidated.db 'DELETE FROM celllocation;vacuum;'</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Minute</key>
<integer>60</integer>
</dict>
</dict>
</plist>
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)