From: Jaap Jan Meijer Date: Thu, 28 Jul 2016 16:05:20 +0000 (+0200) Subject: init: Fix sensors never detected when not available at first boot X-Git-Tag: android-x86-6.0-r1~8 X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fdevice-generic-common.git;a=commitdiff_plain;h=cc1a67274cc608e1f7f5cbaa08f7bec90fafdeb3 init: Fix sensors never detected when not available at first boot It's possible that no sensors are available at first boot. By default they will not be checked again, with this patch Android will check every boot. --- diff --git a/init.sh b/init.sh index caec377..3bf7051 100644 --- a/init.sh +++ b/init.sh @@ -236,7 +236,7 @@ function init_hal_sensors() elif lsmod | grep -q lis3lv02d_i2c; then hal_sensors=hdaps fi - + set_property persist.sys.sensors.iio.present 1 set_property ro.hardware.sensors $hal_sensors }