diff --git a/libs/androidfw/ResourceTypes.cpp b/libs/androidfw/ResourceTypes.cpp index 52fe9734478e0..1ccc59a6a348f 100644 --- a/libs/androidfw/ResourceTypes.cpp +++ b/libs/androidfw/ResourceTypes.cpp @@ -3935,7 +3935,9 @@ bool ResTable::getResourceName(uint32_t resID, bool allowUtf8, resource_name* ou if (Res_GETPACKAGE(resID)+1 == 0) { ALOGW("No package identifier when getting name for resource number 0x%08x", resID); } else { +#ifndef STATIC_ANDROIDFW_FOR_TOOLS ALOGW("No known package when getting name for resource number 0x%08x", resID); +#endif } return false; }