[Sony Cross-Device General] munjeni:
If you trust me I have no can't connect camera isue using hals which I'm using, camera crashes sometimes but no problem at al reopening it. Display things and video things (I told that 10 times) flys, its soo smooth! Things which I'm using for msm8974, you can try at least

# the rest from LA.BR.1.3.6_rb1.6
PRODUCT_PACKAGES += \
libOmxVdec \
libOmxVdecHevc \
mm-vdec-omx-test \
mm-video-driver-test \
libOmxVenc \
libmmcamera_interface \
mm-jpeg-interface-test \
mm-jpegdec-interface-test \
libmmjpeg_interface \
libqomx_core \
libsdmcore \
libsdmutils \
libqservice \
libhdmi \
libmemalloc \
liboverlay \
libqdutils \
libqdMetaData \
hdmi_cec.msm8974 \
libvirtual \
hwcomposer.msm8974

# this fixes all video isues, e.g. for youtube black screen after rotate
# for this hack you need folowing patch http://xdaforums.com/showpost.php?p=69316695&postcount=300
PRODUCT_PROPERTY_OVERRIDES += \
persist.disable_overlays=1

PRODUCT_PROPERTY_OVERRIDES += \
persist.camera.initial.exp.val=0 \
persist.camera.global.debug=1 \
persist.camera.sensor.debug=1 \
persist.camera.isp.debug=1 \
persist.camera.stats.TuningDbg=1 \
persist.camera.mct.debug=1 \
persist.camera.cal.dump=1

# this fixes split screen and trust me not crashes front camera!
PRODUCT_PROPERTY_OVERRIDES += \
persist.camera.dual.camera=1

# this one is on stock rom too, not analysed which usage it have
PRODUCT_PROPERTY_OVERIDES += \
persist.mdpcomp.4k2kSplit=1

KernelConfig.mk:

LOCAL_KERNEL := out/target/product/amami/obj/KERNEL_OBJ/arch/arm/boot/zImage-dtb

For other things like device/sony/common-headers/kernel-headers you need to build inline kernel end overwrite kernel-headers with one from inline build...

======================================================================

I have colected all the rest of property from that hals, for fine tune and for reference it is:

display property:

persist.hwc.downscale_threshold
persist.hwc.macro_tile_enable
persist.hwc.maxseclayers
persist.hwc.mdpcomp.enable
persist.hwc.mdpcomp.maxpermixer
persist.hwc.ptor.enable
persist.hwc.pubypass
persist.mdp3.partialUpdate
persist.mdpcomp.4k2kSplit
persist.mdpcomp_perfhint
persist.metadata_dynfps.disable
persist.sys.actionsafe.height
persist.sys.actionsafe.width

camera property:

persist.camera.ae.capture.bound
persist.camera.ae.instant.bound
persist.camera.auto.hdr.enable
persist.camera.aux.camera
persist.camera.auxcamera.swap
persist.camera.aux.picture.size
persist.camera.aux.preview.size
persist.camera.batchcount
persist.camera.CDS
persist.camera.continuous.iso
persist.camera.dc.frame.sync
persist.camera.dcrf.enable
persist.camera.dual.camera
persist.camera.dual.camera.dump
persist.camera.dual.camera.mpo
persist.camera.dual_led_calib
persist.camera.dumpimg
persist.camera.dumpmetadata
persist.camera.exif.rotation
persist.camera.eztune.enable
persist.camera.facedetect
persist.camera.fdvideo
persist.camera.feature.cac
persist.camera.feature.restart
persist.camera.feature.shutter
persist.camera.global.debug
persist.camera.HAL3.enabled
persist.camera.hal3hfr.enable
persist.camera.hal3.prv.feature
persist.camera.hal.debug
persist.camera.hdr.outcrop
persist.camera.imglib.stillmore
persist.camera.initial.exp.val
persist.camera.instant.aec
persist.camera.instant.capture
persist.camera.is_type
persist.camera.jpeg_burst
persist.camera.kpi.debug
persist.camera.led.on.period
persist.camera.liveshot.size
persist.camera.longshot.save
persist.camera.longshot.stages
persist.camera.ltmforseemore
persist.camera.mem.usecache
persist.camera.mem.usepool
persist.camera.mobicat
persist.camera.multi_pass
persist.camera.no-display
persist.camera.nonzsl.yuv
persist.camera.offlineraw
persist.camera.ois.disable
persist.camera.ois.video
persist.camera.opt.livepic
persist.camera.preview_raw
persist.camera.preview.seemore
persist.camera.preview.ubwc
persist.camera.preview_yuv
persist.camera.raw.debug.dump
persist.camera.raw.dump
persist.camera.raw.format
persist.camera.raw_yuv
persist.camera.rdimode
persist.camera.rdi.mode
persist.camera.retro.number
persist.camera.secure.mode
persist.camera.set.afd
persist.camera.snap.format
persist.camera.snapshot.fd
persist.camera.snapshot.number
persist.camera.snapshot_raw
persist.camera.stats.af.paaf
persist.camera.stats.debug.mask
persist.camera.thermal.mode
persist.camera.time.monotonic
persist.camera.tintless
persist.camera.tn.disable
persist.camera.tnr.preview
persist.camera.tnr.video
persist.camera.video.CDS
persist.camera.video_raw
persist.camera.video.ubwc
persist.camera.zsl.backlookcnt
persist.camera.zsl.interval
persist.camera.zsl_matching
persist.camera.zsl.mode
persist.camera.zsl.queuedepth
persist.camera.zsl_raw
persist.camera.zsl_yuv
persist.capture.burst.exposures
persist.debug.set.fixedfps
persist.debug.sf.showfps
persist.denoise.process.plates
persist.sys.exif.make
persist.sys.exif.model
persist.tnr.process.plates

I can say for sure we have very stable nougat (battery friendly) on our device! Picture confirms that.