sanders: Add DTV Support for XT1802

This commit is contained in:
Jorge Lucas
2020-12-28 12:35:21 -03:00
parent a1ed5fab4f
commit 91f6591de9
6 changed files with 63 additions and 0 deletions

View File

@@ -35,6 +35,9 @@ TARGET_PROVIDES_KEYMASTER := true
# Recovery # Recovery
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
# Releasetools
TARGET_RELEASETOOLS_EXTENSIONS := $(DEVICE_PATH)/releasetools
# NFC # NFC
NXP_CHIP_TYPE := PN551 NXP_CHIP_TYPE := PN551

15
configs/check_features.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/sbin/sh
remove_dtv() {
rm /system/system/etc/permissions/com.motorola.hardware.dtv.xml
rm /system/system/etc/permissions/mot_dtv_permissions.xml
rm /system/system/lib*/libdtvtuner.so
rm /system/system/lib*/libdtvhal.so
rm /vendor/lib/modules/isdbt.ko
rm -r /system/system/priv-app/DTVPlayer
rm -r /system/system/priv-app/DTVService
}
if [ $(getprop ro.boot.hardware.sku) != "XT1802" ]; then
remove_dtv
fi

View File

@@ -75,6 +75,10 @@ PRODUCT_PACKAGES += \
fstab.qcom \ fstab.qcom \
init.sanders.rc init.sanders.rc
# Releasetools script
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/configs/check_features.sh:$(TARGET_COPY_OUT_VENDOR)/bin/check_features.sh
# Sensors # Sensors
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/configs/sensors/sensor_def_qcomdev.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/sensor_def_qcomdev.conf \ $(DEVICE_PATH)/configs/sensors/sensor_def_qcomdev.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/sensor_def_qcomdev.conf \

View File

@@ -554,6 +554,16 @@ vendor/firmware/focaltech-biel-ft5436-06-0001-sanders.bin
vendor/firmware/focaltech-djn-ft5436-02-0001-sanders.bin vendor/firmware/focaltech-djn-ft5436-02-0001-sanders.bin
vendor/firmware/focaltech-toptouch-ft5436-0a-0001-sanders.bin vendor/firmware/focaltech-toptouch-ft5436-0a-0001-sanders.bin
# DTV
-app/DTVPlayer/DTVPlayer.apk
-app/DTVService/DTVService.apk
etc/permissions/com.motorola.hardware.dtv.xml
etc/permissions/mot_dtv_permissions.xml
lib/libdtvhal.so
lib/libdtvtuner.so
lib64/libdtvhal.so
lib64/libdtvtuner.so
# Gatekeeper - from LA.UM.8.6.r1-04700-89xx.0 # Gatekeeper - from LA.UM.8.6.r1-04700-89xx.0
vendor/lib64/hw/gatekeeper.msm8953.so|b3a9d78faa65029b0a20f2ff6dfe986bc80b64c1 vendor/lib64/hw/gatekeeper.msm8953.so|b3a9d78faa65029b0a20f2ff6dfe986bc80b64c1

View File

@@ -0,0 +1,28 @@
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
def IncrementalOTA_InstallEnd(info):
ReplaceDeviceConfig(info)
def FullOTA_InstallEnd(info):
ReplaceDeviceConfig(info)
def ReplaceDeviceConfig(info):
info.script.Mount("/system")
info.script.Mount("/vendor")
info.script.AppendExtra('run_program("/sbin/sh", "/vendor/bin/check_features.sh");')
info.script.Unmount("/system")
info.script.Unmount("/vendor")

View File

@@ -44,3 +44,6 @@ on boot
on post-fs-data on post-fs-data
mkdir /data/fpc 0700 system system mkdir /data/fpc 0700 system system
mkdir /data/.fps 0770 system fingerp mkdir /data/.fps 0770 system fingerp
on property:ro.boot.hardware.sku=XT1802
insmod /vendor/lib/modules/isdbt.ko