hidl: LiveDisplay: DisplayModes: support system builds

Change-Id: I795714efeac1770671ff690fac90cde147b26394
tirimbino
synt4x93 3 years ago
parent 538dcfca26
commit 405163b11c
  1. 4
      hidl/livedisplay/DisplayModes.cpp

@ -28,7 +28,11 @@ 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";
#ifdef LIVES_IN_SYSTEM
static constexpr const char* kDefaultPath = "/data/misc/display/.displaymodedefault";
#else
static constexpr const char* kDefaultPath = "/data/vendor/display/.displaymodedefault"; static constexpr const char* kDefaultPath = "/data/vendor/display/.displaymodedefault";
#endif
const std::map<int32_t, std::string> DisplayModes::kModeMap = { const std::map<int32_t, std::string> DisplayModes::kModeMap = {
// clang-format off // clang-format off

Loading…
Cancel
Save