Loading tools/aapt/Command.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -634,6 +634,9 @@ int doDump(Bundle* bundle) if (&res == NULL) { fprintf(stderr, "ERROR: dump failed because no resource table was found\n"); goto bail; } else if (res.getError() != NO_ERROR) { fprintf(stderr, "ERROR: dump failed because the resource table is invalid/corrupt.\n"); goto bail; } if (strcmp("resources", option) == 0) { Loading tools/aapt/StringPool.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,14 @@ void strcpy16_htod(uint16_t* dst, const uint16_t* src) void printStringPool(const ResStringPool* pool) { if (pool->getError() == NO_INIT) { printf("String pool is unitialized.\n"); return; } else if (pool->getError() != NO_ERROR) { printf("String pool is corrupt/invalid.\n"); return; } SortedVector<const void*> uniqueStrings; const size_t N = pool->size(); for (size_t i=0; i<N; i++) { Loading Loading
tools/aapt/Command.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -634,6 +634,9 @@ int doDump(Bundle* bundle) if (&res == NULL) { fprintf(stderr, "ERROR: dump failed because no resource table was found\n"); goto bail; } else if (res.getError() != NO_ERROR) { fprintf(stderr, "ERROR: dump failed because the resource table is invalid/corrupt.\n"); goto bail; } if (strcmp("resources", option) == 0) { Loading
tools/aapt/StringPool.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,14 @@ void strcpy16_htod(uint16_t* dst, const uint16_t* src) void printStringPool(const ResStringPool* pool) { if (pool->getError() == NO_INIT) { printf("String pool is unitialized.\n"); return; } else if (pool->getError() != NO_ERROR) { printf("String pool is corrupt/invalid.\n"); return; } SortedVector<const void*> uniqueStrings; const size_t N = pool->size(); for (size_t i=0; i<N; i++) { Loading