I am working one an automation platform which automates the Android test case scenarios. Most of the case I have been able to achieve using simple adb commands. However, I stumbled upon a very simple request which demands sometimes front camera to be open and sometimes back camera to be open.
I did my searches and turns out that I am not able to find out any simple adb command for it(I would love to hear that there is a simple command for that)
Also, I come across some suggestions where people say that we can have more control using Mono but I do not have any experience in Mono at the moment and I am wondering for a simple task like this it would be too much effort to create a Mono project.
Also, some suggested to hack into Camera application source code and have two apps both for front and back camera.
I needed some suggestions on what is best approach for achieving this?
- Does any adb command exist?
- is creating a Mono project for such a basic thing a good idea?
- Can I hack into the code?
Your suggestions would really be appreciated