Bug: 178184202

Clone this repo:
  1. cac51dc Speed up TzS2PolygonsToTzS2CellUnionsTest by Neil Fuller · 5 weeks ago master
  2. 4c46e5e Empty merge of sc-v2-dev-plus-aosp-without-vendor@8084891 by Xin Li · 3 months ago
  3. b86c8ab Fix licenses and license texts. am: 6e26eee722 by Bob Badour · 4 months ago
  4. 6e26eee Fix licenses and license texts. by Bob Badour · 4 months ago
  5. d72a806 Adjust OWNERS to reflect new ownership am: 61b83166ac am: 51d7f602a8 am: 1e3ac9ab8a am: 164c199ef0 by Neil Fuller · 7 months ago

This directory contains code, tools and data for the AOSP reference location time zone provider. Location time zone providers are used for location-based time zone detection on Android. See Android's android.service.timezone.TimeZoneProviderService class for more details.

Directory structure


  • Files associated with a proposed mainline module APEX to hold the AOSP reference location time zone provider.


  • Utility code shared between several subdirectories.


  • Code for a host sample / reference data generation pipeline. See run-data-pipeline.sh below.


  • A high-level API for performing time zone ID lookups for a location using the tzs2.dat file. Supports host and device usage.


  • A reference location time zone provider that uses AOSP APIs to obtain location and the geotz_lookup APIs to obtain the time zone IDs to pass to the platform.


  • Holds the tzs2.dat file generated by run-data-pipeline.sh along with the associated license files.


  • File reading / writing code and tools to support tzs2.dat generation on host, and the file's use on host and device. See s2storage/README.md for format details.


  • Data / licenses from the external timezone-boundary-builder project. Used as input for the reference data generation pipeline.


  • Tooling to help validate the tzs2.dat file against other data sources.

Data file update tools



  • Runs the data_pipeline data generation pipeline. It takes data from tzbb_data/, processes it, and puts the resulting tzs2.dat file in output_data/.