Giter Club home page Giter Club logo

Comments (8)

sisong avatar sisong commented on May 20, 2024

返回1(也就是PATCH_OPENREAD_ERROR), 说明文件(old.apk或add.diff)无法访问到;
另外tempUncompressFilePath参数应该是一个文件名,而不能是目录;

from apkdiffpatch.

h923745834 avatar h923745834 commented on May 20, 2024

临时解压文件已改成
String tempUncompressFilePath=root+"/360/temp";
之前都是访问权限问题,现在返回 7,有生成新文件,但0B.
我调试是读写权限都有了。不知什么问题?

from apkdiffpatch.

h923745834 avatar h923745834 commented on May 20, 2024

@sisong

from apkdiffpatch.

sisong avatar sisong commented on May 20, 2024

你自己可以看返回值(TPatchResult)是什么意思的,7是PATCH_COMPRESSTYPE_ERROR,表示解压缩插件和压缩类型不匹配(或者add.diff的数据有误);

另外:add.diff 是用ZipDiff命令生成的吗? 这个文件也可以用ZipPatch在电脑上先测试一下

from apkdiffpatch.

h923745834 avatar h923745834 commented on May 20, 2024

@sisong 周一好,确认了一下,我们后端是 使用hdiffz -s -d yqqs_v1.3.2.apk yqqs_v1.4.2.apk yqqs.diff
来生成这个差分包的。在后端他们测试是可以合成正确的新包。这样是不是说前端解压方式不对?如果不对,前后端分别使用哪个工具呢?

from apkdiffpatch.

sisong avatar sisong commented on May 20, 2024

你用错工具了: hdiffz和hpatchz对应;而ApkNormalized+ZipDiff和ZipPatch对应 (这是针对apk、zip文件格式的优化版); libapkpatch.so是ZipPatch的android库;
hpatchz的android库需要你自己编译,只裁剪出自己需要的那一部分功能来生成so;

from apkdiffpatch.

h923745834 avatar h923745834 commented on May 20, 2024

哪套工具比较合适已上线应用?我看了一下apkDiffPatch比较高效

from apkdiffpatch.

sisong avatar sisong commented on May 20, 2024

我们在Andoroid上用的ApkDiffPatch这套; 在PC上用的HDiffPatch这套(支持目录diff&patch);

from apkdiffpatch.

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.