borneo: Rebrand to cebu

Change-Id: If060d0c02d33741d28e10f64183668cc6092ca8c
This commit is contained in:
MD Raza
2024-05-13 23:53:58 +05:30
committed by Michael Bestas
parent 4de7023865
commit 3eb26daa81
26 changed files with 264 additions and 150 deletions

View File

@@ -5,6 +5,6 @@
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_DEVICE), borneo)
ifeq ($(TARGET_DEVICE), cebu)
include $(call all-makefiles-under, $(LOCAL_PATH))
endif

View File

@@ -4,4 +4,4 @@
#
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_borneo.mk
$(LOCAL_DIR)/lineage_cebu.mk

View File

@@ -6,37 +6,40 @@
# Inherit from sm6225-common
include device/motorola/sm6225-common/BoardConfigCommon.mk
DEVICE_PATH := device/motorola/borneo
DEVICE_PATH := device/motorola/cebu
# A/B
AB_OTA_PARTITIONS += \
recovery
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := borneo
TARGET_BOOTLOADER_BOARD_NAME := cebu
# Display
TARGET_SCREEN_DENSITY := 280
# HIDL
ODM_MANIFEST_SKUS += b f
ODM_MANIFEST_SKUS += b d dn fdn n
ODM_MANIFEST_B_FILES := $(DEVICE_PATH)/sku/manifest_b.xml
ODM_MANIFEST_F_FILES := $(DEVICE_PATH)/sku/manifest_f.xml
ODM_MANIFEST_D_FILES := $(DEVICE_PATH)/sku/manifest_d.xml
ODM_MANIFEST_DN_FILES := $(DEVICE_PATH)/sku/manifest_dn.xml
ODM_MANIFEST_FDN_FILES := $(DEVICE_PATH)/sku/manifest_fdn.xml
ODM_MANIFEST_N_FILES := $(DEVICE_PATH)/sku/manifest_n.xml
# Kernel
BOARD_BOOT_HEADER_VERSION := 2
TARGET_KERNEL_CONFIG += vendor/ext_config/borneo-default.config
TARGET_KERNEL_CONFIG += vendor/ext_config/cebu-default.config
# Kernel Modules - Recovery
BOARD_RECOVERY_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load.recovery))
RECOVERY_KERNEL_MODULES := $(BOARD_RECOVERY_KERNEL_MODULES_LOAD)
# Partitions
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 102400000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 48937967000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864
BOARD_USERDATAIMAGE_PARTITION_SIZE := 50616843776
BOARD_SUPER_PARTITION_SIZE := 10027008000
BOARD_MOTO_DYNAMIC_PARTITIONS_SIZE := 5009309696 # (BOARD_SUPER_PARTITION_SIZE / 2) - 4MB
BOARD_SUPER_PARTITION_SIZE := 9763291136
BOARD_MOTO_DYNAMIC_PARTITIONS_SIZE := 4877451264 # (BOARD_SUPER_PARTITION_SIZE / 2) - 4MB
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
@@ -47,11 +50,11 @@ TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 70
# Security patch level
BOOT_SECURITY_PATCH := 2023-02-01
VENDOR_SECURITY_PATCH := 2023-02-01
BOOT_SECURITY_PATCH := 2022-11-01
VENDOR_SECURITY_PATCH := 2022-11-01
# Verified Boot
BOARD_AVB_ROLLBACK_INDEX := 20
BOARD_AVB_ROLLBACK_INDEX := 13
# Inherit from the proprietary version
include vendor/motorola/borneo/BoardConfigVendor.mk
include vendor/motorola/cebu/BoardConfigVendor.mk

View File

