I Tried to give a look at the camera2 example (the flash works in the process of taking photos), but it too complicated for my skill. I tried to modify the example to see if I was able to turn the flash led persistent on, but without success.
I tried your app, and seems to work! I would appreciate if you could post the relevant code.
Thank you to all for the advice