1.Download and extract (untar) CTS package from http://dl.google.com/dl/android/cts/android-cts-2.3_r5-x86.zip
2. Download and extract (untar) Google Android SDK from http://dl.google.com/android/android-sdk_r12-linux_86.tgz and install.
Set up the connection between Host and Platform as mentioned below.
ADB Connection
Following is the step to use adb with your device using Ethernet, Connect your ethernet cable to your device and PC.
Snowball:
in Minicom
in Minicom
#setprop service.adb.tcp.port 5555
#stop adbd
#start adbd
#stop adbd
#start adbd
After this in Home, launch Settings, in EthernetConfiguration,
change the ip address to static ip
give ip address like 192.168.1.3 (first three should match with your network address)
In your PC,
Before connecting the Ethernet cable in a termainal
> ifconfig
it will give the eth0 address like (192.168.1.18) note it down
We need to this, as we remove the Ethernet cable from our network and connect with the device
Now connect the device with Ethernet cable and check in you PC terminal
# ifconfig
eth0 will be not present
# ifconfig eth0 192.168.1.18 up
then go to your Android folder and set the PATH (this is done for your adb to execute)
root@subhalak-lpt:~# cd android-sdk-linux_x86/platform-tools/
root@subhalak-lpt:~/android-sdk-linux_x86/platform-tools# PATH=~/android-sdk-linux_x86/platform-tools:$PATH
root@subhalak-lpt:~/android-sdk-linux_x86/platform-tools#
Now from your pc, coonect the device using the device IP Address
# adb connect 192.168.1.3
# adb devices
will list all the devices
#adb install /downloads/example.apk
will install the apk files
BLAZE/PANDA-BOARD
connect the Ethernet cable of the device to the network (don't connect to the PC, connect it to the network)
while booting BLAZE/PANDBOARD,
add
ip = dhcp (in bootargs)
setenv bootargs androidboot.console=ttyO2 console=ttyO2,115200n8 mem=456M@0x80000000 mem=512M@0xA0000000 root=/dev/mmcblk1p2 rw rootdelay=2 init=/init vram="10M" omapfb.vram="0:4M" ip=dhcp
setenv bootcmd 'mmcinit 0; fatload mmc 0 0x80000000 uImage;bootm 80000000'
run bootcmd
if you have not done this in Minicom,
#netcfg
# netcfg eth0 up
# netcfg eth0 dhcp
# setprop service.adb.tcp.port 5555
# stop adbd
Disabling adb
#adb_release
#start adbd
You will get the ip address of your device
now FROM PC,
hence go to your Android folder and set the PATH (this is done for your adb to execute)
root@subhalak-lpt:~# cd android-sdk-linux_x86/platform-tools/
root@subhalak-lpt:~/android-sdk-linux_x86/platform-tools# PATH=~/android-sdk-linux_x86/platform-tools:$PATH
root@subhalak-lpt:~/android-sdk-linux_x86/platform-tools#
Now from your pc, coonect the device using the device IP Address
# adb connect 192.168.1.3 (device IP address what you got in netcfg for eth0)
# adb devices
will list all the devices
#adb install /downloads/example.apk
Eg: #adb install –r Desktop/shiv/android-cts/repository/testcases/
CtsDelegatingAccessibility.apk
will install the apk files.
Launch The CTS
# Android-cts/tools/ ./startcts
Eg: root@asmaitha:~/Desktop/shiv/android-cts/tools. /startcts
Android CTS version 2.1_r1
Device(emulator-5555) connected
cts_host>
cts_host>ls - -plan
It will list all the available plans.
Java
CTS
AppSecurity
Signature
VM
RefApp
Performance
Android
…
cts_host>start - -plan Signature
CTS_INFO >>> Checking API...
CTS_INFO >>> This might take several minutes, please be patient...
API Check PASS.
(pass)
Test summary: pass=1 fail=0 timeOut=0 notExecuted=0 Total=1
Time: 202.363s
$
This will produce results in out/host/linux-x86/cts/android-cts/repository/results/$session_date
, where$session_date
can be 2010.05.20_10.42.58
. Contents of this directory: Results.xml file looks like below.