Building from this tree:
Contains some camera related issues fix.
1.s2: fix preview-sizes 1440x1080 1080x1080 missing error
2.s2: Camera HAL1 compatibility adaptation
3.s2: add qcamerasvr restart workaround
Details about blackscreen issue info:
s2: add qcamerasvr restart workaround
Unfortunately, s2's mm-qcamera-daemon has an issue where sometimes
it can't receive any valid preview frame at times which causes the
camera to black screen and fail to work until a reboot is
performed. This issue could be due to us using camera HAL3 when
LeEco only inteded for HAL1 to be used as HAL3 is disabled on our
Without the source code to mm-qcamera-daemon and the camera blobs
we cannot currently fix this issue. A workaround we can do though
to prevent a reboot is to restart the qcamerasvr manually by
adding a setting for it.
Another workaround is to use camera HAL1 as it works perfectly,
especially in certain apps like WhatsApp where switching between
front/rear camera repeatedly causes the blackscreen issue in
This commit is co-authored by @zhaoguomanong as he implemented a
better camera reset implementation, added a camera HAL3/HAL1
toggle and also created shortcuts in the app drawer for s2 users
to be able to use quickly instead of having to always go into
Settings > Advanced > LeEco Settings.