Skip to content

Port Android's applypatch to Linux, base on BSPATCH

Notifications You must be signed in to change notification settings

MyXinF/Applypatch_for_Linux

 
 

Repository files navigation

ATTENTION, This library will not be maintained any more.

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! :)

About

Port Android's applypatch to Linux, base on BSPATCH

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 65.4%
  • Assembly 6.2%
  • HTML 6.0%
  • Scilab 4.6%
  • Ada 3.4%
  • Pascal 2.7%
  • Other 11.7%