device/generic/common
Revision | 5ed42415c8d23e0b0d1f10240c78eb8232058090 (tree) |
---|---|
Time | 2016-10-19 01:40:33 |
Author | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Merge remote-tracking branch 'x86/marshmallow-x86' into nougat-x86
@@ -168,6 +168,7 @@ function init_hal_sensors() | ||
168 | 168 | [ -f /system/lib/hw/sensors.${ro_hardware}.so ] && return 0 |
169 | 169 | |
170 | 170 | local hal_sensors=kbd |
171 | + local has_sensors=true | |
171 | 172 | case "$(cat $DMIPATH/uevent)" in |
172 | 173 | *Lucid-MWE*) |
173 | 174 | set_property ro.ignore_atkbd 1 |
@@ -235,6 +236,7 @@ function init_hal_sensors() | ||
235 | 236 | set_property hal.sensors.iio.accel.matrix 0,1,0,1,0,0,0,0,-1 |
236 | 237 | ;; |
237 | 238 | *) |
239 | + has_sensors=false | |
238 | 240 | ;; |
239 | 241 | esac |
240 | 242 |
@@ -247,6 +249,8 @@ function init_hal_sensors() | ||
247 | 249 | fi |
248 | 250 | |
249 | 251 | set_property ro.hardware.sensors $hal_sensors |
252 | + [ "$hal_sensors" != "kbd" ] && has_sensors=true | |
253 | + set_property config.override_forced_orient $has_sensors | |
250 | 254 | } |
251 | 255 | |
252 | 256 | function create_pointercal() |
@@ -69,4 +69,9 @@ | ||
69 | 69 | <!-- When true use the linux /dev/input/event subsystem to detect the switch changes |
70 | 70 | on the headphone/microphone jack. When false use the older uevent framework. --> |
71 | 71 | <bool name="config_useDevInputEventForAudioJack">true</bool> |
72 | + | |
73 | + <!-- Flag indicating that this device does not rotate and will always remain in its default | |
74 | + orientation. Activities that desire to run in a non-compatible orientation will be run | |
75 | + from an emulated display within the physical display. --> | |
76 | + <bool name="config_forceDefaultOrientation">true</bool> | |
72 | 77 | </resources> |