From cc1a67274cc608e1f7f5cbaa08f7bec90fafdeb3 Mon Sep 17 00:00:00 2001 From: Jaap Jan Meijer Date: Thu, 28 Jul 2016 18:05:20 +0200 Subject: [PATCH] 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. --- init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.11.0