diff options
author | Elliott Hughes <enh@google.com> | 2019-05-06 17:45:35 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-05-06 17:45:35 -0700 |
commit | dfe3d688fc6eae53a2cb750c268c2f37650ab472 (patch) | |
tree | f3d06229be5badbfc604ae1c2c088e39ffa66449 /libs/androidfw/ApkAssets.cpp | |
parent | 816f0fed85d028611380b3516945108e95c29670 (diff) | |
parent | 78791cd8d7a8015955d0db4bd9c45d337b8c21c2 (diff) |
Merge "Track libziparchive API change." am: 32581e1dd2
am: 78791cd8d7
Change-Id: Id4ac5019e267fbd0a32a41437e92c3f802e334e8
Diffstat (limited to 'libs/androidfw/ApkAssets.cpp')
-rw-r--r-- | libs/androidfw/ApkAssets.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/androidfw/ApkAssets.cpp b/libs/androidfw/ApkAssets.cpp index 7b7599ff74ec..fc3fee76a582 100644 --- a/libs/androidfw/ApkAssets.cpp +++ b/libs/androidfw/ApkAssets.cpp @@ -125,9 +125,8 @@ std::unique_ptr<const ApkAssets> ApkAssets::LoadImpl( std::unique_ptr<ApkAssets> loaded_apk(new ApkAssets(unmanaged_handle, path, last_mod_time)); // Find the resource table. - ::ZipString entry_name(kResourcesArsc.c_str()); ::ZipEntry entry; - result = ::FindEntry(loaded_apk->zip_handle_.get(), entry_name, &entry); + result = ::FindEntry(loaded_apk->zip_handle_.get(), kResourcesArsc, &entry); if (result != 0) { // There is no resources.arsc, so create an empty LoadedArsc and return. loaded_apk->loaded_arsc_ = LoadedArsc::CreateEmpty(); @@ -165,9 +164,8 @@ std::unique_ptr<const ApkAssets> ApkAssets::LoadImpl( std::unique_ptr<Asset> ApkAssets::Open(const std::string& path, Asset::AccessMode mode) const { CHECK(zip_handle_ != nullptr); - ::ZipString name(path.c_str()); ::ZipEntry entry; - int32_t result = ::FindEntry(zip_handle_.get(), name, &entry); + int32_t result = ::FindEntry(zip_handle_.get(), path, &entry); if (result != 0) { return {}; } |