/ adb

Taking A Picture using Android Camera via ADB

To take a picuture using your android phone camera, using the ADB Tools the following commands need to be run.

adb shell 'am start -a android.media.action.IMAGE_CAPTURE'

adb shell 'input keyevent 27'

The first command invokes the camera activity, the second command emulates the pressing of the camera button.

If the camera activity is already opened then only the second command needs to be executed.