[ -f /system/lib/hw/sensors.${ro_hardware}.so ] && return 0
local hal_sensors=kbd
+ local has_sensors=true
case "$(cat $DMIPATH/uevent)" in
*Lucid-MWE*)
set_property ro.ignore_atkbd 1
set_property hal.sensors.iio.accel.matrix 0,1,0,1,0,0,0,0,-1
;;
*)
+ has_sensors=false
;;
esac
fi
set_property ro.hardware.sensors $hal_sensors
+ [ "$hal_sensors" != "kbd" ] && has_sensors=true
+ set_property config.override_forced_orient $has_sensors
}
function create_pointercal()
<!-- When true use the linux /dev/input/event subsystem to detect the switch changes
on the headphone/microphone jack. When false use the older uevent framework. -->
<bool name="config_useDevInputEventForAudioJack">true</bool>
+
+ <!-- Flag indicating that this device does not rotate and will always remain in its default
+ orientation. Activities that desire to run in a non-compatible orientation will be run
+ from an emulated display within the physical display. -->
+ <bool name="config_forceDefaultOrientation">true</bool>
</resources>