raphael: Import camera motor service

Change-Id: I7c3b1a00da377d020c3be0b6b022e0cbbfab18a9
This commit is contained in:
Sebastiano Barezzi
2022-06-23 16:43:52 +02:00
parent 3d245ae284
commit 5524dc0d04
4 changed files with 37 additions and 0 deletions

View File

@@ -26,6 +26,13 @@ PRODUCT_PACKAGES += \
libMegviiFacepp-0.5.2 \
libmegface
# Camera motor
PRODUCT_PACKAGES += \
vendor.xiaomi.hardware.motor@1.0-service.xml
PRODUCT_PACKAGES += \
vendor.xiaomi.hardware.motor@1.0.vendor
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay

13
motor/Android.bp Normal file
View File

@@ -0,0 +1,13 @@
//
// Copyright (C) 2022 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
prebuilt_etc_xml {
name: "vendor.xiaomi.hardware.motor@1.0-service.xml",
src: "vendor.xiaomi.hardware.motor@1.0-service.xml",
filename_from_src: true,
sub_dir: "vintf/manifest",
soc_specific: true,
}

View File

@@ -0,0 +1,7 @@
<manifest version="1.0" type="device">
<hal format="hidl">
<name>vendor.xiaomi.hardware.motor</name>
<transport>hwbinder</transport>
<fqname>@1.0::IMotor/default</fqname>
</hal>
</manifest>

View File

@@ -235,6 +235,16 @@ vendor/etc/camera/watermark_font_2300_3199.dat
# Camera firmware
vendor/firmware/CAMERA_ICP.elf
# Camera motor
vendor/bin/hw/vendor.xiaomi.hardware.motor@1.0-service
vendor/etc/init/init.raphael.rc
vendor/etc/step_motor/mi_camera_config.xml
vendor/lib64/hw/vendor.xiaomi.hardware.motor@1.0-impl.so
vendor/lib64/libmivendor_module_calibration.so
vendor/lib64/libmivendor_module_hall.so
vendor/lib64/libmivendor_module_motor.so
vendor/lib64/mi.motor.daemon.so
# Charger
vendor/bin/batterysecret
vendor/etc/init/init.batterysecret.rc