boot to twrp flash SnapdragonCamera[version].zip reboot to system go to Settings->Apps and find SnapdragonCamera go to permissions and allow (at least) camera, storage and mic (I don't want to location tag my pics, so I leave location disabled; I'dont know why SnapdragonCamera wants to read my contacts, so I leave this disabled as well - for both YMMV)

boot to twrp flash uninstall-SnapdragonCamera[version].zip reboot to system

The flashable zip contains SnapdragonCamera.apk and needed libs. Both - the apk and the libs have to reside inside system, so the only way to install this system app is either flashing this zip, or to unpack the zip, remount /system rw (root required), copy the files by hand (root and writeble /system required), fix fs permissions (root and writeble /system required), remount /system ro (root required) and reboot.I'm no photographer, so judging the pic quality and checking all that settings is up to you. Taking pictures, taking panorama shots, 4k video w/o and 1080p with stabilization is tested and working on oos4; since the codebase is M I'm pretty sure it's working on oos3 as well.If you like to use a Magisk module instead of this flashable zip, you'll find it https://forum.xda-developers.com/one...us-3t-t3548446 (many thanx to @ Spasticdroid The version string I include in the filenames, refers to caf versions, not to android version, nor oos version: https://wiki.codeaurora.org/xwiki/bin/QAEP/release . At the moment I build inside oss source tree (see url at the end of the posting) - which is ahead with oos-3.5.4, guessing frommthe commits.I consider you are on oos3 or oos4 and twrp is installed and working.Installation:Uninstall:IMPORTANT: the uninstall-SnapdragonCamera-[version].zip has to match EXACTLY! the version of the zip you have installed before, since different versions carry different files!Source code and license:Happy flashing!Note: The old SnapdragonCamera-OSS.zip is exactly the same as SnapdragonCamera-LA.HB.1.3.2-27300-8x96.0.zip! I've decided to put the caf version string in the filename, to match the uninstall names, because different versions seems to need different libs.