hidl: livedisplay: Move .displaymodedefault to /data/vendor/display
authorLuK1337 <priv.luk@gmail.com>
Fri, 24 May 2019 21:30:00 +0000 (23:30 +0200)
committerJan Altensen <info@stricted.net>
Sat, 25 May 2019 19:14:52 +0000 (21:14 +0200)
* By default hal_lineage_livedisplay_default does not
  have permissions to write to /data/misc.

Change-Id: I5599a5e6602ea326322328aeda1c6eb0411a5568

lineagehw/hidl/livedisplay/DisplayModes.cpp
lineagehw/hidl/livedisplay/lineage.livedisplay@2.0-service.samsung-exynos.rc
lineagehw/hidl/livedisplay/lineage.livedisplay@2.0-service.samsung-qcom.rc
lineagehw/hidl/livedisplay/vendor.lineage.livedisplay@2.0-service.samsung-exynos.rc
lineagehw/hidl/livedisplay/vendor.lineage.livedisplay@2.0-service.samsung-qcom.rc

index 0202be647aae6d12cb79707294725de75aa963ec..113905ee15b90a0c954b19c076e5a6622a443b12 100644 (file)
@@ -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<int32_t, std::string> DisplayModes::kModeMap = {
     {0, "Dynamic"},
index cf26d1ca60439666be2056cf47efb9d4e74ad75d..3fd15b5f46acaa892903495f3608cddbfd6ac698 100644 (file)
@@ -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
index bd3ca6ce3201bc1914426c653119bf15623fe70b..48ebd94c23c4b47238acd1028d55a59900815d50 100644 (file)
@@ -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
index 994fda0854bacef10782ba20e0193394cc07c262..2faab1b6dce6c5221237a81341a072bd9b150822 100644 (file)
@@ -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
index f6624061380c323409d3e4fdb6268c74ff5af280..8698601894c3b54cc95ee0c9905175495a2d3308 100644 (file)
@@ -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