Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #take still images in a loop
- #turn on screen
- input keyevent KEYCODE_POWER
- #IMAGE_CAPTURE starts the camera, but might ask for photo confirmation after each shot
- am start -a android.media.action.IMAGE_CAPTURE
- input keyevent KEYCODE_FOCUS #not really needed
- input keyevent KEYCODE_CAMERA
- while [ 1 ];do input keyevent KEYCODE_CAMERA;sleep 5;done &
- #Video
- am start -a android.media.action.VIDEO_CAPTURE
- #find screen backlight value (root needed to change value)
- busybox find / -name "backlight" #or busybox find / -name "brightness"
- cat /sys/class/backlight #/sys/devices/fd900000.qcom,mdss_mdp/qcom,mdss_fb_primary.155/leds/lcd-backlight/brightness
- echo 0 > /sys/class/backlight
- #press power button a few times to turn screen back on
- #turn shutter sound off
- mount -o remount,rw /system #remount system as read/write
- cd /system/media/audio/ui/
- mv camera_click.ogg camera_click.ogg.old #remove sound
- mv camera_click.ogg.old camera_click.ogg #reload sound
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement