[Optimus One, P500, V General] The_ERROR:
2. Android platform and it's specifics

adb shell - what is it, for what it is

Android SDK - what is it, tool which provides, where to download

Tools for work with Android adb shell - Terminal Emulator, ADB shell from Android SDK and how to use it

ADB (shell)

ADB - Android Debug Bridge is a versatile tool lets you manage the state of an emulator instance or Android-powered device. It is a client-server program that includes three components:

A client, which runs on your development machine. You can invoke a client from a shell by issuing an adb command. Other Android tools such as the ADT plugin and DDMS also create adb clients.

A server, which runs as a background process on your development machine. The server manages communication between the client and the adb daemon running on an emulator or device.

A daemon, which runs as a background process on each emulator or device instance.

Generally it can be compared with standard cmd prompt in windows (you can write commands which will be executed locally, for example in Terminal Emulator) or it can be just like SSH in unix-like system (you connect to terminal through adb client (in Android SDK) and commands will be run remotely.

Android SDK

Android software development kit is complex set of tools for developing app on Android. It includes fully usable emulator of Android OS on your PC, where you can do everything. You can install/delete apps, browse web page in embedded web browser, play games or make your own application in Eclipse (widely used IDE for development). Of course, with emulator you can use also GPS or camera. Emulated android phone is just like "normal" phone.

Android SDK tools

Fully emulated Android device

Android Development Tools Plugin (Eclipse IDE)

Android Virtual Devices (AVDs)

Hierarchy Viewer

layoutopt

Draw 9-patch

Dalvik Debug Monitor Service (ddms)

Android Debug Bridge (adb)

Android Asset Packaging Tool (aapt)

Android Interface Description Language (aidl)

sqlite3

Traceview

mksdcard

dx

UI/Application Exerciser Monkey

monkeyrunner

Android

zipalign

Tools for work with Android adb shell

You have two ways ho to connect into ADB service - locally and remotely.

Locally - for local access you will need some application which can connect to local adb shell.

Terminal Emulator (free) - probably most commonly used app from market, which works and looks like standard unix shell.

ConnectBot (free) - same as Terminal Emulator, but it can be also used for connecting via SSH or telnet

Remotelly- For remote connection you need phone configuration adjustment:

Home desktop -> [menu button] -> Settings -> Applications -> Development -> USB debugging [ON].

Also you need connect your phone via USB (or finds on market some widget/app, witch enable using ADB also via wi-fi)

adb tool from Android SDK

After download Android SDK, extract archive somewhere (in example I extracted it in c:/AndroidSDK). Then follow instruction on developer.android.com for installation of SDK Platform-tools (contains adb). After installation click on start menu and in Run... (in Windows7 in search bar) enter 'cmd' and press Ok or [enter]. Then write in cmd line:

cd c:\AndroidSDK\android-sdk-windows\tools [enter]

now you can enter following command to connect to phone's adb shell if you don't have more connected device (virtual or real-one)

adb shell

If you have more then one, you need explicitly say which one should be used for connection. So list connected devices with

adb devices

which shows you serial number of connected devices. Than use

adb -s <serial-number> shell

Links/thanks:

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

ADB; android-dls.com; developer.android.com

Android SDK; wiki.androidforum.cz [CZ]

Basic adb/shell commands for noobs; xdaforums.com

15 Useful Android Terminal (ADB Shell) Commands; gadgetsdna.com

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

==========================

Main topic

==========================