Accediendo a la camara Android con Adb en Linux

 https://unix.stackexchange.com/questions/596814/accessing-android-camera-with-linux-mint-without-using-additional-software

 

cam_droid.sh

#!/bin/bash
adb shell am start -a android.media.action.STILL_IMAGE_CAMERA
sleep 3
for number in {1..100}
do
    adb shell input tap 540 1840
    sleep 10
done
adb pull sdcard/DCIM/Camera ./
exit 0
 
No tienes el cable usb? conectate mediante wifi:
 

Settin adb over wifi:

On android device in developers options set button adb over network on. 

 Type below command to connect to the device over WiFi.

 ./adb connect <IP address>:5555

 ./adb connect 192.168.0.104:5555

 

----------------------------------------------- 

Hacer una captura de pantalla:

adb shell screencap -p /sdcard/screenshot.png

adb pull /sdcard/screenshot.png

adb shell rm /sdcard/screenshot.png

----------------------------------------------

Permisos:

adb Shell pm Grant com.nombrede.laaplicacion android.permission.WRITE.SECURE_SETTINGS


adb shell chmod 666 / data / archivo

 

 adb logcat>archivo.txt

 

./adb ls sdcard/DCIM/Camera

 

 

 

 

 

Entradas populares