Pages

Saturday, June 5, 2010

Android SDK Windows for ADB Shell

One of the functions of the SDK is used to perform remote shell (command) to our android handset from a PC, plus many other functions.

System requirement :

JDK 5 / 6 (minimum've installed the JDK)
Details please check the link

Please download from the link below:

Official
Driver SDK -> Copy folder "usb_driver" to folder "android-SDK-windows"
Additional Driver -> If necessary (first extract)

The installation, please go to his Web OmpongDroid or follow the ways below if you have a driver problem is not known:

Make sure the data cable already installed, and USB-in handsets are activated Debugging
Extract the SDK example to C: \
Copy folder "usb_driver" to folder "android-SDK-windows"
Install additional drivers if the PC is not recognizing Handset (Run dd.exe files and restore five drivers who had available)

Ok, let's just driver problem has been completed. Further tries through "command prompt" (cmd), and I assume the position of being in the C: \ android-SDK-windows \ tools>

Check handset connections:
C: \ android-SDK-windows \ tools> adb devices
If it appears terkonek
List of devices attached
5700621f1d47 devices


If not mean there are still problems with the drivers. Please trouble shooting driver


Trying adb shell:
C: \ android-SDK-windows \ tools> adb shell
$ -> If it is still a regular user / not root
# -> If it is the root

Several Command Shell:
ls
lists, dir (cmd) -> view the contents of directory

pwd
print working directory -> directory to see there in the position where

CD
change directory -> move a directory
example:
now exists in / data / data moving to / system / app
cd / system / app

cp
copy -> copy the file / directory
cp [source] [destination]
example:
cp / sdcard / test.apk / data / app

mv
move -> move the file / directory
mv [source] [destination]
example:
mv / sdcard / test.apk / data / app

rm
remove -> delete files

rmdir
remove directory -> delete directory

chmod
change modes, change permissions -> change permissions on files / directory

ln
create a link -> create a link / shortcut