nx: Use TARGET_TEGRA_SENSORS

* iio is now supported in tegra-common.

Change-Id: Ib3fa9d7e01fd0fc5816c97289a4977b42bfb4008
This commit is contained in:
Nolen Johnson committed 2025-09-20 22:15:47 -04:00
1 parent 0d479c9eba
commit 9339bc54f2
4 files changed
+2 -25

No files matched your search

-1
View File
@@ -44,7 +44,6 @@ TARGET_BOARD_INFO_FILE := device/nintendo/nx/board-info.txt
# Manifest
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += device/nintendo/nx/manifests/device_framework_matrix.xml
DEVICE_MANIFEST_FILE := device/nintendo/nx/manifests/manifest.xml
# Bluetooth
TARGET_VENDOR_PROP += device/nintendo/nx/bluetooth.prop
+2 -11
View File
@@ -25,6 +25,8 @@ TARGET_TEGRA_LIGHT ?= lineage
TARGET_TEGRA_MAN_LVL := 5
TARGET_TEGRA_MEMTRACK ?= rel-shield-r
TARGET_TEGRA_POWER := perfmgr
TARGET_TEGRA_SENSORS := iio
TARGET_TEGRA_SENSOR_FEATURES := accelerometer gyroscope light
TARGET_TEGRA_THERMAL ?= lineage
TARGET_TEGRA_UBOOT := prebuilt
TARGET_TEGRA_WIDEVINE ?= rel-shield-r
@@ -185,17 +187,6 @@ endif
# Recovery
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += persist.vendor.recovery_update=true
# Sensors
PRODUCT_PACKAGES += \
android.hardware.sensors@1.0-service \
android.hardware.sensors@1.0-impl \
sensors.iio
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml
# Shipping API
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_l.mk)
-2
View File
@@ -17,8 +17,6 @@
# props are cut to 31.
on init
setprop ro.hardware.sensors iio
# Force polling mode for accel and gyro
setprop ro.iio.accel.quirks no-trig,no-event
setprop ro.iio.anglvel.quirks no-trig,no-event
-11
View File
@@ -1,11 +0,0 @@
<manifest version="1.0" type="device" target-level="5">
<hal format="hidl">
<name>android.hardware.sensors</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ISensors</name>
<instance>default</instance>
</interface>
</hal>
</manifest>