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:
LuK1337 2021-01-04 22:12:23 +01:00
parent 717bc37c5d
commit 1653e33e11
12 changed files with 26 additions and 26 deletions

View file

@ -154,7 +154,7 @@ PRODUCT_PACKAGES += \
# Fingerprint
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1-service.oneplus_kona \
lineage.biometrics.fingerprint.inscreen@1.0-service.oneplus_kona \
vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.oneplus_kona \
vendor.oneplus.fingerprint.extension@1.0 \
vendor.oneplus.hardware.display@1.0
@ -169,7 +169,7 @@ PRODUCT_COPY_FILES += \
# LiveDisplay
PRODUCT_PACKAGES += \
lineage.livedisplay@2.0-service.oneplus_kona
vendor.lineage.livedisplay@2.0-service.oneplus_kona
# Media
PRODUCT_COPY_FILES += \
@ -207,7 +207,7 @@ PRODUCT_PACKAGES += \
# PowerShare
PRODUCT_PACKAGES += \
lineage.powershare@1.0-service.oneplus_kona
vendor.lineage.powershare@1.0-service.oneplus_kona
# Ramdisk
PRODUCT_COPY_FILES += \
@ -240,7 +240,7 @@ PRODUCT_COPY_FILES += \
# Touch
PRODUCT_PACKAGES += \
lineage.touch@1.0-service.oneplus_kona
vendor.lineage.touch@1.0-service.oneplus_kona
# tri-state-key
PRODUCT_PACKAGES += \

View file

@ -16,8 +16,8 @@
oneplus_kona_fod_hal_binary {
relative_install_path: "hw",
defaults: ["hidl_defaults"],
name: "lineage.biometrics.fingerprint.inscreen@1.0-service.oneplus_kona",
init_rc: ["lineage.biometrics.fingerprint.inscreen@1.0-service.oneplus_kona.rc"],
name: "vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.oneplus_kona",
init_rc: ["vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.oneplus_kona.rc"],
srcs: ["service.cpp", "FingerprintInscreen.cpp"],
shared_libs: [
"libbase",
@ -29,6 +29,7 @@ oneplus_kona_fod_hal_binary {
"//device/oneplus/common:vendor.oneplus.fingerprint.extension@1.0",
"//device/oneplus/common:vendor.oneplus.hardware.display@1.0",
],
proprietary: true,
}
cc_library_static {

View file

@ -2,7 +2,7 @@ on init
chown system system /sys/class/drm/card0-DSI-1/op_friginer_print_hbm
chmod 0660 /sys/class/drm/card0-DSI-1/op_friginer_print_hbm
service fingerprint-inscreen-1-0 /system/bin/hw/lineage.biometrics.fingerprint.inscreen@1.0-service.oneplus_kona
service vendor.fingerprint-inscreen-1-0 /vendor/bin/hw/vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.oneplus_kona
interface vendor.lineage.biometrics.fingerprint.inscreen@1.0::IFingerprintInscreen default
class hal
user system

View file

@ -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,
}

View file

@ -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"}},

View file

@ -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.";

View file

@ -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

View file

@ -16,8 +16,8 @@
cc_binary {
relative_install_path: "hw",
defaults: ["hidl_defaults"],
name: "lineage.powershare@1.0-service.oneplus_kona",
init_rc: ["lineage.powershare@1.0-service.oneplus_kona.rc"],
name: "vendor.lineage.powershare@1.0-service.oneplus_kona",
init_rc: ["vendor.lineage.powershare@1.0-service.oneplus_kona.rc"],
srcs: ["service.cpp", "PowerShare.cpp"],
shared_libs: [
"libbase",
@ -27,4 +27,5 @@ cc_binary {
"libutils",
"vendor.lineage.powershare@1.0",
],
proprietary: true,
}

View file

@ -1,4 +0,0 @@
service powershare-hal-1-0 /system/bin/hw/lineage.powershare@1.0-service.oneplus_kona
class hal
user system
group system

View file

@ -0,0 +1,4 @@
service vendor.powershare-hal-1-0 /vendor/bin/hw/vendor.lineage.powershare@1.0-service.oneplus_kona
class hal
user system
group system

View file

@ -14,8 +14,8 @@
// limitations under the License.
cc_binary {
name: "lineage.touch@1.0-service.oneplus_kona",
init_rc: ["lineage.touch@1.0-service.oneplus_kona.rc"],
name: "vendor.lineage.touch@1.0-service.oneplus_kona",
init_rc: ["vendor.lineage.touch@1.0-service.oneplus_kona.rc"],
defaults: ["hidl_defaults"],
relative_install_path: "hw",
srcs: [
@ -29,4 +29,5 @@ cc_binary {
"libutils",
"vendor.lineage.touch@1.0",
],
proprietary: true,
}

View file

@ -28,7 +28,7 @@ on boot
chown system system /proc/touchpanel/up_swipe_enable
chown system system /proc/touchpanel/single_tap_enable
service touch-hal-1-0 /system/bin/hw/lineage.touch@1.0-service.oneplus_kona
service vendor.touch-hal-1-0 /vendor/bin/hw/vendor.lineage.touch@1.0-service.oneplus_kona
class hal
user system
group system