I have a nexus4 with a broken touchscreen. Controlling the bootloader with power and volume keys still works, so I put rootbox on it. Now I can login to the root prompt using adt. As I want to use it as timelapse camera, I wonder how is it possible to take a photo and save it to a specific folder using the command line? Then I could set up a cron job and download images using adt.
Take a look at this: How can I run Android camera application from adb shell?
In short:
- Image capture mode: adb shell "am start -a android.media.action.IMAGE_CAPTURE"
- Video capture mode: adb shell "am start -a android.media.action.VIDEO_CAPTURE"
- To focus: adb shell "input keyevent KEYCODE_FOCUS"
- To take a photo or start/stop recording: adb shell "input keyevent KEYCODE_CAMERA"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With