aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Jerpelea <alin.jerpelea@sony.com>2020-02-25 12:15:10 +0100
committerGitHub <noreply@github.com>2020-02-25 12:15:10 +0100
commitbc72d10dd293bd984fe1004428a3868588569f72 (patch)
tree31c28ad1b068792722d78f4919fbd0cbd2ede25b
parent9377c4aa8a84a0bb8be657785b2b7fe9423c957d (diff)
parent804aa87405e39e98b06e2cb463466a8ef35fb4a4 (diff)
Merge pull request #22 from ArianK16a/master
Build timekeep.rc for all targets and set owner of RTC node
-rw-r--r--Android.mk2
-rw-r--r--vendor/etc/init/timekeep.rc3
2 files changed, 4 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index e2994e4..9af9d74 100644
--- a/Android.mk
+++ b/Android.mk
@@ -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