summaryrefslogtreecommitdiffstats
path: root/tzdatacheck
Commit message (Collapse)AuthorAgeFilesLines
* Move system/core/tzdatacheck to system/timezoneNeil Fuller2017-06-162-615/+0
| | | | | | | | Move system/core/tzdatacheck to system/timezone. Test: make droid Bug: 31008728 Change-Id: I193767715956cb6076b7ec4a5240d4883a171fbf
* Track movement of some libcore/tzdata filesNeil Fuller2017-06-161-4/+4
| | | | | | | | | | Some files in libcore/tzdata are moving to system/timezone under the package com.android.timezone.distro. Bug: 31008728 Test: run cts -m CtsHostTzDataTests Merged-In: I2600dd4bee22a571b9eb7303733591b60d1a8b2a Change-Id: I2600dd4bee22a571b9eb7303733591b60d1a8b2a
* Update to support staging behaviorNeil Fuller2017-03-291-11/+193
| | | | | | | | | | | | | | The tzdatacheck binary is being modified to support "staging" of an install / uninstall. tzdatacheck is now responsible for making time zone distros "live" during boot. It was previously the responsibility of the TimeZoneDistroInstaller. Bug: 31008728 Test: Manual testing Test: CTS: run cts -m CtsHostTzDataTests Change-Id: I1d390bf2b383a9505320e3455a20ae640bf83d7b
* Track a Java package rename in commentsNeil Fuller2017-03-201-4/+4
| | | | | | | | | Some classes referenced in comments in libcore.tzdata.update2 have moved to libcore.tzdata.shared2. Bug: 31008728 Test: mmm system/core/tzdatacheck Change-Id: I390b375ab8fefbb46e69f4534000ff43ffcceae8
* Documentation improvementsNeil Fuller2017-02-091-1/+15
| | | | | | | | | Tweaks for documentation. Mostly to point out that the constants are duplicated in Java code. Bug: 31008728 Test: mmm tzdatacheck Change-Id: I068c09cfc6109a7567ad7e08edcecad40be831b3
* Rename "Bundle" to "Distro"Neil Fuller2017-02-091-77/+77
| | | | | | | | | Renaming "Bundle" to "Distro" because bundle is confusing given android.os.Bundle. Bug: 31008728 Test: mmm tzdatacheck Change-Id: I70408678d67eed9f9e0424c0791e856c909837be
* Add bundle format minor version check logicNeil Fuller2017-02-091-10/+41
| | | | | | | | The code now checks the minor version for completeness. Bug: 31008728 Test: Manual testing Change-Id: I28840065f794bd28de6282e81dc55336f77ab2d1
* Change tzdatacheck to account for bundle format changesNeil Fuller2017-01-101-71/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change tzdatacheck to account for bundle format changes: The update bundle now contains a bundle_version file to enable us to detect changes to the format of the files in addition to just checking the IANA rules version. The version will be incremented as we make incompatible changes to the structure of the bundle (e.g. the files present or their names), the file formats or the file contents. The old assumption was that a system image would typically contain newer rules than had been pushed via ConfigUpdater and we'd never get rid of the tzdata file from the bundle content. If Android makes rule updates routinely or makes substantial changes to the timezone data files between major releases then this assumption becomes (even more) untenable. The bundle_version file in the bundle is expected to contain the ASCII bytes for "001". This could be extended in a future version to include minor versioning information (e.g. "002.001") and so the code here only reads the first three bytes. This allows for a future change to add the minor version suffix and optionally increment the major version if required. Some error conditions that were previously treated as fatal are now handled more elegantly. Generally if things are not as expected with the installed bundle in /data tzdatacheck will attempt to delete it. The return code of the binary is used to distinguish between failure cases, which will be used in a future automated test. Some of the ConfigUpdater deletion code has been temporarily retained (with a TODO) so the v2 of the installer code can be used with ConfigUpdater/ConfigInstaller and keep something like the existing process working until we have replaced it with some thing better. Using the v2 installer code with ConfigInstaller is one possible fallback if the new distribution approach is not completed in time. Bug: 31008728 Test: Manual testing Change-Id: Ib253f7d4c9cd72d3e392754f4b787a98ec22bc53
* Convert more Android.mk files to Android.bpDan Willemsen2016-07-132-21/+14
| | | | | | | These modules have their dependencies satisfied, and aren't doing anything strange. Change-Id: I72039a15256cbd5e5eee0d79a15d66d74a6c087d
* Track rename of base/ to android-base/.Elliott Hughes2015-12-041-1/+1
| | | | Change-Id: Idf9444fece4aa89c93e15640de59a91f6e758ccf
* Executable to run on boot that removes old tzdata if neededNeil Fuller2015-04-132-0/+257
tzdatacheck is exec'd from init.rc early in boot just after /data is mounted. It checks to make sure that the tz rule data in /data is newer than the version in /system. If the data is older it is deleted. This is to address problems with earlier tz rule updates that occurred: after an OTA upgrade previous updates in /data would override newer versions in the system partition. Includes change to init.rc neccessary to run it at boot time. Other changes are in external/selinux. Bug: 19941636 Bug: https://code.google.com/p/android/issues/detail?id=35730 Change-Id: I7cc61e058424c856da88f11ff9b259f34cb39dc7