Skip to content
Port Android's applypatch to Linux, base on BSPATCH
C Scilab Assembly C++ Ada C# Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bzip2
edify
libmincrypt
mincrypt
minelf
mtdutils
zlib
README.md
applypatch
applypatch.c
applypatch.h
bsdiff.c
bspatch.c
freecache.c
imgdiff.h
imgpatch.c
main.c
make
utils.c
utils.h

README.md

Applypatch_for_Linux

Port Android's applypatch to Linux, base on BSPATCH(Android4.1)

  usage: ./applypatch <src-file> <tgt-file> <tgt-sha1> <tgt-size> [<src-sha1>:<patch> ...]
     or  ./applypatch -c <file> [<sha1> ...]
     or  ./applypatch -s <bytes>
     or  ./applypatch -l
  
  Filenames may be of the form
    MTD:<partition>:<len_1>:<sha1_1>:<len_2>:<sha1_2>:...
  to specify reading from or writing to an MTD partition.

It's used for applying the patch which is made by bsdiff on PC. Trust me, even though the patch is made by bsdiff, but it can not be applied by bspatch on PC, cause Android's recovery use applypatch, so I ported it.

Forgive me, there isn't a Makefile, if you want to compile it again, run ./make please.

Be glad to help u! :)

You can’t perform that action at this time.