[Sony Xperia XZ Premium Questions & Answers] Miustone:
Oh thanks for letting me know! It should be less hard in this case. Possible that a simple build.prop edit with a added Permission does the job. I will test that once my patch is booting on .306. I think SONY has just not added a little Part to disable this Feature. I just wonder why since it was working fine for Me on AOSP with My Patch and everything else worked too like HDR+ on GCam Port by Arnova... So... Give Me a while and it will be solved :)

More Infos can be found here: https://source.android.com/devices/camera/versioning

This Part is important:

The supported hardware level of the device, as well as the specific Camera API2 capabilities it supports, are available as the following feature flags to allow Google Play filtering of Camera API2 camera apps.

android.hardware.camera.hardware_level.full

android.hardware.camera.capability.raw

android.hardware.camera.capability.manual_sensor

android.hardware.camera.capability.manual_post_processing

By adding these Permissions should it at least be available as Option in Apps. Additional can it be added to the build.prop. Example Lines:

persist.camera.ae.capture.bound=

persist.camera.ae.instant.bound=

persist.camera.auto.hdr.enable=true

persist.camera.aux.camera=

persist.camera.auxcamera.swap=

persist.camera.aux.picture.size=

persist.camera.aux.preview.size=

persist.camera.batchcount=

persist.camera.CDS=1

persist.camera.continuous.iso=

persist.camera.dc.frame.sync=

persist.camera.dcrf.enable=true

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=1

persist.camera.facedetect=1

persist.camera.fdvideo=1

persist.camera.feature.cac=1

persist.camera.feature.restart=

persist.camera.feature.shutter=1

persist.camera.global.debug=

persist.camera.HAL3.enabled=1

persist.camera.hal3hfr.enable=1

persist.camera.hal3.prv.feature=1

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=5

persist.camera.jpeg_burst=1

persist.camera.kpi.debug=

persist.camera.led.on.period=

persist.camera.liveshot.size=

persist.camera.longshot.save=

persist.camera.longshot.stages=

persist.camera.ltmforseemore=1

persist.camera.mem.usecache=1

persist.camera.mem.usepool=1

persist.camera.mobicat=

persist.camera.multi_pass=

persist.camera.no-display=

persist.camera.nonzsl.yuv=

persist.camera.offlineraw=

persist.camera.ois.disable=0

persist.camera.ois.video=

persist.camera.opt.livepic=

persist.camera.preview_raw=1

persist.camera.preview.seemore=1

persist.camera.preview.ubwc=1

persist.camera.preview_yuv=1

persist.camera.raw.debug.dump=

persist.camera.raw.dump=

persist.camera.raw.format=

persist.camera.raw_yuv=

persist.camera.rdimodev

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=adjustFPS

persist.camera.time.monotonic=

persist.camera.tintless=1

persist.camera.tn.disable=

persist.camera.tnr.preview=1

persist.camera.tnr.video=1

persist.camera.video.CDS=1

persist.camera.video_raw=1

persist.camera.video.ubwc=1

persist.camera.zsl.backlookcnt=

persist.camera.zsl.interval=

persist.camera.zsl_matching=

persist.camera.zsl.mode=1

persist.camera.zsl.queuedepth=

persist.camera.zsl_raw=

persist.camera.zsl_yuv=

persist.capture.burst.exposures=

persist.debug.set.fixedfps=

persist.debug.sf.showfps=1

persist.denoise.process.plates=2

persist.sys.exif.make=

persist.sys.exif.model=

persist.tnr.process.plates=2

(This are experimental Values)