In order to release a device to the market, You need to run the Compatibility Test Suite given by android...I need to know how to download and run it..
Thanks for all the guides and links above that helps me to setup the CTS successfully.
I using - Android CTS v2.3_r8
I summarize the steps here for those who wish to get CTS up on Windows.
Install cygwin here: http://www.cygwin.com
I placed android-cts
in my cygwin
folder e.g. C:\cygwin\home\Username\
. You may set up accordingly if you have placed it elsewhere.
Create new Environment Variables to point to SDK_ROOT and CTS_ROOT directories
Go to android-cts\tools
and modify 2 lines in the startcts
script file as follows [With help from How to run Android's CTS on windows on an emulator but some slight modification that works for me
JARS="$(cygpath -w -p ${CTS_LIB}:${DDM_LIB}:${JUNIT_LIB}:${HOSTTEST_LIB})"
java ${JAVA_OPTS} -cp ${JARS} com.android.cts.TestHost "$(cygpath -w "${CONFIG}")" "$@" ${DDCONFIG}
Save startcts
as Unix file. I use dos2unix.exe
downloaded from http://waterlan.home.xs4all.nl/dos2unix.html to convert it to Unix file.
Then, to run CTS
Attach android device to PC
(a) Go to cmd prompt, type adb install -r android-cts/repository/testcases/CtsDeviceAdmin.apk
(b) On the device, enable all the android.deviceadmin.cts.*
device administrators under Settings > Location & security > Select device administrators
Run cygwin and go to android-cts/tools
Execute Android CTS by ./startcts
For how to run the tests in CTS, I refer again to section Working with CTS in the link given the earlier comment by cezio "using-androids-compatibility-test-suite"