From 2fee0ed6eb99b211efa06f095a41268a2021214a Mon Sep 17 00:00:00 2001 From: Jeff Hamilton Date: Wed, 6 Jan 2010 15:46:38 -0600 Subject: Add the --rename-manifest-package option to aapt. It allows you to force override the manifest package listed in the AndroidManifest.xml when creating an APK file. Change-Id: I7eac7943c4e56610b65728ae54773a273634fd9d --- tools/aapt/Main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tools/aapt/Main.cpp') diff --git a/tools/aapt/Main.cpp b/tools/aapt/Main.cpp index 1e6b52ef1c90..6675ac270a10 100644 --- a/tools/aapt/Main.cpp +++ b/tools/aapt/Main.cpp @@ -436,6 +436,15 @@ int main(int argc, char* const argv[]) } else if (strcmp(cp, "-utf16") == 0) { bundle.setEncodingSpecified(true); bundle.setUTF8(false); + } else if (strcmp(cp, "-rename-manifest-package") == 0) { + argc--; + argv++; + if (!argc) { + fprintf(stderr, "ERROR: No argument supplied for '--rename-manifest-package' option\n"); + wantUsage = true; + goto bail; + } + bundle.setManifestPackageNameOverride(argv[0]); } else { fprintf(stderr, "ERROR: Unknown option '-%s'\n", cp); wantUsage = true; -- cgit v1.2.3-59-g8ed1b