peridot: Remove xiaomi touchfeature service
Change-Id: Id5297d990bd6b2a4dafd2725a89cf6ebe826d375
This commit is contained in:
134
Android.bp
134
Android.bp
@@ -32207,56 +32207,6 @@ cc_prebuilt_library_shared {
|
|||||||
soc_specific: true,
|
soc_specific: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
cc_prebuilt_library_shared {
|
|
||||||
name: "vendor.xiaomi.hw.touchfeature-V1-ndk",
|
|
||||||
owner: "xiaomi",
|
|
||||||
strip: {
|
|
||||||
none: true,
|
|
||||||
},
|
|
||||||
target: {
|
|
||||||
android_arm64: {
|
|
||||||
srcs: [
|
|
||||||
"proprietary/vendor/lib64/vendor.xiaomi.hw.touchfeature-V1-ndk.so",
|
|
||||||
],
|
|
||||||
shared_libs: [
|
|
||||||
"libbinder_ndk",
|
|
||||||
"libc++",
|
|
||||||
"libc",
|
|
||||||
"libm",
|
|
||||||
"libdl",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
compile_multilib: "64",
|
|
||||||
prefer: true,
|
|
||||||
soc_specific: true,
|
|
||||||
}
|
|
||||||
|
|
||||||
cc_prebuilt_library_shared {
|
|
||||||
name: "vendor.xiaomi.hw.touchfeature-V1-ndk_platform",
|
|
||||||
owner: "xiaomi",
|
|
||||||
strip: {
|
|
||||||
none: true,
|
|
||||||
},
|
|
||||||
target: {
|
|
||||||
android_arm64: {
|
|
||||||
srcs: [
|
|
||||||
"proprietary/vendor/lib64/vendor.xiaomi.hw.touchfeature-V1-ndk_platform.so",
|
|
||||||
],
|
|
||||||
shared_libs: [
|
|
||||||
"libbinder_ndk",
|
|
||||||
"libc++",
|
|
||||||
"libc",
|
|
||||||
"libm",
|
|
||||||
"libdl",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
compile_multilib: "64",
|
|
||||||
prefer: true,
|
|
||||||
soc_specific: true,
|
|
||||||
}
|
|
||||||
|
|
||||||
cc_prebuilt_library_shared {
|
cc_prebuilt_library_shared {
|
||||||
name: "vendor.xiaomi.sensor.citsensorservice-V1-ndk",
|
name: "vendor.xiaomi.sensor.citsensorservice-V1-ndk",
|
||||||
owner: "xiaomi",
|
owner: "xiaomi",
|
||||||
@@ -38107,46 +38057,6 @@ cc_prebuilt_library_shared {
|
|||||||
device_specific: true,
|
device_specific: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
cc_prebuilt_library_shared {
|
|
||||||
name: "sensors.touch.detect",
|
|
||||||
owner: "xiaomi",
|
|
||||||
strip: {
|
|
||||||
none: true,
|
|
||||||
},
|
|
||||||
target: {
|
|
||||||
android_arm64: {
|
|
||||||
srcs: [
|
|
||||||
"proprietary/odm/lib64/sensors.touch.detect.so",
|
|
||||||
],
|
|
||||||
shared_libs: [
|
|
||||||
"libprotobuf-cpp-lite-21.7",
|
|
||||||
"liblog",
|
|
||||||
"libutils",
|
|
||||||
"libcutils",
|
|
||||||
"libhardware",
|
|
||||||
"libhidltransport",
|
|
||||||
"libhidlbase",
|
|
||||||
"libsensorslog",
|
|
||||||
"libqsh",
|
|
||||||
"libsnsapi",
|
|
||||||
"android.hardware.sensors@1.0",
|
|
||||||
"android.hardware.sensors@2.0",
|
|
||||||
"android.hardware.sensors@2.0-ScopedWakelock",
|
|
||||||
"android.hardware.sensors@2.1",
|
|
||||||
"libfmq",
|
|
||||||
"libpower",
|
|
||||||
"libc++",
|
|
||||||
"libc",
|
|
||||||
"libm",
|
|
||||||
"libdl",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
compile_multilib: "64",
|
|
||||||
prefer: true,
|
|
||||||
device_specific: true,
|
|
||||||
}
|
|
||||||
|
|
||||||
cc_prebuilt_library_shared {
|
cc_prebuilt_library_shared {
|
||||||
name: "sensors.ultrasoundproximity",
|
name: "sensors.ultrasoundproximity",
|
||||||
owner: "xiaomi",
|
owner: "xiaomi",
|
||||||
@@ -39213,15 +39123,6 @@ prebuilt_etc_xml {
|
|||||||
device_specific: true,
|
device_specific: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
prebuilt_etc_xml {
|
|
||||||
name: "vendor.xiaomi.hw.touchfeature-service.xml",
|
|
||||||
owner: "xiaomi",
|
|
||||||
src: "proprietary/odm/etc/vintf/manifest/vendor.xiaomi.hw.touchfeature-service.xml",
|
|
||||||
filename_from_src: true,
|
|
||||||
sub_dir: "vintf/manifest",
|
|
||||||
device_specific: true,
|
|
||||||
}
|
|
||||||
|
|
||||||
prebuilt_etc_xml {
|
prebuilt_etc_xml {
|
||||||
name: "vendor.xiaomi.sensor.citsensorservice.aidl.xml",
|
name: "vendor.xiaomi.sensor.citsensorservice.aidl.xml",
|
||||||
owner: "xiaomi",
|
owner: "xiaomi",
|
||||||
@@ -42772,41 +42673,6 @@ cc_prebuilt_binary {
|
|||||||
system_ext_specific: true,
|
system_ext_specific: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
cc_prebuilt_binary {
|
|
||||||
name: "vendor.xiaomi.hw.touchfeature-service",
|
|
||||||
owner: "xiaomi",
|
|
||||||
target: {
|
|
||||||
android_arm64: {
|
|
||||||
srcs: [
|
|
||||||
"proprietary/odm/bin/hw/vendor.xiaomi.hw.touchfeature-service",
|
|
||||||
],
|
|
||||||
shared_libs: [
|
|
||||||
"libcutils",
|
|
||||||
"libutils",
|
|
||||||
"libbase",
|
|
||||||
"liblog",
|
|
||||||
"libbinder_ndk",
|
|
||||||
"vendor.xiaomi.hw.touchfeature-V1-ndk_platform",
|
|
||||||
"android.frameworks.sensorservice@1.0",
|
|
||||||
"android.hardware.sensors@2.0",
|
|
||||||
"libhidlbase",
|
|
||||||
"libmisight",
|
|
||||||
"libc++",
|
|
||||||
"libc",
|
|
||||||
"libm",
|
|
||||||
"libdl",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
compile_multilib: "64",
|
|
||||||
strip: {
|
|
||||||
none: true,
|
|
||||||
},
|
|
||||||
prefer: true,
|
|
||||||
relative_install_path: "hw",
|
|
||||||
device_specific: true,
|
|
||||||
}
|
|
||||||
|
|
||||||
cc_prebuilt_binary {
|
cc_prebuilt_binary {
|
||||||
name: "vendor.xiaomi.sensor.citsensorservice.aidl",
|
name: "vendor.xiaomi.sensor.citsensorservice.aidl",
|
||||||
owner: "xiaomi",
|
owner: "xiaomi",
|
||||||
|
|||||||
@@ -415,11 +415,9 @@ PRODUCT_COPY_FILES += \
|
|||||||
vendor/xiaomi/peridot/proprietary/odm/etc/display/qdcm_calib_data_xiaomi_42_0a_0c_video_mode_dsc_dsi_panel.json:$(TARGET_COPY_OUT_ODM)/etc/display/qdcm_calib_data_xiaomi_42_0a_0c_video_mode_dsc_dsi_panel.json \
|
vendor/xiaomi/peridot/proprietary/odm/etc/display/qdcm_calib_data_xiaomi_42_0a_0c_video_mode_dsc_dsi_panel.json:$(TARGET_COPY_OUT_ODM)/etc/display/qdcm_calib_data_xiaomi_42_0a_0c_video_mode_dsc_dsi_panel.json \
|
||||||
vendor/xiaomi/peridot/proprietary/odm/etc/dolby/dax-default-spatializer.xml:$(TARGET_COPY_OUT_ODM)/etc/dolby/dax-default-spatializer.xml \
|
vendor/xiaomi/peridot/proprietary/odm/etc/dolby/dax-default-spatializer.xml:$(TARGET_COPY_OUT_ODM)/etc/dolby/dax-default-spatializer.xml \
|
||||||
vendor/xiaomi/peridot/proprietary/odm/etc/dolby/dax-default.xml:$(TARGET_COPY_OUT_ODM)/etc/dolby/dax-default.xml \
|
vendor/xiaomi/peridot/proprietary/odm/etc/dolby/dax-default.xml:$(TARGET_COPY_OUT_ODM)/etc/dolby/dax-default.xml \
|
||||||
vendor/xiaomi/peridot/proprietary/odm/etc/init.panel_info.sh:$(TARGET_COPY_OUT_ODM)/etc/init.panel_info.sh \
|
|
||||||
vendor/xiaomi/peridot/proprietary/odm/etc/init/android.hardware.contexthub-service.qmi.rc:$(TARGET_COPY_OUT_ODM)/etc/init/android.hardware.contexthub-service.qmi.rc \
|
vendor/xiaomi/peridot/proprietary/odm/etc/init/android.hardware.contexthub-service.qmi.rc:$(TARGET_COPY_OUT_ODM)/etc/init/android.hardware.contexthub-service.qmi.rc \
|
||||||
vendor/xiaomi/peridot/proprietary/odm/etc/init/init.cirrus.rc:$(TARGET_COPY_OUT_ODM)/etc/init/init.cirrus.rc \
|
vendor/xiaomi/peridot/proprietary/odm/etc/init/init.cirrus.rc:$(TARGET_COPY_OUT_ODM)/etc/init/init.cirrus.rc \
|
||||||
vendor/xiaomi/peridot/proprietary/odm/etc/init/vendor.xiaomi.hardware.mlipay-service.rc:$(TARGET_COPY_OUT_ODM)/etc/init/vendor.xiaomi.hardware.mlipay-service.rc \
|
vendor/xiaomi/peridot/proprietary/odm/etc/init/vendor.xiaomi.hardware.mlipay-service.rc:$(TARGET_COPY_OUT_ODM)/etc/init/vendor.xiaomi.hardware.mlipay-service.rc \
|
||||||
vendor/xiaomi/peridot/proprietary/odm/etc/init/vendor.xiaomi.hw.touchfeature-service.rc:$(TARGET_COPY_OUT_ODM)/etc/init/vendor.xiaomi.hw.touchfeature-service.rc \
|
|
||||||
vendor/xiaomi/peridot/proprietary/odm/etc/init/vendor.xiaomi.sensor.citsensorservice.aidl.rc:$(TARGET_COPY_OUT_ODM)/etc/init/vendor.xiaomi.sensor.citsensorservice.aidl.rc \
|
vendor/xiaomi/peridot/proprietary/odm/etc/init/vendor.xiaomi.sensor.citsensorservice.aidl.rc:$(TARGET_COPY_OUT_ODM)/etc/init/vendor.xiaomi.sensor.citsensorservice.aidl.rc \
|
||||||
vendor/xiaomi/peridot/proprietary/odm/etc/izat_device.conf:$(TARGET_COPY_OUT_ODM)/etc/izat_device.conf \
|
vendor/xiaomi/peridot/proprietary/odm/etc/izat_device.conf:$(TARGET_COPY_OUT_ODM)/etc/izat_device.conf \
|
||||||
vendor/xiaomi/peridot/proprietary/odm/etc/mdss_dsi_n16t_36_0f_0b_dsc_vid_mi.xml:$(TARGET_COPY_OUT_ODM)/etc/mdss_dsi_n16t_36_0f_0b_dsc_vid_mi.xml \
|
vendor/xiaomi/peridot/proprietary/odm/etc/mdss_dsi_n16t_36_0f_0b_dsc_vid_mi.xml:$(TARGET_COPY_OUT_ODM)/etc/mdss_dsi_n16t_36_0f_0b_dsc_vid_mi.xml \
|
||||||
@@ -2360,8 +2358,6 @@ PRODUCT_PACKAGES += \
|
|||||||
vendor.xiaomi.hardware.displayfeature_aidl-V2-ndk \
|
vendor.xiaomi.hardware.displayfeature_aidl-V2-ndk \
|
||||||
vendor.xiaomi.hardware.mlipay-V1-ndk_platform \
|
vendor.xiaomi.hardware.mlipay-V1-ndk_platform \
|
||||||
vendor.xiaomi.hardware.quickcamera-V1-ndk_platform \
|
vendor.xiaomi.hardware.quickcamera-V1-ndk_platform \
|
||||||
vendor.xiaomi.hw.touchfeature-V1-ndk \
|
|
||||||
vendor.xiaomi.hw.touchfeature-V1-ndk_platform \
|
|
||||||
vendor.xiaomi.sensor.citsensorservice-V1-ndk \
|
vendor.xiaomi.sensor.citsensorservice-V1-ndk \
|
||||||
chre_qsh_shim \
|
chre_qsh_shim \
|
||||||
libCalculator_skel \
|
libCalculator_skel \
|
||||||
@@ -2559,7 +2555,6 @@ PRODUCT_PACKAGES += \
|
|||||||
libwvkeybox \
|
libwvkeybox \
|
||||||
libxmi_hdr_checker \
|
libxmi_hdr_checker \
|
||||||
libxmi_slow_motion_mein \
|
libxmi_slow_motion_mein \
|
||||||
sensors.touch.detect \
|
|
||||||
sensors.ultrasoundproximity \
|
sensors.ultrasoundproximity \
|
||||||
capi_elus_rx \
|
capi_elus_rx \
|
||||||
capi_elus_tx \
|
capi_elus_tx \
|
||||||
@@ -2672,7 +2667,6 @@ PRODUCT_PACKAGES += \
|
|||||||
vendor.xiaomi.hardware.quickcamera.xml \
|
vendor.xiaomi.hardware.quickcamera.xml \
|
||||||
vendor.qti.qesdsys.service.xml \
|
vendor.qti.qesdsys.service.xml \
|
||||||
manifest_vendor.xiaomi.hardware.mlipay.xml \
|
manifest_vendor.xiaomi.hardware.mlipay.xml \
|
||||||
vendor.xiaomi.hw.touchfeature-service.xml \
|
|
||||||
vendor.xiaomi.sensor.citsensorservice.aidl.xml \
|
vendor.xiaomi.sensor.citsensorservice.aidl.xml \
|
||||||
ATFWD-daemon \
|
ATFWD-daemon \
|
||||||
SoterProvisioningTool \
|
SoterProvisioningTool \
|
||||||
@@ -2787,7 +2781,6 @@ PRODUCT_PACKAGES += \
|
|||||||
xtra-daemon \
|
xtra-daemon \
|
||||||
xtwifi-client \
|
xtwifi-client \
|
||||||
wfdservice64 \
|
wfdservice64 \
|
||||||
vendor.xiaomi.hw.touchfeature-service \
|
|
||||||
vendor.xiaomi.sensor.citsensorservice.aidl \
|
vendor.xiaomi.sensor.citsensorservice.aidl \
|
||||||
mlipayd
|
mlipayd
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -1,280 +0,0 @@
|
|||||||
#!/system/bin/sh
|
|
||||||
# Copyright (c) 2009-2015, The Linux Foundation. All rights reserved.
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions are met:
|
|
||||||
# * Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# * Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in the
|
|
||||||
# documentation and/or other materials provided with the distribution.
|
|
||||||
# * Neither the name of The Linux Foundation nor
|
|
||||||
# the names of its contributors may be used to endorse or promote
|
|
||||||
# products derived from this software without specific prior written
|
|
||||||
# permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
||||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
||||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
# Update the panel color property and Leds brightness
|
|
||||||
for i in $(seq 5); do
|
|
||||||
if [ -f /sys/class/touch/touch_dev/panel_color ]; then
|
|
||||||
color=`cat /sys/class/touch/touch_dev/panel_color`
|
|
||||||
if [ -n "$color" ]; then
|
|
||||||
/system/bin/log -p i -t panel-info-sh Get panel_color successfully $color
|
|
||||||
break
|
|
||||||
else
|
|
||||||
/system/bin/log -p i -t panel-info-sh Get panel_color unsuccessfully, try again...
|
|
||||||
sleep 1
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
color="0"
|
|
||||||
/system/bin/log -p i -t panel-info-sh Get panel_color unsuccessfully, try again...
|
|
||||||
sleep 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
for i in $(seq 5); do
|
|
||||||
if [ -f /sys/class/touch/touch_dev/panel_vendor ]; then
|
|
||||||
panel_vendor=`cat /sys/class/touch/touch_dev/panel_vendor`
|
|
||||||
if [ -n "$panel_vendor" ]; then
|
|
||||||
/system/bin/log -p i -t panel-info-sh Get panel_vendor successfully $panel_vendor
|
|
||||||
break
|
|
||||||
else
|
|
||||||
/system/bin/log -p i -t panel-info-sh Get panel_vendor unsuccessfully, try again...
|
|
||||||
sleep 1
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
panel_vendor="0"
|
|
||||||
/system/bin/log -p i -t panel-info-sh Get panel_vendor unsuccessfully, try again...
|
|
||||||
sleep 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
for i in $(seq 5); do
|
|
||||||
if [ -f /sys/class/touch/touch_dev/panel_display ]; then
|
|
||||||
panel_display=`cat /sys/class/touch/touch_dev/panel_display`
|
|
||||||
if [ -n "$panel_display" ]; then
|
|
||||||
/system/bin/log -p i -t panel-info-sh Get panel_display successfully $panel_display
|
|
||||||
break
|
|
||||||
else
|
|
||||||
/system/bin/log -p i -t panel-info-sh Get panel_display unsuccessfully, try again...
|
|
||||||
sleep 1
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
panel_display="0"
|
|
||||||
/system/bin/log -p i -t panel-info-sh Get panel_display unsuccessfully, try again...
|
|
||||||
sleep 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
for i in $(seq 5); do
|
|
||||||
if [ -f /sys/class/touch/touch_dev/touch_vendor ]; then
|
|
||||||
touch_vendor=`cat /sys/class/touch/touch_dev/touch_vendor`
|
|
||||||
if [ -n "$touch_vendor" ]; then
|
|
||||||
/system/bin/log -p i -t panel-info-sh Get touch_vendor successfully $touch_vendor
|
|
||||||
break
|
|
||||||
else
|
|
||||||
/system/bin/log -p i -t panel-info-sh Get touch_vendor unsuccessfully, try again...
|
|
||||||
sleep 1
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
touch_vendor="0"
|
|
||||||
/system/bin/log -p i -t panel-info-sh Get touch_vendor unsuccessfully, try again...
|
|
||||||
sleep 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
case "$color" in
|
|
||||||
"1")
|
|
||||||
setprop vendor.panel.color WHITE
|
|
||||||
;;
|
|
||||||
"2")
|
|
||||||
setprop vendor.panel.color BLACK
|
|
||||||
;;
|
|
||||||
"3")
|
|
||||||
setprop vendor.panel.color RED
|
|
||||||
;;
|
|
||||||
"4")
|
|
||||||
setprop vendor.panel.color YELLOW
|
|
||||||
;;
|
|
||||||
"5")
|
|
||||||
setprop vendor.panel.color GREEN
|
|
||||||
;;
|
|
||||||
"6")
|
|
||||||
setprop vendor.panel.color PINK
|
|
||||||
;;
|
|
||||||
"7")
|
|
||||||
setprop vendor.panel.color PURPLE
|
|
||||||
;;
|
|
||||||
"8")
|
|
||||||
setprop vendor.panel.color GOLDEN
|
|
||||||
;;
|
|
||||||
"9")
|
|
||||||
setprop vendor.panel.color SLIVER
|
|
||||||
;;
|
|
||||||
"@")
|
|
||||||
setprop vendor.panel.color GRAY
|
|
||||||
;;
|
|
||||||
"A")
|
|
||||||
setprop vendor.panel.color SLIVER_BLUE
|
|
||||||
;;
|
|
||||||
"B")
|
|
||||||
setprop vendor.panel.color CORAL_BLUE
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
setprop vendor.panel.color UNKNOWN
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
case "$panel_vendor" in
|
|
||||||
"1")
|
|
||||||
setprop vendor.panel.vendor 1
|
|
||||||
;;
|
|
||||||
"2")
|
|
||||||
setprop vendor.panel.vendor 2
|
|
||||||
;;
|
|
||||||
"3")
|
|
||||||
setprop vendor.panel.vendor 3
|
|
||||||
;;
|
|
||||||
"4")
|
|
||||||
setprop vendor.panel.vendor 4
|
|
||||||
;;
|
|
||||||
"5")
|
|
||||||
setprop vendor.panel.vendor 5
|
|
||||||
;;
|
|
||||||
"6")
|
|
||||||
setprop vendor.panel.vendor 6
|
|
||||||
;;
|
|
||||||
"7")
|
|
||||||
setprop vendor.panel.vendor 7
|
|
||||||
;;
|
|
||||||
"8")
|
|
||||||
setprop vendor.panel.vendor 8
|
|
||||||
;;
|
|
||||||
"9")
|
|
||||||
setprop vendor.panel.vendor 9
|
|
||||||
;;
|
|
||||||
"@")
|
|
||||||
setprop vendor.panel.vendor 10
|
|
||||||
;;
|
|
||||||
"A")
|
|
||||||
setprop vendor.panel.vendor 11
|
|
||||||
;;
|
|
||||||
"B")
|
|
||||||
setprop vendor.panel.vendor 12
|
|
||||||
;;
|
|
||||||
"C")
|
|
||||||
setprop vendor.panel.vendor 13
|
|
||||||
;;
|
|
||||||
"D")
|
|
||||||
setprop vendor.panel.vendor 14
|
|
||||||
;;
|
|
||||||
"E")
|
|
||||||
setprop vendor.panel.vendor 15
|
|
||||||
;;
|
|
||||||
"F")
|
|
||||||
setprop vendor.panel.vendor 16
|
|
||||||
;;
|
|
||||||
"G")
|
|
||||||
setprop vendor.panel.vendor 17
|
|
||||||
;;
|
|
||||||
"H")
|
|
||||||
setprop vendor.panel.vendor 18
|
|
||||||
;;
|
|
||||||
"I")
|
|
||||||
setprop vendor.panel.vendor 19
|
|
||||||
;;
|
|
||||||
"P")
|
|
||||||
setprop vendor.panel.vendor 20
|
|
||||||
;;
|
|
||||||
"Q")
|
|
||||||
setprop vendor.panel.vendor 21
|
|
||||||
;;
|
|
||||||
"R")
|
|
||||||
setprop vendor.panel.vendor 22
|
|
||||||
;;
|
|
||||||
"S")
|
|
||||||
setprop vendor.panel.vendor 23
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
setprop vendor.panel.vendor UNKNOWN
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
case "$panel_display" in
|
|
||||||
"1")
|
|
||||||
setprop vendor.panel.display 1
|
|
||||||
;;
|
|
||||||
"2")
|
|
||||||
setprop vendor.panel.display 2
|
|
||||||
;;
|
|
||||||
"3")
|
|
||||||
setprop vendor.panel.display 3
|
|
||||||
;;
|
|
||||||
"4")
|
|
||||||
setprop vendor.panel.display 4
|
|
||||||
;;
|
|
||||||
"5")
|
|
||||||
setprop vendor.panel.display 5
|
|
||||||
;;
|
|
||||||
"6")
|
|
||||||
setprop vendor.panel.display 6
|
|
||||||
;;
|
|
||||||
"7")
|
|
||||||
setprop vendor.panel.display 7
|
|
||||||
;;
|
|
||||||
"8")
|
|
||||||
setprop vendor.panel.display 8
|
|
||||||
;;
|
|
||||||
"9")
|
|
||||||
setprop vendor.panel.display 9
|
|
||||||
;;
|
|
||||||
"@")
|
|
||||||
setprop vendor.panel.display 10
|
|
||||||
;;
|
|
||||||
"A")
|
|
||||||
setprop vendor.panel.display 11
|
|
||||||
;;
|
|
||||||
"B")
|
|
||||||
setprop vendor.panel.display 12
|
|
||||||
;;
|
|
||||||
"E")
|
|
||||||
setprop vendor.panel.display 6
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
setprop vendor.panel.display UNKNOWN
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
case "$touch_vendor" in
|
|
||||||
"1")
|
|
||||||
setprop vendor.panel.touch_vendor 1
|
|
||||||
;;
|
|
||||||
"2")
|
|
||||||
setprop vendor.panel.touch_vendor 2
|
|
||||||
;;
|
|
||||||
"3")
|
|
||||||
setprop vendor.panel.touch_vendor 3
|
|
||||||
;;
|
|
||||||
"4")
|
|
||||||
setprop vendor.panel.touch_vendor 4
|
|
||||||
;;
|
|
||||||
"5")
|
|
||||||
setprop vendor.panel.touch_vendor 5
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
setprop vendor.panel.touch_vendor UNKNOWN
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
# Copyright (c) 2023 Xiaomi, Inc.
|
|
||||||
# All Rights Reserved.
|
|
||||||
# Confidential and Proprietary - Xiaomi, Inc.
|
|
||||||
#
|
|
||||||
on post-fs-data
|
|
||||||
mkdir /data/vendor/mqsas_common 0771 system system
|
|
||||||
mkdir /data/vendor/touch 0771 system system
|
|
||||||
on boot
|
|
||||||
chown system system /dev/xiaomi-touch
|
|
||||||
chmod 0666 /dev/xiaomi-touch
|
|
||||||
chown system system /dev/xiaomi-touch-knock
|
|
||||||
chmod 0664 /dev/xiaomi-touch-knock
|
|
||||||
chown system system /dev/xiaomi-thp
|
|
||||||
chmod 0664 /dev/xiaomi-thp
|
|
||||||
chown system system /sys/class/touch/tp_dev/fod_status
|
|
||||||
chmod 0664 /sys/class/touch/tp_dev/fod_status
|
|
||||||
chown system system /sys/class/touch/touch_dev/gesture_single_tap_state
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/gesture_single_tap_state
|
|
||||||
chown system system /sys/class/touch/touch_dev/fod_press_status
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/fod_press_status
|
|
||||||
chown system system /proc/tp_selftest
|
|
||||||
chmod 0664 /proc/tp_selftest
|
|
||||||
chown system system /proc/tp_selftest_1
|
|
||||||
chmod 0664 /proc/tp_selftest_1
|
|
||||||
chown system system /sys/class/touch/touch_dev/clicktouch_raw
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/clicktouch_raw
|
|
||||||
chown system system /sys/class/touch/touch_dev/update_rawdata
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/update_rawdata
|
|
||||||
chown system system /sys/class/touch/touch_dev/enable_touch_raw
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/enable_touch_raw
|
|
||||||
chown system system /sys/class/touch/touch_dev/resolution_factor
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/resolution_factor
|
|
||||||
chown system system /sys/class/touch/touch_dev/enable_touch_delta
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/enable_touch_delta
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_dump
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_dump
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_cmd
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_cmd
|
|
||||||
chown system system /sys/class/touch/touch_dev/suspend_state
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/suspend_state
|
|
||||||
chown system system /sys/class/touch/touch_dev/prox_sensor_data
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/prox_sensor_data
|
|
||||||
chown system system /sys/class/touch/touch_dev/prox_sensor
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/prox_sensor
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_rx_num
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_rx_num
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_tx_num
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_tx_num
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_x_resolution
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_x_resolution
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_y_resolution
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_y_resolution
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_smooth
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_smooth
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_noisefilter
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_noisefilter
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_downthd
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_downthd
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_upthd
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_upthd
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_movethd
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_movethd
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_islandthd
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_islandthd
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_cmd_data
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_cmd_data
|
|
||||||
chown system system /sys/class/touch/touch_dev/palm_sensor_data
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/palm_sensor_data
|
|
||||||
chown system system /sys/class/touch/touch_dev/palm_sensor
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/palm_sensor
|
|
||||||
chown system system /sys/class/touch/touch_dev/hold_sensor
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/hold_sensor
|
|
||||||
chown system system /proc/tp_fw_version
|
|
||||||
chmod 0664 /proc/tp_fw_version
|
|
||||||
chown system system /proc/tp_lockdown_info
|
|
||||||
chmod 0664 /proc/tp_lockdown_info
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_active_status
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_active_status
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_finger_status
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_finger_status
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_irq_no
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_irq_no
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_sensor
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_sensor
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_sensor_ctrl
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_sensor_ctrl
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_mem_notify
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_mem_notify
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_testmode
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_testmode
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_testresult
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_testresult
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_preset_point
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_preset_point
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_doze_analysis
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_doze_analysis
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_cmd_ready
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_cmd_ready
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_ic_buffer
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_ic_buffer
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/abnormal_event
|
|
||||||
chown system system /sys/class/touch/touch_dev/abnormal_event
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_ic_cmd
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_ic_cmd
|
|
||||||
chown system system /sys/class/touch/touch_dev/touch_thp_ic_cmd_data
|
|
||||||
chmod 0664 /sys/class/touch/touch_dev/touch_thp_ic_cmd_data
|
|
||||||
|
|
||||||
|
|
||||||
on charger
|
|
||||||
write /sys/class/touch/touch_dev/touch_doze_analysis 6
|
|
||||||
|
|
||||||
service touchfeature-service /odm/bin/hw/vendor.xiaomi.hw.touchfeature-service
|
|
||||||
interface aidl vendor.xiaomi.hw.touchfeature.ITouchFeature/default
|
|
||||||
class hal
|
|
||||||
user system
|
|
||||||
group system system input
|
|
||||||
capabilities SYS_NICE
|
|
||||||
ioprio rt 4
|
|
||||||
|
|
||||||
|
|
||||||
service toucheventcheck /odm/bin/toucheventcheck
|
|
||||||
class main
|
|
||||||
user root
|
|
||||||
group system
|
|
||||||
oneshot
|
|
||||||
|
|
||||||
service panel-info-sh /system/vendor/bin/sh /odm/etc/init.panel_info.sh
|
|
||||||
class core
|
|
||||||
user root
|
|
||||||
oneshot
|
|
||||||
group root system
|
|
||||||
seclabel u:r:vendor_touch_init_shell:s0
|
|
||||||
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
<manifest version="1.0" type="device">
|
|
||||||
<hal format="aidl">
|
|
||||||
<name>vendor.xiaomi.hw.touchfeature</name>
|
|
||||||
<interface>
|
|
||||||
<name>ITouchFeature</name>
|
|
||||||
<instance>default</instance>
|
|
||||||
</interface>
|
|
||||||
</hal>
|
|
||||||
</manifest>
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user