diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-09-02 17:14:41 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-09-02 17:14:41 -0700 |
commit | 43b6803095e41e6a1cf844a77813c6cdbdc84ec3 (patch) | |
tree | 19936d54d151179603e2a7cb7e3675fbdbe160a5 /tools/aapt | |
parent | d180232e92b78067beb7f84d7f3d1d21865f0594 (diff) | |
download | frameworks_base-43b6803095e41e6a1cf844a77813c6cdbdc84ec3.zip frameworks_base-43b6803095e41e6a1cf844a77813c6cdbdc84ec3.tar.gz frameworks_base-43b6803095e41e6a1cf844a77813c6cdbdc84ec3.tar.bz2 |
Implement #2964234: Add support for <uses-package> element to aapt
Change-Id: Ifb381f387cab7e5a99006691e330d0e3d9d0f250
Diffstat (limited to 'tools/aapt')
-rw-r--r-- | tools/aapt/Command.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp index b0f086b..f71ebb9 100644 --- a/tools/aapt/Command.cpp +++ b/tools/aapt/Command.cpp @@ -853,6 +853,15 @@ int doDump(Bundle* bundle) error.string()); goto bail; } + } else if (tag == "uses-package") { + String8 name = getAttribute(tree, NAME_ATTR, &error); + if (name != "" && error == "") { + printf("uses-package:'%s'\n", name.string()); + } else { + fprintf(stderr, "ERROR getting 'android:name' attribute: %s\n", + error.string()); + goto bail; + } } else if (tag == "original-package") { String8 name = getAttribute(tree, NAME_ATTR, &error); if (name != "" && error == "") { |