diff options
| author | Alin Jerpelea <alin.jerpelea@sony.com> | 2020-02-25 12:15:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-25 12:15:10 +0100 |
| commit | bc72d10dd293bd984fe1004428a3868588569f72 (patch) | |
| tree | 31c28ad1b068792722d78f4919fbd0cbd2ede25b | |
| parent | 9377c4aa8a84a0bb8be657785b2b7fe9423c957d (diff) | |
| parent | 804aa87405e39e98b06e2cb463466a8ef35fb4a4 (diff) | |
Merge pull request #22 from ArianK16a/master
Build timekeep.rc for all targets and set owner of RTC node
| -rw-r--r-- | Android.mk | 2 | ||||
| -rw-r--r-- | vendor/etc/init/timekeep.rc | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -8,7 +8,7 @@ LOCAL_MODULE_TAGS := optional LOCAL_CFLAGS := -DANDROID_SDK_VERSION=$(PLATFORM_SDK_VERSION) ifneq ($(call math_gt_or_eq, $(PLATFORM_SDK_VERSION), 25),) LOCAL_MODULE_OWNER := sony -LOCAL_INIT_RC_64 := vendor/etc/init/timekeep.rc +LOCAL_INIT_RC := vendor/etc/init/timekeep.rc ifneq ($(call math_gt_or_eq, $(PLATFORM_SDK_VERSION), 28),) LOCAL_PROPRIETARY_MODULE := true endif diff --git a/vendor/etc/init/timekeep.rc b/vendor/etc/init/timekeep.rc index f0d3100..2a44bac 100644 --- a/vendor/etc/init/timekeep.rc +++ b/vendor/etc/init/timekeep.rc @@ -5,6 +5,9 @@ on boot chmod 0770 /data/time/ats_2 chmod 0770 /data/vendor/time/ats_2 + # Set system as owner of RTC node + chown system system /sys/class/rtc/rtc0/since_epoch + # Time service service timekeep /vendor/bin/timekeep restore class late_start |
