Skip to content

fix: skip empty-name entries when unzipping APK - #208

Open
ntgr-xhan wants to merge 1 commit into
aiselp:setup-v7from
ntgr-xhan:fix-zip-unzip-empty-name
Open

fix: skip empty-name entries when unzipping APK#208
ntgr-xhan wants to merge 1 commit into
aiselp:setup-v7from
ntgr-xhan:fix-zip-unzip-empty-name

Conversation

@ntgr-xhan

Copy link
Copy Markdown

修复打包时 解压template.zip遇到空名文件导致打包失败的问题

Some APKs (e.g. template.apk built by zipflinger/aapt2) contain a zip entry with an empty file name. File(dir, "") resolves to the target directory itself, and opening it as a file throws EISDIR, which broke the in-app APK build at the unzip step. Skip such entries in Zip.unzip.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 duplication

Metric Results
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant