Due to Google's optimization of the program code, some old solutions have stopped working. Lack of time does not allow me to find a decent alternative, so I try to simplify the code.
In this new version, the choice of model is excluded, for the front and rear cameras, a Nexus 6p is installed. On xrn5, the front camera photographs clearly, if for the other devices this is not suitable - in this assembly there is no other option, in the future it will not be difficult to add a choice.
Please note that the original post or files can be modified or deleted after this page was created.