Friday, 21 December 2012
Android Debug Bridge
Friday, 21 December 2012 by Unknown
The adb utility supports several optional command-line arguments that provide powerful features, such as copying files to and from the device. The shell command-line argument lets you connect to the phone itself and issue rudimentary shell commands. Figure 4 shows the
adb
shell command against a real device connected to a Windows laptop with a USB cable.Using the
adb
shell command
Within this shell environment, you can:
- Display the network configuration that shows multiple network connections.Note the multiple network connections:
lo
is the local or loopback connection.tiwlan0
is the WiFi connection with an address provisioned by a local DHCP server.- Display the contents of the
PATH
environment variable. - Execute the
su
command to become the super-user. - Change the directory to /data/app, where user applications are stored.
- Do a directory listing where you see a single application. Android application files are actually archive files that are viewable with WinZip or equivalent. The extension is apk.
- Issue a ping command to see if Google.com is available.
From this same command-prompt environment, you can also interact with SQLite databases, start programs, and many other system-level tasks. This is fairly remarkable function, considering you're connected to a telephone.
Subscribe to:
Post Comments (Atom)
1 Responses to “Android Debug Bridge”
3 April 2013 at 17:43
The Android Debug Bridge (ADB) is a versatile command line tool that lets you communicate with and control an Android-powered device over a USB link from a computer. It comes along with other useful tools and code bundled with the Android Software Development Kit.
android game developer
Post a Comment