diff options
author | Neil Fuller <nfuller@google.com> | 2015-03-31 18:24:29 +0100 |
---|---|---|
committer | Neil Fuller <nfuller@google.com> | 2015-04-13 11:38:32 +0100 |
commit | 08913228e17f4a16b6fbe77f9f08ca2a13323f5e (patch) | |
tree | 89956aff603e0506c8c2d884e79a8ce1985803c6 /tzdatacheck/Android.mk | |
parent | d67ff2d507add84a4d958bc19657e88d4689b92d (diff) | |
download | system_core-08913228e17f4a16b6fbe77f9f08ca2a13323f5e.zip system_core-08913228e17f4a16b6fbe77f9f08ca2a13323f5e.tar.gz system_core-08913228e17f4a16b6fbe77f9f08ca2a13323f5e.tar.bz2 |
Executable to run on boot that removes old tzdata if needed
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
Diffstat (limited to 'tzdatacheck/Android.mk')
-rw-r--r-- | tzdatacheck/Android.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tzdatacheck/Android.mk b/tzdatacheck/Android.mk new file mode 100644 index 0000000..0e25f7d --- /dev/null +++ b/tzdatacheck/Android.mk @@ -0,0 +1,21 @@ +LOCAL_PATH:= $(call my-dir) + +include $(CLEAR_VARS) + +# ======================================================== +# Executable +# ======================================================== +include $(CLEAR_VARS) +LOCAL_SRC_FILES:= tzdatacheck.cpp +LOCAL_MODULE := tzdatacheck +LOCAL_SHARED_LIBRARIES := libbase libcutils liblog +LOCAL_CFLAGS := -Werror +include $(BUILD_EXECUTABLE) + +include $(CLEAR_VARS) +LOCAL_SRC_FILES:= tzdatacheck.cpp +LOCAL_MODULE := tzdatacheck +LOCAL_SHARED_LIBRARIES := libbase libcutils liblog +LOCAL_CFLAGS := -Werror +include $(BUILD_HOST_EXECUTABLE) + |