sm8250-common: Relocate our custom HALs to vendor
* Adjust them for usage in /vendor while at it. Change-Id: I84463a912d98e8af14ca31ffd8ac95db1aac916e
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
// limitations under the License.
|
||||
|
||||
cc_binary {
|
||||
name: "lineage.livedisplay@2.0-service.oneplus_kona",
|
||||
init_rc: ["lineage.livedisplay@2.0-service.oneplus_kona.rc"],
|
||||
name: "vendor.lineage.livedisplay@2.0-service.oneplus_kona",
|
||||
init_rc: ["vendor.lineage.livedisplay@2.0-service.oneplus_kona.rc"],
|
||||
defaults: ["hidl_defaults"],
|
||||
relative_install_path: "hw",
|
||||
srcs: [
|
||||
@@ -35,5 +35,5 @@ cc_binary {
|
||||
header_libs: [
|
||||
"vendor.lineage.livedisplay@2.0-sdm-headers",
|
||||
],
|
||||
cflags: ["-DLIVES_IN_SYSTEM"],
|
||||
proprietary: true,
|
||||
}
|
||||
|
||||
@@ -29,9 +29,9 @@ namespace livedisplay {
|
||||
namespace V2_0 {
|
||||
namespace implementation {
|
||||
|
||||
static constexpr const char* kDisplayModeProp = "sys.display.mode";
|
||||
static constexpr const char* kDisplayModeProp = "vendor.display.mode";
|
||||
static const std::string kModeBasePath = "/sys/class/drm/card0-DSI-1/";
|
||||
static const std::string kDefaultPath = "/data/misc/display/default_display_mode";
|
||||
static const std::string kDefaultPath = "/data/vendor/display/default_display_mode";
|
||||
|
||||
const std::map<int32_t, DisplayModes::ModeInfo> DisplayModes::kModeMap = {
|
||||
{0, {"Standard", "default"}},
|
||||
|
||||
@@ -41,7 +41,7 @@ using ::vendor::lineage::livedisplay::V2_0::sdm::SDMController;
|
||||
int main() {
|
||||
status_t status = OK;
|
||||
|
||||
android::ProcessState::initWithDriver("/dev/binder");
|
||||
android::ProcessState::initWithDriver("/dev/vndbinder");
|
||||
|
||||
LOG(INFO) << "LiveDisplay HAL service is starting.";
|
||||
|
||||
|
||||
@@ -14,10 +14,7 @@ on init
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_srgb_color_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_wide_color_mode
|
||||
|
||||
on post-fs-data
|
||||
mkdir /data/misc/display 0770 system graphics
|
||||
|
||||
service livedisplay-hal-2-0 /system/bin/hw/lineage.livedisplay@2.0-service.oneplus_kona
|
||||
service vendor.livedisplay-hal-2-0 /vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.oneplus_kona
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
Reference in New Issue
Block a user