[tor-bugs] #32299 [Core Tor/Tor]: read GeoIPFile and GeoIP6File straight out of APK file (Android-only)

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Oct 25 19:39:03 UTC 2019


#32299: read GeoIPFile and GeoIP6File straight out of APK file (Android-only)
---------------------------------+------------------------------
 Reporter:  eighthave            |          Owner:  (none)
     Type:  enhancement          |         Status:  new
 Priority:  Medium               |      Component:  Core Tor/Tor
  Version:                       |       Severity:  Normal
 Keywords:  Android, tbb-mobile  |  Actual Points:
Parent ID:                       |         Points:
 Reviewer:                       |        Sponsor:
---------------------------------+------------------------------
 Right now, the ''geoip'' and ''geoip6'' files are packed into the APK,
 which is basically a ZIP/JAR file.  Then when Orbot/TorBrowser/etc starts,
 it unzips those files to a local folder.  Since those files are read only,
 they could be read directly out of the zip file.  This would mean faster
 startup times and less disk space in use.  Right now, there is a full ZIP
 read, then a full write, then a full read from disk.

 I believe that tor is already linked against zlib, so the functions are
 there.  In any case, zlib is one of the few libs that are provided by the
 NDK.

 Android already does things like this.  For example, PNG files are stored
 uncompressed in the APK.  The whole ZIP file is byte aligned for each PNG
 reading.  Then the APK maintains a list of pointers to the byte position
 in the APK file a PNG file can be read from.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/32299>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list