Reverted my previous changes in favor of these. At the moment the light level function is not called so 'auto' does not work and the rear cam capture is borked so flash get stuck on when snapping photo.