LockMaps is a small iOS tweak (similar to lighttpd_settings) that allows you to lock down the Maps application cache database. It adds a settings option that allows you to toggle the lock on or off and thereby allow you to permanently cache map tiles.
Aside from the lighttpd_settings tricks, this tweak adds a trigger to the /var/mobile/Library/Caches/Maps/MapTiles/MapTiles.sqlitedb
:
CREATE TRIGGER IF NOT EXISTS lock_delete BEFORE DELETE ON images BEGIN SELECT raise(IGNORE); END
so that when the switch is toggled in the Settings application to ON
any deletion requests from the Maps application will be ignored. Conversely, when the switch is toggled to OFF
, we remove the trigger with:
DROP TRIGGER IF EXISTS lock_delete