OSDN Git Service

Merge "ResStringPool: Prevenet boot loop from se fix" into mnc-dev
authorTreeHugger Robot <treehugger-gerrit@google.com>
Wed, 6 Jun 2018 22:09:54 +0000 (22:09 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Wed, 6 Jun 2018 22:09:54 +0000 (22:09 +0000)
libs/androidfw/ResourceTypes.cpp

index 9941e46..428180b 100644 (file)
@@ -457,7 +457,7 @@ status_t ResStringPool::setTo(const void* data, size_t size, bool copyData)
 
     // The chunk must be at least the size of the string pool header.
     if (size < sizeof(ResStringPool_header)) {
-        LOG_ALWAYS_FATAL("Bad string block: data size %zu is too small to be a string block", size);
+        ALOGW("Bad string block: data size %zu is too small to be a string block", size);
         return (mError=BAD_TYPE);
     }
 
@@ -467,7 +467,7 @@ status_t ResStringPool::setTo(const void* data, size_t size, bool copyData)
     if (validate_chunk(reinterpret_cast<const ResChunk_header*>(data), sizeof(ResStringPool_header),
                        reinterpret_cast<const uint8_t*>(data) + size,
                        "ResStringPool_header") != NO_ERROR) {
-        LOG_ALWAYS_FATAL("Bad string block: malformed block dimensions");
+        ALOGW("Bad string block: malformed block dimensions");
         return (mError=BAD_TYPE);
     }