From 3634a47c7b1a29fe00a4843fe0adefb74209164f Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Fri, 30 Jun 2017 09:49:45 -0700 Subject: [PATCH] msm8937-common: time_daemon: use /persist to store offset to RTC Also cleanup sepolicy files that was using /data/vendor as they are not needed and /data is not ready by the time we start time_daemon Bug: 62184939 Test: walleye boot with correct time in airplane mode --- product/timeservices.mk | 2 ++ rootdir/init.qcom.rc | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 product/timeservices.mk diff --git a/product/timeservices.mk b/product/timeservices.mk new file mode 100644 index 0000000..9fbe9d0 --- /dev/null +++ b/product/timeservices.mk @@ -0,0 +1,2 @@ +PRODUCT_PROPERTY_OVERRIDES += \ + persist.delta_time.enable=true diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index ba5cad0..a60d6ca 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -221,9 +221,6 @@ on post-fs-data mkdir /data/shared 0755 chown system system /data/shared - # Create /data/time folder for time-services - mkdir /data/time/ 0700 system system - mkdir /data/vendor/audio/ 0770 media audio # Create a folder for audio delta files