OSDN Git Service

init.sh: switch to android-iio-sensors-hal of 01.org
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 1 Jan 2018 05:38:11 +0000 (13:38 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 1 Jan 2018 05:38:11 +0000 (13:38 +0800)
Intel doesn't maintain the old libsensors. Drop it.

Switch to the new android-iio-sensors-hal which is also
developed by Intel.

init.sh
packages.mk

diff --git a/init.sh b/init.sh
index 6b41a50..c92f375 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -257,6 +257,13 @@ function init_hal_sensors()
                *ONDATablet*)
                        set_property hal.sensors.iio.accel.matrix 0,1,0,1,0,0,0,0,-1
                        ;;
+               *Surface.3*|*svnOEMB*)
+                       set_property ro.iio.accel.y.opt_scale -1
+                       ;&
+               *T10*TA*)
+                       set_property ro.iio.accel.x.opt_scale -1
+                       set_property ro.iio.accel.z.opt_scale -1
+                       ;;
                *)
                        has_sensors=false
                        ;;
@@ -265,7 +272,7 @@ function init_hal_sensors()
        # has iio sensor-hub?
        if [ -n "`ls /sys/bus/iio/devices/iio:device* 2> /dev/null`" ]; then
                busybox chown -R 1000.1000 /sys/bus/iio/devices/iio:device*/
-               lsmod | grep -q hid_sensor_accel_3d && hal_sensors=hsb || hal_sensors=iio
+               hal_sensors=iio
        elif lsmod | grep -q lis3lv02d_i2c; then
                hal_sensors=hdaps
        fi
index 661d329..3dd2df8 100644 (file)
@@ -53,7 +53,6 @@ PRODUCT_PACKAGES := \
     power.x86 \
     rtk_hciattach \
     scp \
-    sensors.hsb \
     sftp \
     ssh \
     sshd \