Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Android 11 (R) [API 30] : Zlib not compatible on this system #175

Open
aravindakv opened this issue Feb 17, 2021 · 3 comments
Open

Android 11 (R) [API 30] : Zlib not compatible on this system #175

aravindakv opened this issue Feb 17, 2021 · 3 comments

Comments

@aravindakv
Copy link

aravindakv commented Feb 17, 2021

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?

@hamid97m
Copy link

Any solution?

@hamid97m
Copy link

I change the Zlib version.
You can see in my PR

@berlix
Copy link

berlix commented May 20, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants