From: LuK1337 Date: Fri, 24 May 2019 21:30:00 +0000 (+0200) Subject: hidl: livedisplay: Move .displaymodedefault to /data/vendor/display X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f419e0c1e9313adc718da7f08e6ddafff0ef2387;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git 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 --- diff --git a/lineagehw/hidl/livedisplay/DisplayModes.cpp b/lineagehw/hidl/livedisplay/DisplayModes.cpp index 0202be6..113905e 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 cf26d1c..3fd15b5 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 bd3ca6c..48ebd94 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 994fda0..2faab1b 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 f662406..8698601 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