device/generic/common
Revisión | 341fdf9badbddd3cab563c03519ab7a8e220e169 (tree) |
---|---|
Tiempo | 2018-02-06 14:22:40 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Android-x86 7.1-r1 release (20180206)
@@ -6,3 +6,4 @@ none /cache tmpfs nosuid,nodev,noatime defaults | ||
6 | 6 | /devices/*/*sdmmc*/* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata |
7 | 7 | /devices/*/80860F14:01/mmc_* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata |
8 | 8 | /devices/*/80860F14:02/mmc_* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata |
9 | +/devices/*/PNP0FFF:00/mmc_* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata |
@@ -1,5 +1,5 @@ | ||
1 | 1 | # |
2 | -# Copyright (C) 2013-2015 The Android-x86 Open Source Project | |
2 | +# Copyright (C) 2013-2018 The Android-x86 Open Source Project | |
3 | 3 | # |
4 | 4 | # License: GNU Public License v2 or later |
5 | 5 | # |
@@ -10,6 +10,11 @@ function set_property() | ||
10 | 10 | [ -n "$DEBUG" ] && echo "$1"="$2" >> /dev/x86.prop |
11 | 11 | } |
12 | 12 | |
13 | +function set_prop_if_empty() | |
14 | +{ | |
15 | + [ -z "$(getprop $1)" ] && set_property "$1" "$2" | |
16 | +} | |
17 | + | |
13 | 18 | function init_misc() |
14 | 19 | { |
15 | 20 | # device information |
@@ -53,7 +58,6 @@ function init_hal_bluetooth() | ||
53 | 58 | T10*TA|HP*Omni*) |
54 | 59 | BTUART_PORT=/dev/ttyS1 |
55 | 60 | set_property hal.bluetooth.uart.proto bcm |
56 | - [ -z "$(getprop sleep.state)" ] && set_property sleep.state none | |
57 | 61 | ;; |
58 | 62 | MacBookPro8*) |
59 | 63 | rmmod b43 |
@@ -142,6 +146,7 @@ function init_hal_gralloc() | ||
142 | 146 | set_property ro.hardware.hwcomposer drm |
143 | 147 | set_property ro.hardware.gralloc gbm |
144 | 148 | fi |
149 | + set_prop_if_empty sleep.state none | |
145 | 150 | ;; |
146 | 151 | 0*inteldrmfb|0*radeondrmfb|0*nouveaufb|0*svgadrmfb|0*amdgpudrmfb) |
147 | 152 | if [ "$HWACCEL" != "0" ]; then |
@@ -178,6 +183,9 @@ function init_hal_power() | ||
178 | 183 | |
179 | 184 | # TODO |
180 | 185 | case "$PRODUCT" in |
186 | + HP*Omni*|OEMB|Surface*3|T10*TA) | |
187 | + set_prop_if_empty sleep.state none | |
188 | + ;; | |
181 | 189 | *) |
182 | 190 | ;; |
183 | 191 | esac |
@@ -97,3 +97,4 @@ PRODUCT_PACKAGES += \ | ||
97 | 97 | # Third party apps |
98 | 98 | PRODUCT_PACKAGES += \ |
99 | 99 | Eleven \ |
100 | + TSCalibration2 \ |