diff options
author | Tim Kilbourn <tkilbourn@google.com> | 2014-10-24 21:24:59 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2014-10-24 21:24:59 +0000 |
commit | a9aecc0c29ce9b9692b9b317559f83b2520dcc43 (patch) | |
tree | 5889226f88b60d09c55de7c6714dd67a7da96093 /tools/aapt | |
parent | 14dd733073c3003a8d9f0d4201199d5a244100d1 (diff) | |
parent | 181c18efd438f7a5e8cc18327367c49bf51795be (diff) | |
download | frameworks_base-a9aecc0c29ce9b9692b9b317559f83b2520dcc43.zip frameworks_base-a9aecc0c29ce9b9692b9b317559f83b2520dcc43.tar.gz frameworks_base-a9aecc0c29ce9b9692b9b317559f83b2520dcc43.tar.bz2 |
Merge "aapt updates for Android TV" into lmp-mr1-dev automerge: 6af7d76
automerge: 181c18e
* commit '181c18efd438f7a5e8cc18327367c49bf51795be':
aapt updates for Android TV
Diffstat (limited to 'tools/aapt')
-rw-r--r-- | tools/aapt/Command.cpp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp index 70044f2..b7484a3 100644 --- a/tools/aapt/Command.cpp +++ b/tools/aapt/Command.cpp @@ -308,6 +308,7 @@ enum { PUBLIC_KEY_ATTR = 0x010103a6, CATEGORY_ATTR = 0x010103e8, BANNER_ATTR = 0x10103f2, + ISGAME_ATTR = 0x10103f4, }; String8 getComponentName(String8 &pkgName, String8 &componentName) { @@ -1125,13 +1126,35 @@ int doDump(Bundle* bundle) error.string()); goto bail; } + + String8 banner = AaptXml::getResolvedAttribute(res, tree, BANNER_ATTR, &error); + if (error != "") { + fprintf(stderr, "ERROR getting 'android:banner' attribute: %s\n", + error.string()); + goto bail; + } printf("application: label='%s' ", ResTable::normalizeForOutput(label.string()).string()); - printf("icon='%s'\n", ResTable::normalizeForOutput(icon.string()).string()); + printf("icon='%s'", ResTable::normalizeForOutput(icon.string()).string()); + if (banner != "") { + printf(" banner='%s'", ResTable::normalizeForOutput(banner.string()).string()); + } + printf("\n"); if (testOnly != 0) { printf("testOnly='%d'\n", testOnly); } + int32_t isGame = AaptXml::getResolvedIntegerAttribute(res, tree, + ISGAME_ATTR, 0, &error); + if (error != "") { + fprintf(stderr, "ERROR getting 'android:isGame' attribute: %s\n", + error.string()); + goto bail; + } + if (isGame != 0) { + printf("application-isGame\n"); + } + int32_t debuggable = AaptXml::getResolvedIntegerAttribute(res, tree, DEBUGGABLE_ATTR, 0, &error); if (error != "") { |