Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

device-generic-common: Commit

device/generic/common


Commit MetaInfo

Revision5ed42415c8d23e0b0d1f10240c78eb8232058090 (tree)
Time2016-10-19 01:40:33
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Merge remote-tracking branch 'x86/marshmallow-x86' into nougat-x86

Change Summary

Incremental Difference

--- a/init.sh
+++ b/init.sh
@@ -168,6 +168,7 @@ function init_hal_sensors()
168168 [ -f /system/lib/hw/sensors.${ro_hardware}.so ] && return 0
169169
170170 local hal_sensors=kbd
171+ local has_sensors=true
171172 case "$(cat $DMIPATH/uevent)" in
172173 *Lucid-MWE*)
173174 set_property ro.ignore_atkbd 1
@@ -235,6 +236,7 @@ function init_hal_sensors()
235236 set_property hal.sensors.iio.accel.matrix 0,1,0,1,0,0,0,0,-1
236237 ;;
237238 *)
239+ has_sensors=false
238240 ;;
239241 esac
240242
@@ -247,6 +249,8 @@ function init_hal_sensors()
247249 fi
248250
249251 set_property ro.hardware.sensors $hal_sensors
252+ [ "$hal_sensors" != "kbd" ] && has_sensors=true
253+ set_property config.override_forced_orient $has_sensors
250254 }
251255
252256 function create_pointercal()
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -69,4 +69,9 @@
6969 <!-- When true use the linux /dev/input/event subsystem to detect the switch changes
7070 on the headphone/microphone jack. When false use the older uevent framework. -->
7171 <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>
7277 </resources>
Show on old repository browser