X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/5c71c5c30b3e71e70972b55ceda8f123d3b628de..ff15ef2b6c0416aef30d4b180983fe53dabd2a28:/Command.cpp diff --git a/Command.cpp b/Command.cpp index 1a536d6..0ef5d55 100644 --- a/Command.cpp +++ b/Command.cpp @@ -1151,7 +1151,12 @@ int doPackage(Bundle* bundle) // Write out R.java constants if (assets->getPackage() == assets->getSymbolsPrivatePackage()) { - err = writeResourceSymbols(bundle, assets, assets->getPackage(), true); + if (bundle->getCustomPackage() == NULL) { + err = writeResourceSymbols(bundle, assets, assets->getPackage(), true); + } else { + const String8 customPkg(bundle->getCustomPackage()); + err = writeResourceSymbols(bundle, assets, customPkg, true); + } if (err < 0) { goto bail; }