device/generic/common
Revisão | fd32cdb5c6aed3e3f755f79e6ffd50da03832790 (tree) |
---|---|
Hora | 2019-10-16 19:25:41 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Merge remote-tracking branch 'x86/pie-x86' into q-x86
@@ -87,5 +87,7 @@ ZIP_OPTIMIZATION_NO_INTEGRITY := true | ||
87 | 87 | |
88 | 88 | DEVICE_MANIFEST_FILE := device/generic/common/manifest.xml |
89 | 89 | |
90 | -BOARD_SEPOLICY_DIRS += device/generic/common/sepolicy \ | |
90 | +BOARD_SEPOLICY_DIRS += device/generic/common/sepolicy/nonplat \ | |
91 | 91 | system/bt/vendor_libs/linux/sepolicy \ |
92 | + | |
93 | +BOARD_PLAT_PRIVATE_SEPOLICY_DIR := device/generic/common/sepolicy/plat_private |
@@ -105,14 +105,6 @@ endif | ||
105 | 105 | |
106 | 106 | $(BUILT_SYSTEMIMAGE): $(KERNEL_MODULES_DEP) |
107 | 107 | |
108 | -# rules to get source of Broadcom 802.11a/b/g/n hybrid device driver | |
109 | -# based on broadcomsetup.sh of Kyle Evans | |
110 | -WL_PATH := $(KERNEL_DIR)/drivers/net/wireless/broadcom/wl | |
111 | -ifeq ($(wildcard $(WL_PATH)/build.mk),) | |
112 | -WL_PATH := $(KERNEL_DIR)/drivers/net/wireless/wl | |
113 | -endif | |
114 | --include $(WL_PATH)/build.mk | |
115 | - | |
116 | 108 | installclean: FILES += $(KBUILD_OUTPUT) $(INSTALLED_KERNEL_TARGET) |
117 | 109 | |
118 | 110 | TARGET_PREBUILT_KERNEL := $(BUILT_KERNEL_TARGET) |
@@ -321,6 +321,9 @@ function init_hal_sensors() | ||
321 | 321 | set_property ro.iio.accel.x.opt_scale -1 |
322 | 322 | set_property ro.iio.accel.y.opt_scale -1 |
323 | 323 | ;; |
324 | + *SP111-33*) | |
325 | + set_property ro.iio.accel.quirks no-trig | |
326 | + ;& | |
324 | 327 | *ST70416-6*) |
325 | 328 | set_property ro.iio.accel.order 102 |
326 | 329 | ;; |
@@ -13,6 +13,11 @@ urls[3]=http://tinyurl.com/y3nagyza | ||
13 | 13 | urls[4]=http://tinyurl.com/y6azmjas |
14 | 14 | urls[5]=http://tinyurl.com/y6g6cx27 |
15 | 15 | |
16 | +mount_sfs() | |
17 | +{ | |
18 | + mount -o 'context="u:object_r:system_file:s0"' $1 $2 | |
19 | +} | |
20 | + | |
16 | 21 | if [ -z "$1" ]; then |
17 | 22 | v=9_y |
18 | 23 | u=1 |
@@ -24,7 +29,7 @@ fi | ||
24 | 29 | if [ -s /system/lib$1/libhoudini.so ]; then |
25 | 30 | log -pi -thoudini "found /system/lib$1/libhoudini.so" |
26 | 31 | elif [ -e /system/etc/houdini$v.sfs ]; then |
27 | - mount /system/etc/houdini$v.sfs $dest_dir | |
32 | + mount_sfs /system/etc/houdini$v.sfs $dest_dir | |
28 | 33 | else |
29 | 34 | if mountpoint -q $dest_dir; then |
30 | 35 | kill -9 `fuser -m $dest_dir` |
@@ -32,7 +37,7 @@ else | ||
32 | 37 | fi |
33 | 38 | mkdir -p /data/arm |
34 | 39 | cd /data/arm |
35 | - while ! mount houdini$v.sfs $dest_dir; do | |
40 | + while ! mount_sfs houdini$v.sfs $dest_dir; do | |
36 | 41 | while [ "$(getprop net.dns1)" = "" ]; do |
37 | 42 | sleep 10 |
38 | 43 | done |
@@ -0,0 +1,3 @@ | ||
1 | +# surfaceflinger | |
2 | +/dev/dri(/.*)? u:object_r:gpu_device:s0 | |
3 | +/dev/tty0 u:object_r:gpu_device:s0 |
@@ -0,0 +1,24 @@ | ||
1 | +allow surfaceflinger surfaceflinger_tmpfs:file { map }; | |
2 | +allow surfaceflinger tmpfs:lnk_file { read }; | |
3 | +allow surfaceflinger self:capability { sys_tty_config }; | |
4 | + | |
5 | +allowxperm surfaceflinger gpu_device:chr_file ioctl { | |
6 | + 0x5605 | |
7 | + 0x6409 | |
8 | + 0x640a | |
9 | + 0x640b | |
10 | + 0x641e | |
11 | + 0x641f | |
12 | + 0x6457 | |
13 | + 0x6458 | |
14 | + 0x645b | |
15 | + 0x645e | |
16 | + 0x645f | |
17 | + 0x6461 | |
18 | + 0x6462 | |
19 | + 0x6469 | |
20 | + 0x6466 | |
21 | + 0x646c | |
22 | + 0x64a2 | |
23 | + 0x64b0 | |
24 | +}; |
@@ -0,0 +1,2 @@ | ||
1 | +allow zygote surfaceflinger:binder call; | |
2 | +allow zygote surfaceflinger:unix_stream_socket { read }; |