SYSTEM NOTICE: Just a heads up, we are doing routine system maintenance on the site. Uploads will be disabled during this time. The maintenance may take up to 24 hours. Thank you for your understanding and patience.
LetvCamera mod for aosp custom roms
Changes of this mod:
1.remove all third part algorithm related features.
2.port qcom native hdr and auto hdr(work well on LOS 16 S2)
3.implementation of phone state listening on aosp roms; video recording is disabled when there is a phone calling.
4.Fix a lot of crash on custom roms, such as
1)If Slowmotion not support on this devices, avoid force close app just record as the normal 720p video.
2)If 4k recording not supported on this device, just use 1080p instead.
3)Fix low battery toast crash on android P, Q... as Toast#setShowWhenLocked isn't supported on new versions of android
4)Fix Pro module crash on some devices if some features not supported, just don't set parameters to camera device if not supported
5.Adapter LetvCamera UI to devices or roms that have soft navigationbar, such as lineageos custom roms. Even adapter for large screen devices(height/width>=18/9)
6.Some devices or roms may not support 1:1 ratio, just give the hint to user and make app don't force close(don't set the the not suppored picture-size and preview-size to native, so the devices will use the last picture-size and preview-size settings during your ratio change or use the default native setting if open camera again with unsupported ratio, the
preview will be out of shape, but it's better than crash)
7.Dynamically read supported picture-sizes from framework, and use largest sizes for 4:3,16:9,1:1. And use dynamically calculated preview-sizes to avoid crash on any devices
8.Not supported the devices with back fixed focus camera. All Leeco phones rear camera has focus feature. So install this app on low end fixed focus back camera devices will force close.