device/generic/common
リビジョン | 898f2d8cd1516de0a59e36890974c96cb66d1d92 (tree) |
---|---|
日時 | 2018-01-01 14:38:11 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
コミッター | Chih-Wei Huang |
init.sh: switch to android-iio-sensors-hal of 01.org
Intel doesn't maintain the old libsensors. Drop it.
Switch to the new android-iio-sensors-hal which is also
developed by Intel.
@@ -257,6 +257,13 @@ function init_hal_sensors() | ||
257 | 257 | *ONDATablet*) |
258 | 258 | set_property hal.sensors.iio.accel.matrix 0,1,0,1,0,0,0,0,-1 |
259 | 259 | ;; |
260 | + *Surface.3*|*svnOEMB*) | |
261 | + set_property ro.iio.accel.y.opt_scale -1 | |
262 | + ;& | |
263 | + *T10*TA*) | |
264 | + set_property ro.iio.accel.x.opt_scale -1 | |
265 | + set_property ro.iio.accel.z.opt_scale -1 | |
266 | + ;; | |
260 | 267 | *) |
261 | 268 | has_sensors=false |
262 | 269 | ;; |
@@ -265,7 +272,7 @@ function init_hal_sensors() | ||
265 | 272 | # has iio sensor-hub? |
266 | 273 | if [ -n "`ls /sys/bus/iio/devices/iio:device* 2> /dev/null`" ]; then |
267 | 274 | busybox chown -R 1000.1000 /sys/bus/iio/devices/iio:device*/ |
268 | - lsmod | grep -q hid_sensor_accel_3d && hal_sensors=hsb || hal_sensors=iio | |
275 | + hal_sensors=iio | |
269 | 276 | elif lsmod | grep -q lis3lv02d_i2c; then |
270 | 277 | hal_sensors=hdaps |
271 | 278 | fi |
@@ -53,7 +53,6 @@ PRODUCT_PACKAGES := \ | ||
53 | 53 | power.x86 \ |
54 | 54 | rtk_hciattach \ |
55 | 55 | scp \ |
56 | - sensors.hsb \ | |
57 | 56 | sftp \ |
58 | 57 | ssh \ |
59 | 58 | sshd \ |