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
tirimbino
LuK1337 6 years ago committed by Jan Altensen
parent 4e47a0bc91
commit f419e0c1e9
No known key found for this signature in database
GPG Key ID: 3E45BB95F7AD33DA
  1. 2
      lineagehw/hidl/livedisplay/DisplayModes.cpp
  2. 3
      lineagehw/hidl/livedisplay/lineage.livedisplay@2.0-service.samsung-exynos.rc
  3. 3
      lineagehw/hidl/livedisplay/lineage.livedisplay@2.0-service.samsung-qcom.rc
  4. 3
      lineagehw/hidl/livedisplay/vendor.lineage.livedisplay@2.0-service.samsung-exynos.rc
  5. 3
      lineagehw/hidl/livedisplay/vendor.lineage.livedisplay@2.0-service.samsung-qcom.rc

@ -29,7 +29,7 @@ namespace samsung {
static constexpr const char* kModePath = "/sys/class/mdnie/mdnie/mode"; 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* 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 = { const std::map<int32_t, std::string> DisplayModes::kModeMap = {
{0, "Dynamic"}, {0, "Dynamic"},

@ -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 service livedisplay-hal-2-0-samsung-exynos /system/bin/hw/lineage.livedisplay@2.0-service.samsung-exynos
class hal class hal
user system user system

@ -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 service livedisplay-hal-2-0-samsung-qcom /system/bin/hw/lineage.livedisplay@2.0-service.samsung-qcom
class late_start class late_start
user system user system

@ -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 service vendor.livedisplay-hal-2-0-samsung-exynos /vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.samsung-exynos
class hal class hal
user system user system

@ -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 service vendor.livedisplay-hal-2-0-samsung-qcom /vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.samsung-qcom
class late_start class late_start
user system user system

Loading…
Cancel
Save