@@ -1,4 +1,4 @@
Device tree configuration for Motorola Moto G Power (2021)
Device tree configuration for Motorola Moto G9 Power
```

View File

@@ -21,10 +21,32 @@ PRODUCT_COPY_FILES += \
TARGET_SCREEN_HEIGHT := 1600
TARGET_SCREEN_WIDTH := 720
# NFC
PRODUCT_PACKAGES += \
android.hardware.nfc@1.2-service
# Overlay
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml
DEVICE_NFC_SKUS := b d
PRODUCT_COPY_FILES += \
$(foreach DEVICE_SKU, $(DEVICE_NFC_SKUS), \
$(LOCAL_PATH)/permissions/unavail.android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_$(DEVICE_SKU)/unavail.android.hardware.nfc.hce.xml \
$(LOCAL_PATH)/permissions/unavail.android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_$(DEVICE_SKU)/unavail.android.hardware.nfc.hcef.xml \
$(LOCAL_PATH)/permissions/unavail.android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_$(DEVICE_SKU)/unavail.android.hardware.nfc.uicc.xml \
$(LOCAL_PATH)/permissions/unavail.android.hardware.nfc.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_$(DEVICE_SKU)/unavail.android.hardware.nfc.xml \
$(LOCAL_PATH)/permissions/unavail.com.nxp.mifare.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_$(DEVICE_SKU)/com.nxp.mifare.xml)
# Rootdir
PRODUCT_PACKAGES += \
fstab.qcom \
@@ -42,4 +64,4 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/fstab.qcom_ramdisk:$(TARGET_COPY_OUT_RAMDISK)/fstab.qcom
# Get non-open-source specific aspects
$(call inherit-product, vendor/motorola/borneo/borneo-vendor.mk)
$(call inherit-product, vendor/motorola/cebu/cebu-vendor.mk)

View File

@@ -14,7 +14,7 @@ fi
set -e
export DEVICE=borneo
export DEVICE=cebu
export DEVICE_COMMON=sm6225-common
export VENDOR=motorola

View File

@@ -8,21 +8,21 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit from device
$(call inherit-product, device/motorola/borneo/device.mk)
$(call inherit-product, device/motorola/cebu/device.mk)
# Inherit some common LineageOS stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
# Device identifier. This must come after all inclusions.
PRODUCT_NAME := lineage_borneo
PRODUCT_DEVICE := borneo
PRODUCT_NAME := lineage_cebu
PRODUCT_DEVICE := cebu
PRODUCT_BRAND := motorola
PRODUCT_MODEL := moto g power (2021)
PRODUCT_MODEL := moto g(9) power
PRODUCT_MANUFACTURER := motorola
PRODUCT_GMS_CLIENTID_BASE := android-motorola
BUILD_FINGERPRINT := "motorola/borneo_retail/borneo:11/RZBS31.Q2-143-27-25/418ef:user/release-keys"
BUILD_FINGERPRINT := "motorola/cebu_retail/cebu:11/RZCS31.Q2-57-12-14/3d8395:user/release-keys"
PRODUCT_BUILD_PROP_OVERRIDES += \
TARGET_PRODUCT=borneo_retail \
PRIVATE_BUILD_DESC="borneo_retail-user 11 RZBS31.Q2-143-27-25 418ef release-keys"
TARGET_PRODUCT=cebu_retail \
PRIVATE_BUILD_DESC="cebu_retail-user 11 RZCS31.Q2-57-12-14 3d8395 release-keys"

View File

@@ -1,5 +1,4 @@
sensors_class.ko
ilitek_0flash_mmi.ko
nova_0flash_mmi.ko
focaltech_0flash_mmi.ko
chipone_tddi_mmi.ko
exfat.ko

View File

@@ -204,23 +204,6 @@
-->
<string translatable="false" name="config_mainBuiltInDisplayCutout">M 92,0 L 0,0 L 0,90 L 92,90 Z @left</string>
<!-- Indicates whether device has a power button fingerprint sensor. -->
<bool name="config_is_powerbutton_fps" translatable="false">true</bool>
<!-- An array of arrays of side fingerprint sensor properties relative to each display.
Note: this value is temporary and is expected to be queried directly
from the HAL in the future. -->
<array name="config_sfps_sensor_props" translatable="false">
<item>@array/config_sfps_sensor_props_0</item>
</array>
<array name="config_sfps_sensor_props_0" translatable="false">
<item></item> <!--item>displayId</item-->
<item>720</item> <!--item>sensorLocationX</item-->
<item>570</item> <!--item>sensorLocationY</item-->
<item>200</item> <!--item>sensorRadius</item-->
</array>
<!-- Vibrator pattern for feedback about a long screen/key press -->
<integer-array name="config_longPressVibePattern">
<item>0</item>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<unavailable-feature name="android.hardware.nfc.hce"/>
</permissions>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<unavailable-feature name="android.hardware.nfc.hcef"/>
</permissions>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<unavailable-feature name="android.hardware.nfc.uicc"/>
</permissions>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<unavailable-feature name="android.hardware.nfc"/>
<unavailable-feature name="android.hardware.nfc.any"/>
</permissions>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<unavailable-feature name="com.nxp.mifare" />
</permissions>

View File

@@ -1,4 +1,4 @@
# All unpinned blobs below are extracted from borneo_retail RZBS31.Q2-143-27-25
# All unpinned blobs below are extracted from cebu_retail RZCS31.Q2-57-12-14
# ACDB
vendor/etc/acdbdata/Bluetooth_cal.acdb
@@ -19,23 +19,28 @@ vendor/firmware/aw882xx_spk_reg.bin
# Camera
vendor/lib/libcamxexternalformatutils.so
vendor/lib64/camera/com.mot.eeprom.mot_dw9767_s5kgm1st_eeprom.so
vendor/lib64/camera/com.mot.eeprom.mot_gt24p64b_ov02b10_eeprom.so
vendor/lib64/camera/com.mot.eeprom.mot_gt24p64b_ov16a1q_eeprom.so
vendor/lib64/camera/com.mot.eeprom.mot_ov02b1b_otp.so
vendor/lib64/camera/com.mot.eeprom.mot_ov64b_otp.so
vendor/lib64/camera/com.mot.eeprom.mot_s5k4h7_otp_eeprom.so
vendor/lib64/camera/com.qti.sensor.mot_ov02b10.so
vendor/lib64/camera/com.qti.sensor.mot_ov02b1b.so
vendor/lib64/camera/com.qti.sensor.mot_ov16a1q.so
vendor/lib64/camera/com.qti.sensor.mot_ov64b.so
vendor/lib64/camera/com.qti.sensor.mot_s5k4h7.so
vendor/lib64/camera/com.qti.sensor.mot_s5kgm1st.so
vendor/lib64/camera/com.qti.sensormodule.mot_borneo_ov02b10_ofilm.bin
vendor/lib64/camera/com.qti.sensormodule.mot_borneo_ov02b1b_ofilm.bin
vendor/lib64/camera/com.qti.sensormodule.mot_borneo_s5k4h7_ofilm.bin
vendor/lib64/camera/com.qti.sensormodule.mot_borneo_s5kgm1st_ofilm.bin
vendor/lib64/camera/com.qti.sensormodule.mot_cebu_ov02b10_ofilm.bin
vendor/lib64/camera/com.qti.sensormodule.mot_cebu_ov02b1b_holitech.bin
vendor/lib64/camera/com.qti.sensormodule.mot_cebu_ov16a1q_qtech.bin
vendor/lib64/camera/com.qti.sensormodule.mot_cebu_ov64b_ofilm.bin
vendor/lib64/camera/com.qti.sensormodule.mot_cebu_ov64b_ofilm_evt.bin
vendor/lib64/camera/com.qti.sensormodule.mot_cebu_s5k4h7_ofilm.bin
vendor/lib64/camera/com.qti.tuned.default.bin
vendor/lib64/camera/com.qti.tuned.mot_borneo_ov02b10.bin
vendor/lib64/camera/com.qti.tuned.mot_borneo_ov02b1b.bin
vendor/lib64/camera/com.qti.tuned.mot_borneo_s5k4h7.bin
vendor/lib64/camera/com.qti.tuned.mot_borneo_s5kgm1st.bin
vendor/lib64/camera/com.qti.tuned.mot_cebu_ov02b10.bin
vendor/lib64/camera/com.qti.tuned.mot_cebu_ov02b1b.bin
vendor/lib64/camera/com.qti.tuned.mot_cebu_ov16a1q.bin
vendor/lib64/camera/com.qti.tuned.mot_cebu_ov64b.bin
vendor/lib64/camera/com.qti.tuned.mot_cebu_s5k4h7.bin
vendor/lib64/camera/components/com.qti.camx.chiiqutils.so
vendor/lib64/camera/components/com.qti.eisv2.so
vendor/lib64/camera/components/com.qti.eisv3.so
@@ -79,10 +84,6 @@ vendor/lib64/camera/components/com.qtistatic.stats.awb.so
vendor/lib64/camera/components/com.qtistatic.stats.pdlib.so
vendor/lib64/camera/components/com.vidhance.node.processing.so
vendor/lib64/camera/components/com.vidhance.stats.aec_dmbr.so
vendor/lib64/camera/fdconfigpreview.bin
vendor/lib64/camera/fdconfigpreviewlite.bin
vendor/lib64/camera/fdconfigvideo.bin
vendor/lib64/camera/fdconfigvideolite.bin
vendor/lib64/com.qti.chiusecaseselector.so
vendor/lib64/com.qti.feature2.anchorsync.so
vendor/lib64/com.qti.feature2.demux.so
@@ -121,7 +122,6 @@ vendor/lib64/libfcell.so
vendor/lib64/libipebpsstriping.so
vendor/lib64/libjpege.so
vendor/lib64/liblmutils-ns.so
vendor/lib64/liblowlight_ai_portrait.arcsoft.so
vendor/lib64/libmctfengine_stub.so
vendor/lib64/libmmcamera_cac3.so
vendor/lib64/libmmcamera_mfnr.so
@@ -140,24 +140,21 @@ vendor/etc/camera/vidhance_calibration
# CapSense firmware
vendor/firmware/AbovCapSense.BIN
vendor/firmware/AbovCapSense_4.BIN
# Display (Calibration Data)
vendor/etc/qdcm_calib_data_mipi_mot_vid_djn_720p_655.xml
vendor/etc/qdcm_calib_data_mipi_mot_vid_djnboe_720p_655.xml
vendor/etc/qdcm_calib_data_mipi_mot_vid_tm_720p_655.xml
vendor/etc/qdcm_calib_data_mipi_mot_vid_dsbj_720p_678.xml
vendor/etc/qdcm_calib_data_mipi_mot_vid_tm_720p_678.xml
vendor/etc/qdcm_calib_data_td4330_v2_cmd_mode_dsi_truly_panel.xml
vendor/etc/qdcm_calib_data_td4330_v2_video_mode_dsi_truly_panel.xml
# Fingerprint
vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service-ets
vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service-chipone
vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service-fpc
vendor/bin/hw/fpc_ident
vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service-ets2.rc
vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service-chipone2.rc
vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service-fpc2.rc
vendor/etc/init/init.ets.rc
vendor/lib64/com.fingerprints.extension@1.0.so
vendor/lib64/libets_fp_et5.so
vendor/lib64/libets_teeclient.so
vendor/lib64/vendor.egistec.hardware.fingerprint@2.0.so
vendor/lib64/hw/chipone.fingerprint.default.so
# Graphics firmware
vendor/firmware/a630_sqe.fw
@@ -165,61 +162,87 @@ vendor/firmware/a650_gmu.bin
vendor/firmware/a650_sqe.fw
vendor/firmware/a702_sqe.fw
# NFC
vendor/etc/init/android.hardware.nfc@1.2-service.rc
vendor/etc/libnfc-nci.conf
vendor/etc/libnfc-nxp.conf
vendor/lib64/libpn557_fw.so
# Sensor-configs
vendor/etc/sensors/config/bengal_default_sensors.json
vendor/etc/sensors/config/bengal_dynamic_sensors.json
vendor/etc/sensors/config/bengal_icm4x6xx_0.json
vendor/etc/sensors/config/bengal_lsm6dso_0.json
vendor/etc/sensors/config/bengal_power_0.json
vendor/etc/sensors/config/bengal_sc7a20_0.json
vendor/etc/sensors/config/bengal_stk8baxx_0.json
vendor/etc/sensors/config/bengal_vcnl36866_0.json
vendor/etc/sensors/config/borneo_ak991x_0.json
vendor/etc/sensors/config/borneo_ak991x_0_dvt1.json
vendor/etc/sensors/config/borneo_bmp380_0.json
vendor/etc/sensors/config/borneo_icm4x6xx_0.json
vendor/etc/sensors/config/borneo_icp101xx_0.json
vendor/etc/sensors/config/borneo_lsm6dso_0.json
vendor/etc/sensors/config/borneo_mmc5603x_0.json
vendor/etc/sensors/config/borneo_mmc5603x_0_dvt1.json
vendor/etc/sensors/config/borneo_tmd2755_0.json
vendor/etc/sensors/config/borneo_tmd2755_0_dvt1.json
vendor/etc/sensors/config/icm4x6xx_0.json
vendor/etc/sensors/config/icp101xx_0.json
vendor/etc/sensors/config/mmc5603x_0.json
vendor/etc/sensors/config/mot_camgest.json
vendor/etc/sensors/config/mot_chopchop.json
vendor/etc/sensors/config/mot_devorient.json
vendor/etc/sensors/config/mot_drop.json
vendor/etc/sensors/config/mot_ltv.json
vendor/etc/sensors/config/mot_offbody.json
vendor/etc/sensors/config/sc7a20_0.json
vendor/etc/sensors/config/sdmmagpie_stk3a5x_0.json
vendor/etc/sensors/config/sns_amd.json
vendor/etc/sensors/config/sns_amd_sw_disabled.json
vendor/etc/sensors/config/sns_amd_sw_enabled.json
vendor/etc/sensors/config/sns_aont.json
vendor/etc/sensors/config/sns_basic_gestures.json
vendor/etc/sensors/config/sns_bring_to_ear.json
vendor/etc/sensors/config/sns_ccd.json
vendor/etc/sensors/config/sns_ccd_v2_walk.json
vendor/etc/sensors/config/sns_ccd_v3_walk.json
vendor/etc/sensors/config/sns_cm.json
vendor/etc/sensors/config/sns_dae.json
vendor/etc/sensors/config/sns_device_orient.json
vendor/etc/sensors/config/sns_diag_filter.json
vendor/etc/sensors/config/sns_distance_bound.json
vendor/etc/sensors/config/sns_dpc.json
vendor/etc/sensors/config/sns_facing.json
vendor/etc/sensors/config/sns_fmv.json
vendor/etc/sensors/config/sns_geomag_rv.json
vendor/etc/sensors/config/sns_gyro_cal.json
vendor/etc/sensors/config/sns_heart_rate.json
vendor/etc/sensors/config/sns_mag_cal.json
vendor/etc/sensors/config/sns_mag_cal_legacy.json
vendor/etc/sensors/config/sns_multishake.json
vendor/etc/sensors/config/sns_pedometer.json
vendor/etc/sensors/config/sns_rmd.json
vendor/etc/sensors/config/sns_rotv.json
vendor/etc/sensors/config/sns_smd.json
vendor/etc/sensors/config/tmd2755_0.json
vendor/etc/sensors/config/sns_tilt.json
vendor/etc/sensors/config/sns_tilt_sw_disabled.json
vendor/etc/sensors/config/sns_tilt_sw_enabled.json
vendor/etc/sensors/config/sns_tilt_to_wake.json
vendor/etc/sensors/config/stk3a5x_0.json
vendor/etc/sensors/config/stk8baxx_0.json
vendor/etc/sensors/config/vcnl36866_0.json
vendor/etc/sensors/sns_reg_config
# Thermal
vendor/bin/thermal-engine
vendor/etc/init/init_thermal-engine.rc
vendor/etc/thermal-engine-borneo.conf
vendor/etc/thermal-engine-cebu.conf
vendor/etc/thermal-engine.conf
-vendor/lib/libthermalclient.so
-vendor/lib64/libthermalclient.so
# Touchscreen firmware
vendor/firmware/FT8006U_Pramboot.bin
vendor/firmware/NT36xxx_MP_Setting_Criteria_601E.csv
vendor/firmware/focaltech-djnboe-ft8009-07-000-borneo.bin:vendor/firmware/focaltech_ts_fw_djnboe.bin
vendor/firmware/ilitek_fw.bin
vendor/firmware/novatek_ts_fw.bin:vendor/firmware/djn_novatek_ts_fw.bin
vendor/firmware/novatek_ts_mp.bin:vendor/firmware/djn_novatek_ts_mp.bin
vendor/firmware/ICNL9911.bin
vendor/firmware/NT36xxx_MP_Setting_Criteria_6026.csv
vendor/firmware/focaltech-dsbj-ft8006s_aa-05-0000-cebu.bin
vendor/firmware/novatek_ts_fw.bin
vendor/firmware/novatek_ts_mp.bin
# Touchscreen firmware (recovery)
vendor/firmware/FT8006U_Pramboot.bin:recovery/root/vendor/firmware/FT8006U_Pramboot.bin
vendor/firmware/NT36xxx_MP_Setting_Criteria_601E.csv:recovery/root/vendor/firmware/NT36xxx_MP_Setting_Criteria_601E.csv
vendor/firmware/focaltech-djnboe-ft8009-07-000-borneo.bin:recovery/root/vendor/firmware/focaltech_ts_fw_djnboe.bin
vendor/firmware/ilitek_fw.bin:recovery/root/vendor/firmware/ilitek_fw.bin
vendor/firmware/novatek_ts_fw.bin:recovery/root/vendor/firmware/djn_novatek_ts_fw.bin
vendor/firmware/novatek_ts_mp.bin:recovery/root/vendor/firmware/djn_novatek_ts_mp.bin
vendor/firmware/ICNL9911.bin:recovery/root/vendor/firmware/ICNL9911.bin
vendor/firmware/NT36xxx_MP_Setting_Criteria_6026.csv:recovery/root/vendor/firmware/NT36xxx_MP_Setting_Criteria_6026.csv
vendor/firmware/focaltech-dsbj-ft8006s_aa-05-0000-cebu.bin:recovery/root/vendor/firmware/focaltech-dsbj-ft8006s_aa-05-0000-cebu.bin
vendor/firmware/novatek_ts_fw.bin:recovery/root/vendor/firmware/novatek_ts_fw.bin
vendor/firmware/novatek_ts_mp.bin:recovery/root/vendor/firmware/novatek_ts_mp.bin

View File

@@ -1,4 +1,4 @@
# All firmware images below are extracted from borneo_retail RZBS31.Q2-143-27-25
# All firmware images below are extracted from cebu_retail RZCS31.Q2-57-12-14
abl.elf:abl.img;AB
BTFM.bin:bluetooth.img;AB

View File

@@ -9,8 +9,7 @@
# ---------------------------------
# April 15, 2019 chengql2@lenovo.com Initial version
# April 28, 2019 chengql2 Add fps_id creating step
# December 2, 2019 chengql2 Store fps_id into persist fs, and identify sensor
# again when secure unit boots as factory mode.
#
script_name=${0##*/}
script_name=${script_name%.*}
@@ -20,7 +19,7 @@ function log {
persist_fps_id=/mnt/vendor/persist/fps/vendor_id
FPS_VENDOR_EGIS=egis
FPS_VENDOR_CHIPONE=chipone
FPS_VENDOR_FPC=fpc
FPS_VENDOR_NONE=none
@@ -38,26 +37,27 @@ function ident_fps {
do
sleep 0.1
ident_status=$(getprop $PROP_FPS_IDENT)
log "-result : $ident_status"
log "- result: $ident_status"
if [ $ident_status == $FPS_VENDOR_FPC ]; then
log "ok"
echo $FPS_VENDOR_FPC > $persist_fps_id
return 0
elif [ $ident_status == $FPS_VENDOR_NONE ]; then
log "fail"
log "- unload FPC driver"
log "- remove FPC driver"
rmmod fpc1020_mmi
break
fi
done
log "- install Egis driver"
insmod /vendor/lib/modules/ets_fps_mmi.ko
echo $FPS_VENDOR_EGIS > $persist_fps_id
log "- install Chipone driver"
insmod /vendor/lib/modules/fpsensor_spi_tee.ko
echo $FPS_VENDOR_CHIPONE > $persist_fps_id
return 0
}
if [ ! -f $persist_fps_id ]; then
if [ ! $persist_fps_id ]; then
log "- start ident_fps"
ident_fps
return $?
fi
@@ -65,9 +65,9 @@ fi
fps_vendor=$(cat $persist_fps_id)
log "FPS vendor: $fps_vendor"
if [ $fps_vendor == $FPS_VENDOR_EGIS ]; then
log "- install Egis driver"
insmod /vendor/lib/modules/ets_fps_mmi.ko
if [ $fps_vendor == $FPS_VENDOR_CHIPONE ]; then
log "- install Chipone driver"
insmod /vendor/lib/modules/fpsensor_spi_tee.ko
return $?
fi

View File

@@ -5,8 +5,9 @@
# Copyright (c) 2019 Lenovo
# All rights reserved.
#
# April 15, 2019 chengql2@lenovo.com Initial version
# December 2, 2019 chengql2 Store fps_id into persist fs
# author: chengql2@lenovo.com
# date: April 15, 2019
#
script_name=${0##*/}
script_name=${script_name%.*}
@@ -28,7 +29,7 @@ fps_vendor=$(cat $persist_fps_id)
log "FPS vendor: $fps_vendor"
FPS_VENDOR_NONE=none
FPS_VENDOR_EGIS=egis
FPS_VENDOR_CHIPONE=chipone
FPS_VENDOR_FPC=fpc
prop_fps_status=vendor.hw.fingerprint.status
@@ -52,12 +53,14 @@ if [ $fps == $FPS_VENDOR_FPC ]; then
log "start fps_hal"
start fps_hal
else
log "start ets_hal"
start ets_hal
log "start fpsensor_hal"
start chipone_fp_hal
fps=$FPS_VENDOR_CHIPONE
fi
log "wait for HAL finish ..."
fps_status=$(getprop $prop_fps_status)
log "fingerprint HAL status: $fps_status"
while [ $fps_status == $FPS_STATUS_NONE ]; do
sleep 0.2
fps_status=$(getprop $prop_fps_status)
@@ -78,11 +81,15 @@ fi
if [ $fps == $fps_vendor2 ]; then
if [ $fps == $FPS_VENDOR_FPC ]; then
log "remove FPC driver"
rmmod fpc1020_mmi
insmod /vendor/lib/modules/ets_fps_mmi.ko
fps=$FPS_VENDOR_EGIS
log "- install chipone driver"
insmod /vendor/lib/modules/fpsensor_spi_tee.ko
fps=$FPS_VENDOR_CHIPONE
else
rmmod ets_fps_mmi
log "remove chipone driver"
rmmod fpsensor_spi_tee
log "- install fpc driver"
insmod /vendor/lib/modules/fpc1020_mmi.ko
fps=$FPS_VENDOR_FPC
fi

View File

@@ -8,25 +8,20 @@ on mmi-priority
# and needs to load first. Touchscreen might need extra time
# to perform firmware update if necessary
setprop vendor.mmi_init.stage priority
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules mmi_annotate mmi_info tzlog_dump watchdog_cpu_ctx mmi_sys_temp sensors_class mcDrvModule
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules mmi_annotate mmi_info tzlog_dump watchdog_cpu_ctx mmi_sys_temp dts201a_mmi.ko
on fs
# Majority of MMI DLKMs should be in this group
setprop vendor.mmi_init.stage common
insmod /vendor/lib/modules/leds_aw99703.ko
insmod /vendor/lib/modules/leds_lm3697.ko
insmod /vendor/lib/modules/goodix_v1430_mmi.ko
insmod /vendor/lib/modules/goodix_v1430_update_mmi.ko
insmod /vendor/lib/modules/goodix_v1430_ts_tools_mmi.ko
insmod /vendor/lib/modules/sec_mmi.ko
insmod /vendor/lib/modules/stmvl53l1.ko
insmod /vendor/lib/modules/cci_intf.ko
insmod /vendor/lib/modules/qpnp-smbcharger-mmi.ko
insmod /vendor/lib/modules/ilitek_0flash_mmi.ko
insmod /vendor/lib/modules/leds_aw99703.ko
insmod /vendor/lib/modules/ktd3136_bl.ko
insmod /vendor/lib/modules/nova_0flash_mmi.ko
insmod /vendor/lib/modules/focaltech_0flash_mmi.ko
insmod /vendor/lib/modules/chipone_tddi_mmi.ko
insmod /vendor/lib/modules/qpnp_adaptive_charge.ko
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules qpnp-power-on-mmi watchdogtest sensor_class abov_sar_mmi_overlay audio_snd_soc_aw882xx tps61280
insmod /vendor/lib/modules/qpnp-power-on-mmi.ko
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules sensor_class abov_sar_mmi_overlay audio_snd_soc_aw882xx
on post-fs-data
# Load DLKM that can afford being loaded later
@@ -47,20 +42,18 @@ on boot
# change permission for capsensor
chown system system /sys/class/capsense/reset
chown system system /sys/class/capsense/int_state
# Change ownership for capsensor
chown root input /sys/class/sensors/capsense_bottom_left/enable
chown root input /sys/class/sensors/capsense_bottom_left/poll_delay
chown root input /sys/class/sensors/capsense_bottom_right/enable
chown root input /sys/class/sensors/capsense_bottom_right/poll_delay
chown root input /sys/class/sensors/capsense_top_left/enable
chown root input /sys/class/sensors/capsense_top_left/poll_delay
chown root input /sys/class/sensors/capsense_top_right/enable
chown root input /sys/class/sensors/capsense_top_right/poll_delay
chown root input /sys/class/sensors/capsense_top/enable
chown root input /sys/class/sensors/capsense_top/poll_delay
# change permission for adaptive charging
chown system system /sys/module/qpnp_adaptive_charge/parameters/upper_limit
chown system system /sys/module/qpnp_adaptive_charge/parameters/lower_limit
# change ownership for thermopile sensor
chown system system /sys/class/sensors/thermopile_sensor/enable
chown system system /sys/class/sensors/thermopile_sensor/poll_delay
chown system system /sys/class/thermopile/dts201a/coefficient_reg
chown system system /sys/class/thermopile/dts201a/dts201a_data2read
mkdir /data/vendor/thermo 0770 system system
#service vendor.mmi_modules /vendor/bin/init.mmi.modules.sh
# user root

View File

@@ -1,6 +1,5 @@
on boot
insmod /lib/modules/sensors_class.ko
insmod /lib/modules/ilitek_0flash_mmi.ko
insmod /lib/modules/nova_0flash_mmi.ko
insmod /lib/modules/focaltech_0flash_mmi.ko
insmod /lib/modules/chipone_tddi_mmi.ko
insmod /lib/modules/exfat.ko

View File

@@ -8,7 +8,7 @@
set -e
export DEVICE=borneo
export DEVICE=cebu
export DEVICE_COMMON=sm6225-common
export VENDOR=motorola

View File

@@ -4,6 +4,10 @@
manifest_no_n.xml
-->
<manifest version="2.0" type="device">
<hal format="hidl" override="true">
<name>android.hardware.nfc</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>android.hardware.radio</name>
<transport>hwbinder</transport>
@@ -15,6 +19,10 @@
<transport>hwbinder</transport>
<fqname>@1.2::ISecureElement/SIM1</fqname>
</hal>
<hal format="hidl" override="true">
<name>vendor.nxp.nxpnfc</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.data.connection</name>
<transport>hwbinder</transport>

14
sku/manifest_d.xml Normal file
View File

@@ -0,0 +1,14 @@
<!--
Input:
manifest_no_n.xml
-->
<manifest version="2.0" type="device">
<hal format="hidl" override="true">
<name>android.hardware.nfc</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.nxp.nxpnfc</name>
<transport>hwbinder</transport>
</hal>
</manifest>

16
sku/manifest_dn.xml Normal file
View File

@@ -0,0 +1,16 @@
<!--
Input:
manifest_n.xml
-->
<manifest version="2.0" type="device">
<hal format="hidl" override="true">
<name>android.hardware.nfc</name>
<transport>hwbinder</transport>
<fqname>@1.2::INfc/default</fqname>
</hal>
<hal format="hidl" override="true">
<name>vendor.nxp.nxpnfc</name>
<transport>hwbinder</transport>
<fqname>@2.0::INxpNfc/default</fqname>
</hal>
</manifest>

29
sku/manifest_fdn.xml Normal file
View File

@@ -0,0 +1,29 @@
<!--
Input:
manifest_n.xml
manifest_f.xml
-->
<manifest version="2.0" type="device">
<hal format="hidl" override="true">
<name>android.hardware.nfc</name>
<transport>hwbinder</transport>
<fqname>@1.2::INfc/default</fqname>
</hal>
<hal format="hidl" override="true">
<name>com.fingerprints.extension</name>
<transport>hwbinder</transport>
<fqname>@1.0::IFingerprintEngineering/default</fqname>
<fqname>@1.0::IFingerprintNavigation/default</fqname>
<fqname>@1.0::IFingerprintSensorTest/default</fqname>
</hal>
<hal format="hidl" override="true">
<name>vendor.fpsensor.hardware.fpsensorhidlsvc</name>
<transport>hwbinder</transport>
<fqname>@2.0::IFpsensorHidlSvc/default</fqname>
</hal>
<hal format="hidl" override="true">
<name>vendor.nxp.nxpnfc</name>
<transport>hwbinder</transport>
<fqname>@2.0::INxpNfc/default</fqname>
</hal>
</manifest>

View File

@@ -1,10 +1,14 @@
<!--
Input:
manifest_f.xml
manifest_b.xml
manifest_no_n.xml
manifest_n.xml
-->
<manifest version="2.0" type="device">
<hal format="hidl" override="true">
<name>android.hardware.nfc</name>
<transport>hwbinder</transport>
<fqname>@1.2::INfc/default</fqname>
</hal>
<hal format="hidl" override="true">
<name>android.hardware.radio</name>
<transport>hwbinder</transport>
@@ -17,16 +21,9 @@
<fqname>@1.2::ISecureElement/SIM1</fqname>
</hal>
<hal format="hidl" override="true">
<name>com.fingerprints.extension</name>
<name>vendor.nxp.nxpnfc</name>
<transport>hwbinder</transport>
<fqname>@1.0::IFingerprintEngineering/default</fqname>
<fqname>@1.0::IFingerprintNavigation/default</fqname>
<fqname>@1.0::IFingerprintSensorTest/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.egistec.hardware.fingerprint</name>
<transport>hwbinder</transport>
<fqname>@2.0::IBiometricsFingerprintEts/default</fqname>
<fqname>@2.0::INxpNfc/default</fqname>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.data.connection</name>