Android version of the command line

I have a nexus4 with a broken touch screen. Controlling the bootloader with the power and volume keys still works, so I put the rootbox on it. Now I can enter the root prompt using adt. Since I want to use it as a temporary camera, I wonder how you can take a picture and save it in a specific folder using the command line? Then I could configure cron to work and upload images using adt.

+4
source share
1 answer

Take a look at this: How to run an Android camera app from adb shell?

In short:

  • : adb "am start -a android.media.action.IMAGE_CAPTURE"
  • : adb "am start -a android.media.action.VIDEO_CAPTURE"
  • : adb shell "input keyevent KEYCODE_FOCUS"
  • / : adb shell "input keyevent KEYCODE_CAMERA"
+2

Source: https://habr.com/ru/post/1548415/


All Articles