Comments (3)
I am not aware of any plans to port this library to C or C++, but it is certainly possible since zlib, the deflate library, is certainly available in those languages as well (and since both the Android Open Source Project and the Open JDK use the same library, it shouldn't be a problem from a compatibility standpoint).
Note that you could generate in Java (server-side, presumably most servers can run Java if needed) and apply in C/C++.
You are of course free to implement your own patch applier in C++ that is compatible with the patch format, which is described in full detail in the README, The patch applier is far less complex than the patch generator. The logic is simpler and more straightforward because all the hard work of planning and generating the patch has been done already.
The FileByFileV1DeltaApplier is the best starting place to understand what you need to do. If you follow the workflow in that class down into all the other various classes it uses, you will find 100% of the logic required to apply a patch and you can then either implement something compatible on your own or attempt a straight C/C++ port of the class structure, as you see fit.
Good luck!
from archive-patcher.
Quick additional note - if re-implementing do be aware that although bsdiff is used as the delta algorithm, it has been stripped of its normal bzip compression. I opened a new issue to update the README documentation to make this clearer to anyone else trying to do something similar (issue 16).
from archive-patcher.
Thanks for the support above. There is enough info.
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
- On Android 12 devices, The file generated with the patch was different from the origin file; HOT 16
- 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.