Camera flash mode selection

Hi all. Im trying automate Camera still image capture on Andoid (galaxy s6 ). I managed to automate the actual picture taking but im stuck on figuring out how can I change the flash mode to ‘ON’. Now I know how to click the MenuItem/resourceID to toggle the ‘auto’ ‘on’ ‘off’ button on the camera app but dont know how to validate if it needs to be pushed or not. So I would like the click action to happen only if the flash mode is ‘off’ or ‘auto’ until its ‘ON’.
UIautomator does not give any different text or content-desc etc when is on or off.
Im using Android studio (appium 1.4.16.1)
Hoping to get some help on this. Thanks in advance.