Comments (16)
It's fixed in my PR
from archive-patcher.
Inspired by @hamid97m's solution, we addressed this issue by bundling zlib 1.2.13 binaries (the currently latest version) and creating a version of Deflater
that uses those.
Sources: https://github.com/EIDU/archive-patcher-android
The library is on Maven Central. See the repo's README.md
for usage instructions.
from archive-patcher.
Any solution? @pspencil
Sorry I don't work on this anymore. I have some vague memories of Android 12 changing the underlying zip library. Perhaps you can try explicitly linking in your own zip lib. (Not sure how to do that though)
from archive-patcher.
My solution 1: ApkDiffPatch; MIT license; C++; linking own zlib; only for own apk; (can't be used by Android app store, because it requires re-signing apks before diff);
My solution 2: sfpatcher; Business license; C++; linking own zlib; is designed for Android app store; patch speed up by a factor of xx than archive-patcher & run with O(1) memory & not need temp files & support large game apk & support android4.1--android13.
from archive-patcher.
I finally fixed this problem; in the near future, I will make a PR
Can you share how to fix it?more PR details?
from archive-patcher.
finally I copy the zlib jni code(below android 12) solved
from archive-patcher.
I also encountered this problem
from archive-patcher.
me too
from archive-patcher.
me too
from archive-patcher.
I also encountered this problem. Its issue with only Android 12, works fine in linux PC.
from archive-patcher.
Any solution? @pspencil
from archive-patcher.
How to integrate sfpatcher; in android app? are there jar/aar files available?
from archive-patcher.
Do you think the problem could be solved by changing the Zlib version in server side for generating diff?@pspencil
If the answer is no, have you any idea about how link own Zlib (1.2.12) in my project? the archive-patcher is using deflater and changing the deflater is not possible, it is loading the zlib in static block. @pspencil
from archive-patcher.
I finally fixed this problem; in the near future, I will make a PR
from archive-patcher.
finally I copy the zlib jni code(below android 12) solved
Can you submit changes and share PR details?
from archive-patcher.
finally I copy the zlib jni code(below android 12) solved
Can you submit changes and share PR details?
copy the zlib c code and use custom Deflater bind the custom zlib with jni。
https://cs.android.com/android/platform/superproject/+/android-10.0.0_r47:external/zlib/src/deflate.c
https://cs.android.com/android/platform/superproject/+/master:libcore/ojluni/src/main/native/Deflater.c
from archive-patcher.
Related Issues (20)
- Compile instructions for bsdiff_jni.cc HOT 8
- Massive performance regression in v2 non-native generator HOT 3
- Truth incompatible with android HOT 4
- Run the demo, it has a NPE, msg is "Inflater has been closed" HOT 19
- Support For iOS HOT 2
- Input too large HOT 2
- Update README to explain that bsdiff is used without compression
- java.lang.NullPointerException: Inflater has been closed HOT 3
- Is this lib production ready or deprecated? HOT 9
- How to run the sample code? HOT 4
- Very slow to apply patch on Android device HOT 3
- Failed to generate patch from APK: java.util.zip.ZipException: EOCD record not found in last 32k of archive, giving up HOT 4
- Android: java.lang.IllegalStateException: setLevel cannot be called after setInput HOT 3
- How to build code on branch v2 HOT 1
- Please open a security advisory HOT 8
- Android 11 (R) [API 30] : Zlib not compatible on this system HOT 3
- Some zlib versions fail the DefaultDeflateCompatibilityWindow compatability test HOT 2
- Android12 aplier File failed HOT 3
- Security Policy violation Binary Artifacts HOT 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from archive-patcher.