diff options
| author | myfluxi <linflux@arcor.de> | 2016-11-13 15:08:20 +0100 |
|---|---|---|
| committer | droidfivex <droidfivex@gmail.com> | 2016-12-14 01:30:10 +0900 |
| commit | 0384f37dae0bdc5cb405a26da3588771837478b8 (patch) | |
| tree | 7b22af07e8e6bbc9ce8174c3e733fd65c0697e8c | |
| parent | 26cb4a6cb7fa1be6298e7a5c6be9fc2ad9322b1c (diff) | |
hammerhead: Enable HAL1 hacks
Fixes flickering and green screen while recording video in camera apps
Change-Id: Ia6a008476e8a5ed116490bf83262a3c8229004b8
| -rw-r--r-- | BoardConfig.mk | 2 | ||||
| -rw-r--r-- | device.mk | 4 | ||||
| -rw-r--r-- | sepolicy/mediaserver.te | 5 |
3 files changed, 10 insertions, 1 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index f02bd40..5fa5fb9 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -138,6 +138,8 @@ TARGET_TOUCHBOOST_FREQUENCY:= 1200 USE_DEVICE_SPECIFIC_QCOM_PROPRIETARY:= true USE_DEVICE_SPECIFIC_CAMERA:= true +TARGET_HAS_LEGACY_CAMERA_HAL1 := true + TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS:= true ifeq ($(USE_SVELTE_KERNEL),true) @@ -353,7 +353,9 @@ PRODUCT_PROPERTY_OVERRIDES += \ # Camera configuration PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ - camera.disable_zsl_mode=1 + camera.disable_zsl_mode=1 \ + media.stagefright.legacyencoder=true \ + media.stagefright.less-secure=true # Input resampling configuration PRODUCT_PROPERTY_OVERRIDES += \ diff --git a/sepolicy/mediaserver.te b/sepolicy/mediaserver.te index f82f16d..66946e7 100644 --- a/sepolicy/mediaserver.te +++ b/sepolicy/mediaserver.te @@ -7,3 +7,8 @@ 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 camera_device:chr_file rw_file_perms; +allow mediaserver audio_device:chr_file rw_file_perms; + +allow mediaserver system_file:file execmod; |
