diff options
author | Adam Lesinski <adamlesinski@google.com> | 2014-11-03 12:03:08 -0800 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2014-11-03 15:55:44 -0800 |
commit | de7de47fef1dcaa26d553665d89e4d3792325c3f (patch) | |
tree | 0d9551d2f037b841f325bbbd3ba27a309e9441b3 /libs/androidfw | |
parent | f7ffcaa7a478eaafc121e84b14dcaf2503dd5457 (diff) | |
download | frameworks_base-de7de47fef1dcaa26d553665d89e4d3792325c3f.zip frameworks_base-de7de47fef1dcaa26d553665d89e4d3792325c3f.tar.gz frameworks_base-de7de47fef1dcaa26d553665d89e4d3792325c3f.tar.bz2 |
Add error checking to aapt for split generation
Change-Id: Ica627db6a671f6a6c35f98bfd9c03598ffe103ce
Diffstat (limited to 'libs/androidfw')
-rw-r--r-- | libs/androidfw/ResourceTypes.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/androidfw/ResourceTypes.cpp b/libs/androidfw/ResourceTypes.cpp index f1e4858..3cf1021 100644 --- a/libs/androidfw/ResourceTypes.cpp +++ b/libs/androidfw/ResourceTypes.cpp @@ -3645,8 +3645,12 @@ ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag Entry entry; status_t err = getEntry(grp, t, e, &desiredConfig, &entry); if (err != NO_ERROR) { + // Only log the failure when we're not running on the host as + // part of a tool. The caller will do its own logging. +#ifndef STATIC_ANDROIDFW_FOR_TOOLS ALOGW("Failure getting entry for 0x%08x (t=%d e=%d) (error %d)\n", resID, t, e, err); +#endif return err; } |