From f419e0c1e9313adc718da7f08e6ddafff0ef2387 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Fri, 24 May 2019 23:30:00 +0200 Subject: [PATCH] hidl: livedisplay: Move .displaymodedefault to /data/vendor/display * By default hal_lineage_livedisplay_default does not have permissions to write to /data/misc. Change-Id: I5599a5e6602ea326322328aeda1c6eb0411a5568 --- lineagehw/hidl/livedisplay/DisplayModes.cpp | 2 +- .../lineage.livedisplay@2.0-service.samsung-exynos.rc | 3 +++ .../lineage.livedisplay@2.0-service.samsung-qcom.rc | 3 +++ .../vendor.lineage.livedisplay@2.0-service.samsung-exynos.rc | 3 +++ .../vendor.lineage.livedisplay@2.0-service.samsung-qcom.rc | 3 +++ 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/lineagehw/hidl/livedisplay/DisplayModes.cpp b/lineagehw/hidl/livedisplay/DisplayModes.cpp index 0202be64..113905ee 100644 --- a/lineagehw/hidl/livedisplay/DisplayModes.cpp +++ b/lineagehw/hidl/livedisplay/DisplayModes.cpp @@ -29,7 +29,7 @@ namespace samsung { static constexpr const char* kModePath = "/sys/class/mdnie/mdnie/mode"; static constexpr const char* kModeMaxPath = "/sys/class/mdnie/mdnie/mode_max"; -static constexpr const char* kDefaultPath = "/data/misc/.displaymodedefault"; +static constexpr const char* kDefaultPath = "/data/vendor/display/.displaymodedefault"; const std::map DisplayModes::kModeMap = { {0, "Dynamic"}, diff --git a/lineagehw/hidl/livedisplay/lineage.livedisplay@2.0-service.samsung-exynos.rc b/lineagehw/hidl/livedisplay/lineage.livedisplay@2.0-service.samsung-exynos.rc index cf26d1ca..3fd15b5f 100644 --- a/lineagehw/hidl/livedisplay/lineage.livedisplay@2.0-service.samsung-exynos.rc +++ b/lineagehw/hidl/livedisplay/lineage.livedisplay@2.0-service.samsung-exynos.rc @@ -1,3 +1,6 @@ +on post-fs-data + mkdir /data/vendor/display 0770 system system + service livedisplay-hal-2-0-samsung-exynos /system/bin/hw/lineage.livedisplay@2.0-service.samsung-exynos class hal user system diff --git a/lineagehw/hidl/livedisplay/lineage.livedisplay@2.0-service.samsung-qcom.rc b/lineagehw/hidl/livedisplay/lineage.livedisplay@2.0-service.samsung-qcom.rc index bd3ca6ce..48ebd94c 100644 --- a/lineagehw/hidl/livedisplay/lineage.livedisplay@2.0-service.samsung-qcom.rc +++ b/lineagehw/hidl/livedisplay/lineage.livedisplay@2.0-service.samsung-qcom.rc @@ -1,3 +1,6 @@ +on post-fs-data + mkdir /data/vendor/display 0770 system system + service livedisplay-hal-2-0-samsung-qcom /system/bin/hw/lineage.livedisplay@2.0-service.samsung-qcom class late_start user system diff --git a/lineagehw/hidl/livedisplay/vendor.lineage.livedisplay@2.0-service.samsung-exynos.rc b/lineagehw/hidl/livedisplay/vendor.lineage.livedisplay@2.0-service.samsung-exynos.rc index 994fda08..2faab1b6 100644 --- a/lineagehw/hidl/livedisplay/vendor.lineage.livedisplay@2.0-service.samsung-exynos.rc +++ b/lineagehw/hidl/livedisplay/vendor.lineage.livedisplay@2.0-service.samsung-exynos.rc @@ -1,3 +1,6 @@ +on post-fs-data + mkdir /data/vendor/display 0770 system system + service vendor.livedisplay-hal-2-0-samsung-exynos /vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.samsung-exynos class hal user system diff --git a/lineagehw/hidl/livedisplay/vendor.lineage.livedisplay@2.0-service.samsung-qcom.rc b/lineagehw/hidl/livedisplay/vendor.lineage.livedisplay@2.0-service.samsung-qcom.rc index f6624061..86986018 100644 --- a/lineagehw/hidl/livedisplay/vendor.lineage.livedisplay@2.0-service.samsung-qcom.rc +++ b/lineagehw/hidl/livedisplay/vendor.lineage.livedisplay@2.0-service.samsung-qcom.rc @@ -1,3 +1,6 @@ +on post-fs-data + mkdir /data/vendor/display 0770 system system + service vendor.livedisplay-hal-2-0-samsung-qcom /vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.samsung-qcom class late_start user system