alibaba / alibaba/AndFix

java.util.zip.ZipException: File too short to be a zip file: 0

Open
#294 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
7k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

手机:Nexus5X 7.0
版本:0.3.1
其他:在小米4.4上运行正常
异常:
```
E/PatchManager: addPatch
java.util.zip.ZipException: File too short to be a zip file: 0
at java.util.zip.ZipFile.(ZipFile.java:208)
at java.util.zip.ZipFile.(ZipFile.java:147)
at java.util.jar.JarFile.(JarFile.java:161)
at java.util.jar.JarFile.(JarFile.java:125)
at com.alipay.euler.andfix.patch.Patch.init(Patch.java:75)
at com.alipay.euler.andfix.patch.Patch.(Patch.java:67)
at com.alipay.euler.andfix.patch.PatchManager.addPatch(PatchManager.java:126)
at com.alipay.euler.andfix.patch.PatchManager.initPatchs(PatchManager.java:112)
at com.alipay.euler.andfix.patch.PatchManager.init(PatchManager.java:105)
at g.andfix.com.andfix.MainActivity.onCreate(MainActivity.java:36)
at android.app.Activity.performCreate(Activity.java:6664)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at Patch.java:75 and trace the patch path from PatchManager.java:105, 112, and 126, using MainActivity.java:36 as the entry point. Compare patch initialization on Nexus 5X Android 7.0 with the reported working Xiaomi Android 4.4 case, then identify why the file is zero bytes and verify that patch loading no longer raises this exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.