Devices
List all connected devices - adb devices
Select a particular device - adb -s <device name> <command>
Shell
Android shell - adb shell
| network: | |
| version: 2 | |
| ethernets: | |
| eth0: | |
| dhcp4: true | |
| match: | |
| macaddress: <MAC_ADDRESS_1> | |
| set-name: eth0 | |
| eth1: | |
| dhcp4: true |
Devices
List all connected devices - adb devices
Select a particular device - adb -s <device name> <command>
Shell
Android shell - adb shell
| .DS_Store | |
| *.aux | |
| *.bbl | |
| *.blg | |
| *.idx | |
| *.lof | |
| *.log | |
| *.lot | |
| *.md | |
| *.out |
For those of you who know, ping utility does not work on Android Emulator. This is because emulator has no ICMP support on QEMU with user mode networking. QEMU user networking mode details can be found here. The solution to get ping working on emulator is by adding another virtual network interface on the emulator.
We start with installing uml-utilities package on the host machine.
apt-get install uml-utilities
This would enable us to create a virtual interface on the underlying host. A virtual interface on the host can be created using following command
tunctl -u $(USER_NAME) -t tap0
| #!/bin/sh | |
| # Host system | |
| export HOST_SYS=x86_64-linux-gnu | |
| # This is a symlink pointing to the real Android NDK r10e | |
| export NDK=/home/ubuntu/android-ndk | |
| # Use clang for the build | |
| export GCC_VER=clang |