diff options
| author | Abhisek Devkota <ciwrl@cyanogenmod.com> | 2016-11-24 22:17:18 -0800 |
|---|---|---|
| committer | Abhisek Devkota <ciwrl@cyanogenmod.com> | 2016-11-25 15:55:04 -0800 |
| commit | bcdb3b18663fb33d992df84533210d5fe9487d36 (patch) | |
| tree | 9219a02ae68439d7a1aeb71aa8433072f1a1ef4a | |
| parent | fcada5509eb627031c390cc6376a31a399559599 (diff) | |
HAL1 hacks
Change-Id: I8f295c1ff200a154a7a2bfab3d57ca2e329f0caa
| -rw-r--r-- | BoardConfig.mk | 1 | ||||
| -rw-r--r-- | device.mk | 4 | ||||
| -rw-r--r-- | sepolicy/mediaserver.te | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index f5e4200..cba548b 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -113,6 +113,7 @@ BOARD_SEPOLICY_DIRS += \ BOARD_CHARGER_ENABLE_SUSPEND := true TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS := true +TARGET_HAS_LEGACY_CAMERA_HAL1 := true USE_DEVICE_SPECIFIC_CAMERA:= true USE_DEVICE_SPECIFIC_QCOM_PROPRIETARY:= true @@ -267,4 +267,8 @@ PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PACKAGES += \ Snap +PRODUCT_PROPERTY_OVERRIDES += \ + media.stagefright.legacyencoder=true \ + media.stagefright.less-secure=true + $(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk) diff --git a/sepolicy/mediaserver.te b/sepolicy/mediaserver.te index f82f16d..da57b3c 100644 --- a/sepolicy/mediaserver.te +++ b/sepolicy/mediaserver.te @@ -7,3 +7,5 @@ unix_socket_send(mediaserver, mpdecision, mpdecision) # Permit mediaserver to create sockets with no specific SELinux class. # TODO: Investigate the specific type of socket. allow mediaserver self:socket create_socket_perms; + +allow mediaserver media_rw_data_file:file write; |
