Giter Site home page Giter Site logo

Comments (16)

hamid97m avatar hamid97m commented on May 22, 2024 2

It's fixed in my PR

from archive-patcher.

berlix avatar berlix commented on May 22, 2024 2

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.

pspencil avatar pspencil commented on May 22, 2024 1

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.

sisong avatar sisong commented on May 22, 2024 1

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.

ityancs avatar ityancs commented on May 22, 2024 1

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.

ityancs avatar ityancs commented on May 22, 2024 1

finally I copy the zlib jni code(below android 12) solved

from archive-patcher.

sun804336516 avatar sun804336516 commented on May 22, 2024

I also encountered this problem

from archive-patcher.

hamidmansouri avatar hamidmansouri commented on May 22, 2024

me too

from archive-patcher.

GreenPepperForPotato avatar GreenPepperForPotato commented on May 22, 2024

me too

from archive-patcher.

aravindakv avatar aravindakv commented on May 22, 2024

I also encountered this problem. Its issue with only Android 12, works fine in linux PC.

from archive-patcher.

hamid97m avatar hamid97m commented on May 22, 2024

Any solution? @pspencil

from archive-patcher.

aravindakv avatar aravindakv commented on May 22, 2024

How to integrate sfpatcher; in android app? are there jar/aar files available?

from archive-patcher.

hamid97m avatar hamid97m commented on May 22, 2024

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.

hamid97m avatar hamid97m commented on May 22, 2024

I finally fixed this problem; in the near future, I will make a PR

from archive-patcher.

aravindakv avatar aravindakv commented on May 22, 2024

finally I copy the zlib jni code(below android 12) solved

Can you submit changes and share PR details?

from archive-patcher.

ityancs avatar ityancs commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.