diff options
author | 2021-03-29 20:04:00 +0000 | |
---|---|---|
committer | 2021-03-29 20:04:00 +0000 | |
commit | 0f97905040606c3bba2f90d9dba33c16cb76873a (patch) | |
tree | e05d77ff63ccf67680d0c58ae6ce1de6be11a645 /tools/aapt2/LoadedApk.cpp | |
parent | 74d4d0297792a42aca2cd11cab3cae851d2b0401 (diff) | |
parent | 1d008d1d2a73a8b796add4e18924fcc99220a839 (diff) |
Merge changes I851f9fb9,I60dbcb24 into sc-dev
* changes:
Refactor aapt2 tests ResourceTable changes
Prepare aapt2 for multiple ids per type
Diffstat (limited to 'tools/aapt2/LoadedApk.cpp')
-rw-r--r-- | tools/aapt2/LoadedApk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/aapt2/LoadedApk.cpp b/tools/aapt2/LoadedApk.cpp index e930b47f2901..830bc5fa36aa 100644 --- a/tools/aapt2/LoadedApk.cpp +++ b/tools/aapt2/LoadedApk.cpp @@ -113,7 +113,7 @@ std::unique_ptr<LoadedApk> LoadedApk::LoadProtoApkFromFileCollection( } std::string error; - table = util::make_unique<ResourceTable>(/** validate_resources **/ false); + table = util::make_unique<ResourceTable>(ResourceTable::Validation::kDisabled); if (!DeserializeTableFromPb(pb_table, collection.get(), table.get(), &error)) { diag->Error(DiagMessage(source) << "failed to deserialize " << kProtoResourceTablePath << ": " << error); @@ -157,7 +157,7 @@ std::unique_ptr<LoadedApk> LoadedApk::LoadBinaryApkFromFileCollection( io::IFile* table_file = collection->FindFile(kApkResourceTablePath); if (table_file != nullptr) { - table = util::make_unique<ResourceTable>(/** validate_resources **/ false); + table = util::make_unique<ResourceTable>(ResourceTable::Validation::kDisabled); std::unique_ptr<io::IData> data = table_file->OpenAsData(); if (data == nullptr) { diag->Error(DiagMessage(source) << "failed to open " << kApkResourceTablePath); |