summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPraneeth Bajjuri2016-07-18 22:19:12 -0500
committerPraneeth Bajjuri2016-07-18 22:19:12 -0500
commit4b3e49526997eef1c271ce86d62a5daab6b09ced (patch)
tree62579deb1d7a76d2f460f20bfde69ab66330125d
parentc1df3749380adff283fa4d0c232bd8c76c80111e (diff)
parent7c4e82eafb1a019dfa4e03b16d7818f93aa51420 (diff)
downloaddevice-ti-jacinto6evm-d-marshmallow-release.tar.gz
device-ti-jacinto6evm-d-marshmallow-release.tar.xz
device-ti-jacinto6evm-d-marshmallow-release.zip
Merge branch 'd-marshmallow-mr2-release' of git://git.omapzoom.org/device/ti/jacinto6evm into d-marshmallow-released-marshmallow-release
* 'd-marshmallow-mr2-release' of git://git.omapzoom.org/device/ti/jacinto6evm: jacinto6evm: update fastboot script for J6 ECO Rev C jacinto6evm: add modetest to product packages media_codecs.xml: Publish AdaptivePlayback feature for AVC decoder jacinto6evm: correct typo in usb rc file jacinto6evm: fastboot: fix board_rev handling jacinto6evm: fastboot: enable qspi flashing jacinto6evm: add BOARD_GPU_DRIVERS jacinto6evm: sepolicy: update crda rule for kernel4.4 jacinto6evm: sepolicy: updates for configFS jacinto6evm: enable configFS based adb jacinto6evm: media_codecs.xml: Define Limits for each mime type jacinto6evm: update fastboot script for latest u-boot jacinto6evm: remove dummy wake_lock jacinto6evm: sepolicy: update block device names jacinto6evm: fstab: update for Kernel 4.4 jacinto6evm: media_codecs: Add attributes for HW Codecs jacinto6evm: update fastboot script for Kernel 4.4 TEMP: jacinto6evm: disable bluetooth jacinto6evm: configure cpusets for J6 and J6 Eco Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
-rw-r--r--BoardConfig.mk5
-rw-r--r--device.mk7
-rwxr-xr-xfastboot.sh10
-rw-r--r--fstab.jacinto6evmboard6
-rwxr-xr-xinit.jacinto6evmboard.cpuset.sh5
-rw-r--r--init.jacinto6evmboard.rc6
-rw-r--r--init.jacinto6evmboard.usb.rc127
-rw-r--r--media_codecs.xml52
-rw-r--r--sepolicy/file.te2
-rw-r--r--sepolicy/file_contexts8
-rw-r--r--sepolicy/genfs_contexts1
-rw-r--r--sepolicy/init.te5
-rw-r--r--sepolicy/ueventd.te2
13 files changed, 126 insertions, 110 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index a9f24b2..2cbfdb9 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -31,6 +31,8 @@ TARGET_ARCH := arm
31TARGET_ARCH_VARIANT := armv7-a-neon 31TARGET_ARCH_VARIANT := armv7-a-neon
32TARGET_CPU_VARIANT := cortex-a15 32TARGET_CPU_VARIANT := cortex-a15
33 33
34ENABLE_CPUSETS := true
35
34BOARD_HAVE_BLUETOOTH := true 36BOARD_HAVE_BLUETOOTH := true
35BOARD_HAVE_BLUETOOTH_TI := true 37BOARD_HAVE_BLUETOOTH_TI := true
36BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/ti/jacinto6evm/bluetooth 38BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/ti/jacinto6evm/bluetooth
@@ -74,3 +76,6 @@ COMMON_GLOBAL_CFLAGS += -DANDROID_LIB_STUB
74endif 76endif
75 77
76BOARD_SEPOLICY_DIRS := device/ti/jacinto6evm/sepolicy 78BOARD_SEPOLICY_DIRS := device/ti/jacinto6evm/sepolicy
79
80# lidbrm driver
81BOARD_GPU_DRIVERS := omapdrm
diff --git a/device.mk b/device.mk
index 145f730..70d2c42 100644
--- a/device.mk
+++ b/device.mk
@@ -51,6 +51,10 @@ PRODUCT_COPY_FILES += \
51 device/ti/jacinto6evm/audio/jamr3/jamr3_mixer_paths.xml:system/etc/jamr3_mixer_paths.xml \ 51 device/ti/jacinto6evm/audio/jamr3/jamr3_mixer_paths.xml:system/etc/jamr3_mixer_paths.xml \
52 device/ti/jacinto6evm/audio/audio_policy.conf:system/etc/audio_policy.conf 52 device/ti/jacinto6evm/audio/audio_policy.conf:system/etc/audio_policy.conf
53 53
54# cpuset configuration
55PRODUCT_COPY_FILES += \
56 device/ti/jacinto6evm/init.jacinto6evmboard.cpuset.sh:system/bin/init.jacinto6evmboard.cpuset.sh
57
54PRODUCT_PROPERTY_OVERRIDES := \ 58PRODUCT_PROPERTY_OVERRIDES := \
55 hwui.render_dirty_regions=false 59 hwui.render_dirty_regions=false
56 60
@@ -94,6 +98,7 @@ PRODUCT_PACKAGES += \
94 iontest \ 98 iontest \
95 ion_ti_test2 \ 99 ion_ti_test2 \
96 vpetest \ 100 vpetest \
101 modetest \
97 libdrm 102 libdrm
98 103
99# Audio HAL modules 104# Audio HAL modules
@@ -127,7 +132,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
127 132
128$(call inherit-product, frameworks/native/build/tablet-7in-hdpi-1024-dalvik-heap.mk) 133$(call inherit-product, frameworks/native/build/tablet-7in-hdpi-1024-dalvik-heap.mk)
129$(call inherit-product-if-exists, hardware/ti/dra7xx/jacinto6.mk) 134$(call inherit-product-if-exists, hardware/ti/dra7xx/jacinto6.mk)
130$(call inherit-product-if-exists, hardware/ti/wpan/ti-wpan-products.mk) 135#$(call inherit-product-if-exists, hardware/ti/wpan/ti-wpan-products.mk)
131$(call inherit-product-if-exists, device/ti/proprietary-open/jacinto6/ti-jacinto6-vendor.mk) 136$(call inherit-product-if-exists, device/ti/proprietary-open/jacinto6/ti-jacinto6-vendor.mk)
132$(call inherit-product-if-exists, device/ti/proprietary-open/jacinto6/ducati-full_jacinto6evm.mk) 137$(call inherit-product-if-exists, device/ti/proprietary-open/jacinto6/ducati-full_jacinto6evm.mk)
133$(call inherit-product-if-exists, device/ti/proprietary-open/wl12xx/wlan/wl12xx-wlan-fw-products.mk) 138$(call inherit-product-if-exists, device/ti/proprietary-open/wl12xx/wlan/wl12xx-wlan-fw-products.mk)
diff --git a/fastboot.sh b/fastboot.sh
index 77449dd..cd8cf45 100755
--- a/fastboot.sh
+++ b/fastboot.sh
@@ -63,13 +63,13 @@ fi
63#product=`${FASTBOOT} getvar product 2>&1 | grep product | awk '{print$2}'` 63#product=`${FASTBOOT} getvar product 2>&1 | grep product | awk '{print$2}'`
64cpu=`${FASTBOOT} getvar cpu 2>&1 | grep cpu | awk '{print$2}'` 64cpu=`${FASTBOOT} getvar cpu 2>&1 | grep cpu | awk '{print$2}'`
65cputype=`${FASTBOOT} getvar secure 2>&1 | grep secure | awk '{print$2}'` 65cputype=`${FASTBOOT} getvar secure 2>&1 | grep secure | awk '{print$2}'`
66boardrev=`${FASTBOOT} getvar board_rev 2>&1 | grep board_rev | awk '{print$2}'` 66boardrev=`${FASTBOOT} getvar board_rev 2>&1 | grep board_rev | awk '{print$2}' | cut -b 1`
67 67
68 68
69# Make EMU = HS 69# Make EMU = HS
70if [ ${cputype} = "EMU" ] || [ ${cputype} = "HS" ]; then 70if [ ${cputype} = "EMU" ] || [ ${cputype} = "HS" ]; then
71 cputype="HS" 71 cputype="HS"
72 xloader="${PRODUCT_OUT}${cputype}_QSPI_MLO" 72 xloader="${PRODUCT_OUT}u-boot-spl_HS_X-LOADER"
73 uboot="${PRODUCT_OUT}${cputype}_u-boot.img" 73 uboot="${PRODUCT_OUT}${cputype}_u-boot.img"
74# If fastboot does not support getvar default to GP 74# If fastboot does not support getvar default to GP
75elif [ ${cputype} = "" ] || [ ${cputype} = "GP" ]; then 75elif [ ${cputype} = "" ] || [ ${cputype} = "GP" ]; then
@@ -81,15 +81,15 @@ fi
81# Based on cpu, decide the dtb to flash, default fall back to J6 and LCD 10 81# Based on cpu, decide the dtb to flash, default fall back to J6 and LCD 10
82if [ ${cpu} = "J6ECO" ]; then 82if [ ${cpu} = "J6ECO" ]; then
83 if [ ${boardrev} = "C" ]; then 83 if [ ${boardrev} = "C" ]; then
84 environment="${PRODUCT_OUT}dra72-evm-lcd-osd.dtb" 84 environment="${PRODUCT_OUT}dra72-evm-revc-lcd-osd101t2045.dtb"
85 else 85 else
86 environment="${PRODUCT_OUT}dra72-evm-lcd10.dtb" 86 environment="${PRODUCT_OUT}dra72-evm-lcd-lg.dtb"
87 fi 87 fi
88else 88else
89 if [ ${boardrev} = "H" ]; then 89 if [ ${boardrev} = "H" ]; then
90 environment="${PRODUCT_OUT}dra7-evm-lcd-osd.dtb" 90 environment="${PRODUCT_OUT}dra7-evm-lcd-osd.dtb"
91 else 91 else
92 environment="${PRODUCT_OUT}dra7-evm-lcd10.dtb" 92 environment="${PRODUCT_OUT}dra7-evm-lcd-lg.dtb"
93 fi 93 fi
94fi 94fi
95 95
diff --git a/fstab.jacinto6evmboard b/fstab.jacinto6evmboard
index 21fa0d2..cc19f84 100644
--- a/fstab.jacinto6evmboard
+++ b/fstab.jacinto6evmboard
@@ -9,6 +9,6 @@
9/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/userdata /data ext4 noatime,nosuid,nodev wait,check 9/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/userdata /data ext4 noatime,nosuid,nodev wait,check
10/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/recovery /recovery emmc defaults defaults 10/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/recovery /recovery emmc defaults defaults
11 11
12/devices/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb* auto auto defaults voldmanaged=usb0:auto 12/devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb* auto auto defaults voldmanaged=usb0:auto
13/devices/44000000.ocp/48880000.omap_dwc3_1/48890000.usb* auto auto defaults voldmanaged=usb1:auto 13/devices/platform/44000000.ocp/48880000.omap_dwc3_1/48890000.usb* auto auto defaults voldmanaged=usb1:auto
14/devices/44000000.ocp/4809c000.mmc/mmc_host* auto auto defaults voldmanaged=sdcard1:auto 14/devices/platform/44000000.ocp/4809c000.mmc/mmc_host* auto auto defaults voldmanaged=sdcard1:auto
diff --git a/init.jacinto6evmboard.cpuset.sh b/init.jacinto6evmboard.cpuset.sh
new file mode 100755
index 0000000..06f4177
--- /dev/null
+++ b/init.jacinto6evmboard.cpuset.sh
@@ -0,0 +1,5 @@
1#!/system/bin/sh
2
3# Assign all CPUs for foreground (J6 and J6 Eco have different number of cores)
4cat /sys/devices/system/cpu/present > /dev/cpuset/foreground/cpus
5cat /sys/devices/system/cpu/present > /dev/cpuset/foreground/boost/cpus
diff --git a/init.jacinto6evmboard.rc b/init.jacinto6evmboard.rc
index 67619b5..318d6f4 100644
--- a/init.jacinto6evmboard.rc
+++ b/init.jacinto6evmboard.rc
@@ -34,6 +34,9 @@ on post-fs-data
34 34
35on boot 35on boot
36 36
37 # execute script to set cpuset configuration
38 exec - root root system -- /system/bin/init.jacinto6evmboard.cpuset.sh
39
37 # wi-fi 40 # wi-fi
38 mkdir /data/misc/wifi/sockets 0770 wifi wifi 41 mkdir /data/misc/wifi/sockets 0770 wifi wifi
39 mkdir /data/misc/dhcp 0770 dhcp dhcp 42 mkdir /data/misc/dhcp 0770 dhcp dhcp
@@ -55,9 +58,6 @@ on fs
55 mkdir /factory 0775 radio radio 58 mkdir /factory 0775 radio radio
56 mount_all /fstab.jacinto6evmboard 59 mount_all /fstab.jacinto6evmboard
57 60
58# take a wakelock on boot until PM is working
59 write /sys/power/wake_lock hack
60
61service pvrsrvinit /vendor/bin/pvrsrvinit 61service pvrsrvinit /vendor/bin/pvrsrvinit
62 class core 62 class core
63 user root 63 user root
diff --git a/init.jacinto6evmboard.usb.rc b/init.jacinto6evmboard.usb.rc
index 850dad4..bc12a32 100644
--- a/init.jacinto6evmboard.usb.rc
+++ b/init.jacinto6evmboard.usb.rc
@@ -1,97 +1,56 @@
1on boot 1on boot
2 write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer} 2 mount configfs none /config
3 write /sys/class/android_usb/android0/iProduct ${ro.product.model} 3 mkdir /config/usb_gadget/g1 0770 shell shell
4 write /sys/class/android_usb/android0/iSerial ${ro.serialno} 4 write /config/usb_gadget/g1/idVendor 0x0451
5 write /sys/class/android_usb/android0/idVendor 0451 5 write /config/usb_gadget/g1/idProduct 0xD101
6 write /sys/class/android_usb/android0/idProduct D101 6 mkdir /config/usb_gadget/g1/strings/0x409 0770 shell shell
7 write /sys/class/android_usb/f_mass_storage/inquiry_string "Texas Instruments OMAP5 0100" 7 write /config/usb_gadget/g1/strings/0x409/manufacturer ${ro.product.manufacturer}
8 8 write /config/usb_gadget/g1/strings/0x409/product ${ro.product.model}
9on fs 9 write /config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno}
10 mkdir /config/usb_gadget/g1/configs/b.1 0770 shell shell
11 mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell
12 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "Conf 1"
13 write /config/usb_gadget/g1/configs/b.1/MaxPower 120
14
15 # Create adb+ffs gadget function
16 mkdir /config/usb_gadget/g1/functions/ffs.adb 0770 shell shell
10 mkdir /dev/usb-ffs 0770 shell shell 17 mkdir /dev/usb-ffs 0770 shell shell
11 mkdir /dev/usb-ffs/adb 0770 shell shell 18 mkdir /dev/usb-ffs/adb 0770 shell shell
12 mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000 19 mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
13 write /sys/class/android_usb/android0/f_ffs/aliases adb
14
15on property:sys.usb.config=none
16 stop adbd
17 write /sys/class/android_usb/android0/enable 0
18 write /sys/class/android_usb/android0/bDeviceClass 0
19 setprop sys.usb.state ${sys.usb.config}
20 20
21on property:sys.usb.config=adb 21 # Create MTP and PTP functions
22 write /sys/class/android_usb/android0/enable 0 22 mkdir /config/usb_gadget/g1/functions/mtp.gs0 0770 shell shell
23 write /sys/class/android_usb/android0/idVendor 0451 23 mkdir /config/usb_gadget/g1/functions/ptp.gs1 0770 shell shell
24 write /sys/class/android_usb/android0/idProduct D101
25 write /sys/class/android_usb/android0/functions ${sys.usb.config}
26 write /sys/class/android_usb/android0/enable 1
27 setprop sys.usb.state ${sys.usb.config}
28 24
29on property:sys.usb.config=mtp 25 setprop sys.usb.controller 48890000.usb
30 write /sys/class/android_usb/android0/enable 0 26 setprop sys.usb.configfs 1
31 write /sys/class/android_usb/android0/idVendor 0451
32 write /sys/class/android_usb/android0/idProduct D108
33 write /sys/class/android_usb/android0/functions ${sys.usb.config}
34 write /sys/class/android_usb/android0/enable 1
35 setprop sys.usb.state ${sys.usb.config}
36 27
37on property:sys.usb.config=mtp,adb 28on property:sys.usb.config=none && property:sys.usb.configfs=1
38 write /sys/class/android_usb/android0/enable 0 29 write /config/usb_gadget/g1/os_desc/use 0
39 write /sys/class/android_usb/android0/idVendor 0451 30 setprop sys.usb.ffs.ready 0
40 write /sys/class/android_usb/android0/idProduct D109
41 write /sys/class/android_usb/android0/functions ${sys.usb.config}
42 write /sys/class/android_usb/android0/enable 1
43 start adbd
44 setprop sys.usb.state ${sys.usb.config}
45 31
46on property:sys.usb.config=rndis 32on property:init.svc.adbd=stopped
47 write /sys/class/android_usb/android0/enable 0 33 setprop sys.usb.ffs.ready 0
48 write /sys/class/android_usb/android0/idVendor 0451
49 write /sys/class/android_usb/android0/idProduct D103
50 write /sys/class/android_usb/android0/functions ${sys.usb.config}
51 write /sys/class/android_usb/android0/bDeviceClass 224
52 write /sys/class/android_usb/android0/enable 1
53 setprop sys.usb.state ${sys.usb.config}
54 34
55on property:sys.usb.config=rndis,adb 35on property:sys.usb.config=mtp && property:sys.usb.configfs=1
56 write /sys/class/android_usb/android0/enable 0 36 write /config/usb_gadget/g1/functions/mtp.gs0/os_desc/interface.MTP/compatible_id "MTP"
57 write /sys/class/android_usb/android0/idVendor 0451 37 write /config/usb_gadget/g1/os_desc/use 1
58 write /sys/class/android_usb/android0/idProduct D104 38 write /config/usb_gadget/g1/idProduct 0xD108
59 write /sys/class/android_usb/android0/functions ${sys.usb.config}
60 write /sys/class/android_usb/android0/bDeviceClass 224
61 write /sys/class/android_usb/android0/enable 1
62 start adbd
63 setprop sys.usb.state ${sys.usb.config}
64 39
65on property:sys.usb.config=ptp 40on property:sys.usb.config=mtp,adb && property:sys.usb.configfs=1
66 write /sys/class/android_usb/android0/enable 0 41 write /config/usb_gadget/g1/functions/mtp.gs0/os_desc/interface.MTP/compatible_id "MTP"
67 write /sys/class/android_usb/android0/idVendor 0451 42 write /config/usb_gadget/g1/os_desc/use 1
68 write /sys/class/android_usb/android0/idProduct D10D 43 write /config/usb_gadget/g1/idProduct 0xD109
69 write /sys/class/android_usb/android0/functions ${sys.usb.config}
70 write /sys/class/android_usb/android0/enable 1
71 setprop sys.usb.state ${sys.usb.config}
72 44
73on property:sys.usb.config=ptp,adb 45on property:sys.usb.config=ptp && property:sys.usb.configfs=1
74 write /sys/class/android_usb/android0/enable 0 46 write /config/usb_gadget/g1/functions/ptp.gs1/os_desc/interface.MTP/compatible_id "PTP"
75 write /sys/class/android_usb/android0/idVendor 0451 47 write /config/usb_gadget/g1/os_desc/use 1
76 write /sys/class/android_usb/android0/idProduct D10E 48 write /config/usb_gadget/g1/idProduct 0xD10D
77 write /sys/class/android_usb/android0/functions ${sys.usb.config}
78 write /sys/class/android_usb/android0/enable 1
79 start adbd
80 setprop sys.usb.state ${sys.usb.config}
81 49
82on property:sys.usb.config=mass_storage 50on property:sys.usb.config=ptp,adb && property:sys.usb.configfs=1
83 write /sys/class/android_usb/android0/enable 0 51 write /config/usb_gadget/g1/functions/ptp.gs1/os_desc/interface.MTP/compatible_id "PTP"
84 write /sys/class/android_usb/android0/idVendor 0451 52 write /config/usb_gadget/g1/os_desc/use 1
85 write /sys/class/android_usb/android0/idProduct D100 53 write /config/usb_gadget/g1/idProduct 0xD10E
86 write /sys/class/android_usb/android0/functions ${sys.usb.config}
87 write /sys/class/android_usb/android0/enable 1
88 setprop sys.usb.state ${sys.usb.config}
89 54
90on property:sys.usb.config=mass_storage,adb 55on property:sys.usb.config=adb && property:sys.usb.configfs=1
91 write /sys/class/android_usb/android0/enable 0 56 write /config/usb_gadget/g1/idProduct 0xD101
92 write /sys/class/android_usb/android0/idVendor 0451
93 write /sys/class/android_usb/android0/idProduct D102
94 write /sys/class/android_usb/android0/functions ${sys.usb.config}
95 write /sys/class/android_usb/android0/enable 1
96 start adbd
97 setprop sys.usb.state ${sys.usb.config}
diff --git a/media_codecs.xml b/media_codecs.xml
index 0c04183..6c34266 100644
--- a/media_codecs.xml
+++ b/media_codecs.xml
@@ -20,20 +20,54 @@
20 20
21<MediaCodecs> 21<MediaCodecs>
22 <Include href="media_codecs_google_audio.xml" /> 22 <Include href="media_codecs_google_audio.xml" />
23 <Decoders> 23 <Decoders>
24 <MediaCodec name="OMX.TI.DUCATI1.VIDEO.DECODER"> 24 <MediaCodec name="OMX.TI.DUCATI1.VIDEO.DECODER" >
25 <Type name="video/avc"/> 25 <Quirk name="requires-allocate-on-input-ports"/>
26 <Type name="video/mp4v-es"/> 26 <Quirk name="requires-allocate-on-output-ports"/>
27 <Type name="video/3gpp"/> 27
28 <Type name="video/mpeg2"/> 28 <Type name="video/avc">
29 <Quirk name="requires-allocate-on-input-ports"/> 29 <Limit name="size" min="64x64" max="1920x1088" />
30 <Quirk name="requires-allocate-on-output-ports"/> 30 <Limit name="alignment" value="16x16" />
31 <Limit name="block-size" value="16x16" />
32 <Limit name="blocks-per-second" min="1" max="489600" />
33 <Limit name="bitrate" range="1-62500000" />
34 <Feature name="adaptive-playback" />
35 </Type>
36
37 <Type name="video/mp4v-es">
38 <Limit name="size" min="64x64" max="1920x1088" />
39 <Limit name="alignment" value="16x16" />
40 <Limit name="block-size" value="16x16" />
41 <Limit name="blocks-per-second" min="1" max="489600" />
42 <Limit name="bitrate" range="1-62500000" />
43 </Type>
44
45 <Type name="video/3gpp">
46 <Limit name="size" min="64x64" max="1920x1088" />
47 <Limit name="alignment" value="16x16" />
48 <Limit name="block-size" value="16x16" />
49 <Limit name="blocks-per-second" min="1" max="489600" />
50 <Limit name="bitrate" range="1-62500000" />
51 </Type>
52
53 <Type name="video/mpeg2">
54 <Limit name="size" min="64x64" max="1920x1088" />
55 <Limit name="alignment" value="16x16" />
56 <Limit name="block-size" value="16x16" />
57 <Limit name="blocks-per-second" min="1" max="489600" />
58 <Limit name="bitrate" range="1-62500000" />
59 </Type>
31 </MediaCodec> 60 </MediaCodec>
32 </Decoders> 61 </Decoders>
33 <Encoders> 62 <Encoders>
34 <MediaCodec name="OMX.TI.DUCATI1.VIDEO.H264E" type="video/avc" > 63 <MediaCodec name="OMX.TI.DUCATI1.VIDEO.H264E" type="video/avc" >
35 <Quirk name="requires-allocate-on-input-ports" /> 64 <Quirk name="requires-allocate-on-input-ports" />
36 <Quirk name="requires-allocate-on-output-ports" /> 65 <Quirk name="requires-allocate-on-output-ports" />
66 <Limit name="bitrate" range="1-50000000" />
67 <Limit name="block-size" value="16x16" />
68 <Limit name="alignment" value="16x16" />
69 <Limit name="size" min="96x80" max="1920x1088" />
70 <Limit name="blocks-per-second" min="1" max="489600" />
37 </MediaCodec> 71 </MediaCodec>
38 </Encoders> 72 </Encoders>
39 <Include href="media_codecs_google_video.xml" /> 73 <Include href="media_codecs_google_video.xml" />
diff --git a/sepolicy/file.te b/sepolicy/file.te
new file mode 100644
index 0000000..2d8644d
--- /dev/null
+++ b/sepolicy/file.te
@@ -0,0 +1,2 @@
1# /config
2type configfs, fs_type;
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index bcab2d3..666c7e1 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -23,7 +23,7 @@
23/dev/rtc0 u:object_r:rtc:s0 23/dev/rtc0 u:object_r:rtc:s0
24 24
25#Block devices 25#Block devices
26/dev/block/mmcblk0p9 u:object_r:system_block_device:s0 26/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/system u:object_r:system_block_device:s0
27/dev/block/mmcblk0p7 u:object_r:recovery_block_device:s0 27/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/recovery u:object_r:recovery_block_device:s0
28/dev/block/mmcblk0p10 u:object_r:cache_block_device:s0 28/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/cache u:object_r:cache_block_device:s0
29/dev/block/mmcblk0p13 u:object_r:userdata_block_device:s0 29/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/userdata u:object_r:userdata_block_device:s0
diff --git a/sepolicy/genfs_contexts b/sepolicy/genfs_contexts
new file mode 100644
index 0000000..50c7cd7
--- /dev/null
+++ b/sepolicy/genfs_contexts
@@ -0,0 +1 @@
genfscon configfs / u:object_r:configfs:s0
diff --git a/sepolicy/init.te b/sepolicy/init.te
index 1c88dbc..b0822c6 100644
--- a/sepolicy/init.te
+++ b/sepolicy/init.te
@@ -2,3 +2,8 @@
2allow init self:capability sys_module; 2allow init self:capability sys_module;
3#Create symlinks for storage 3#Create symlinks for storage
4allow init tmpfs:lnk_file create_file_perms; 4allow init tmpfs:lnk_file create_file_perms;
5
6# /config
7allow init configfs:dir create_dir_perms;
8allow init configfs:file w_file_perms;
9allow init configfs:lnk_file create;
diff --git a/sepolicy/ueventd.te b/sepolicy/ueventd.te
index d31dc0e..690cf1e 100644
--- a/sepolicy/ueventd.te
+++ b/sepolicy/ueventd.te
@@ -1,3 +1,3 @@
1#Rules for crda operations 1#Rules for crda operations
2allow ueventd self:netlink_socket { create_socket_perms }; 2allow ueventd self:netlink_generic_socket { create_socket_perms };
3allow ueventd system_file:file { execute_no_trans }; 3allow ueventd system_file:file { execute_no_trans };