From 6d8d4187c33e461c0674f82f44edab46e4b918b4 Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Mon, 20 Jul 2009 14:43:50 -0700 Subject: Add support for preview versions of platforms. ro.build.version.codename is a new property indicating whether a platform is in its release form (value = REL) or in development (value = dev branch name such as Donut). When the codename indicates a development/preview version then the API level must be ignored and this codename is used as a unique identifier of the platform. IAndroidTarget has been changed to return an instance of a new class AndroidVersion instead of the api level directly. This class helps deals with the logic of comparing version from targets or devices. This change impacts all of the sdk manager to deal with targets identified by codename instead of api level. This in turn impacts everything that relies on the sdkmanager: ADT (build, launch, project creation), the AVD manager, the SDK updater. --- ddms/libs/ddmlib/src/com/android/ddmlib/IDevice.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ddms/libs/ddmlib/src/com') diff --git a/ddms/libs/ddmlib/src/com/android/ddmlib/IDevice.java b/ddms/libs/ddmlib/src/com/android/ddmlib/IDevice.java index 7e90878..8096abd 100755 --- a/ddms/libs/ddmlib/src/com/android/ddmlib/IDevice.java +++ b/ddms/libs/ddmlib/src/com/android/ddmlib/IDevice.java @@ -28,8 +28,11 @@ import java.util.Map; public interface IDevice { public final static String PROP_BUILD_VERSION = "ro.build.version.release"; - public final static String PROP_BUILD_VERSION_NUMBER = "ro.build.version.sdk"; + public final static String PROP_BUILD_API_LEVEL = "ro.build.version.sdk"; + public final static String PROP_BUILD_CODENAME = "ro.build.version.codename"; + public final static String PROP_DEBUGGABLE = "ro.debuggable"; + /** Serial number of the first connected emulator. */ public final static String FIRST_EMULATOR_SN = "emulator-5554"; //$NON-NLS-1$ /** Device change bit mask: {@link DeviceState} change. */ @@ -39,6 +42,9 @@ public interface IDevice { /** Device change bit mask: build info change. */ public static final int CHANGE_BUILD_INFO = 0x0004; + /** @deprecated Use {@link #PROP_BUILD_API_LEVEL}. */ + public final static String PROP_BUILD_VERSION_NUMBER = PROP_BUILD_API_LEVEL; + /** * The state of a device. */ -- cgit v1.1