L-JINBIN / ApkDataMultiplexing

APK数据复用优化
128 stars 33 forks source link

Storage APK does not work #2

Closed ghost closed 1 year ago

ghost commented 1 year ago

I made a simple command line tool on PC for this. I repackaged original APK as storage, assuming it means no compression but I'm still getting error that it must be packaged with the stored method, regardless what zip utilities. What I am doing wrong?

Exception in thread "main" java.io.IOException: Entry must be packaged with the stored method: assets/test.apk
    at bin.zip.DataMultiplexing.openEntryAsZipFile(DataMultiplexing.java:156)
    at bin.zip.DataMultiplexing.collectChildren(DataMultiplexing.java:113)
    at bin.zip.DataMultiplexing.optimize(DataMultiplexing.java:44)
    at bin.zip.DataMultiplexing.optimize(DataMultiplexing.java:30)
    at bin.Main.main(Main.java:19)
ghost commented 1 year ago

Nvm I figured it out