am 75c49842: Add maxSdkVersion information in dump badging option

Merge commit '75c498426a17b47d445711bb9e36794b05876a56' into eclair

* commit '75c498426a17b47d445711bb9e36794b05876a56':
  Add maxSdkVersion information in dump badging option
This commit is contained in:
Suchi Amalapurapu
2009-08-18 10:59:08 -07:00
committed by Android Git Automerger

View File

@@ -323,6 +323,7 @@ enum {
LABEL_ATTR = 0x01010001, LABEL_ATTR = 0x01010001,
ICON_ATTR = 0x01010002, ICON_ATTR = 0x01010002,
MIN_SDK_VERSION_ATTR = 0x0101020c, MIN_SDK_VERSION_ATTR = 0x0101020c,
MAX_SDK_VERSION_ATTR = 0x01010271,
REQ_TOUCH_SCREEN_ATTR = 0x01010227, REQ_TOUCH_SCREEN_ATTR = 0x01010227,
REQ_KEYBOARD_TYPE_ATTR = 0x01010228, REQ_KEYBOARD_TYPE_ATTR = 0x01010228,
REQ_HARD_KEYBOARD_ATTR = 0x01010229, REQ_HARD_KEYBOARD_ATTR = 0x01010229,
@@ -587,6 +588,10 @@ int doDump(Bundle* bundle)
targetSdk = code; targetSdk = code;
printf("sdkVersion:'%d'\n", code); printf("sdkVersion:'%d'\n", code);
} }
code = getIntegerAttribute(tree, MAX_SDK_VERSION_ATTR, NULL, -1);
if (code != -1) {
printf("maxSdkVersion:'%d'\n", code);
}
code = getIntegerAttribute(tree, TARGET_SDK_VERSION_ATTR, &error); code = getIntegerAttribute(tree, TARGET_SDK_VERSION_ATTR, &error);
if (error != "") { if (error != "") {
error = ""; error = "";