Open aravindakv opened 3 years ago
Any solution?
Is there any reason?
The reason is that Deflater
on Android R and up is in fact incompatible and yields bad results upon patch application.
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.
isCompatible is giving false in Android R version. Is there any reason?
if (!DefaultDeflateCompatibilityWindow().isCompatible) { Logger.W("Zlib not compatible on this system") return false }
Also can we bundle zlib with apkpatcher as a library and make not to use system zlib to avoid these kind of issues during upgrade?