Skip to content

Instantly share code, notes, and snippets.

@brunorozendo
Created September 2, 2019 02:14
Show Gist options
  • Save brunorozendo/8a6657d64880254ba7119603e8af2b66 to your computer and use it in GitHub Desktop.
Save brunorozendo/8a6657d64880254ba7119603e8af2b66 to your computer and use it in GitHub Desktop.
Android arch linux

https://brunorozendo.com/post/instalar-adroid-sdk-gnu-linux.html https://android.stackexchange.com/questions/7686/is-there-a-way-to-see-the-devices-screen-live-on-pc-through-adb https://wiki.archlinux.org/index.php/Android_Debug_Bridge

groupadd android-sdk

gpasswd -a android-sdk

sudo groupadd  adbusers
sudo usermod -a -G  bruno adbusers

lsusb Bus 002 Device 001: ID 1d6b:0003 Motorola

https://wiki.archlinux.org/index.php/Android_Debug_Bridge

/etc/udev/rules.d/51-android.rules SUBSYSTEM=="usb", ATTR{idVendor}=="[VENDOR ID]", MODE="0660", GROUP="adbusers" SUBSYSTEM=="usb",ATTR{idVendor}=="[VENDOR ID]",ATTR{idProduct}=="[PRODUCT ID]",SYMLINK+="android_adb" SUBSYSTEM=="usb",ATTR{idVendor}=="[VENDOR ID]",ATTR{idProduct}=="[PRODUCT ID]",SYMLINK+="android_fastboot"

sudo chown bruno:adbusers -R /opt/android

Gravar tela

adb shell screenrecord --output-format=h264 - | ffplay -framerate 60 -probesize 32 -sync video -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment