GithubHelp home page GithubHelp logo

lkv1988 / applypatch_for_linux Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 5.0 1.95 MB

Port Android's applypatch to Linux, base on BSPATCH

C 67.98% XSLT 0.49% Perl 0.22% Scilab 4.77% Shell 0.33% C++ 2.68% Java 0.17% CLIPS 0.21% Ada 3.53% Assembly 6.43% C# 2.21% Objective-C 0.85% Makefile 2.13% Roff 1.07% CSS 0.07% HTML 6.26% Lex 0.10% Yacc 0.14% CMake 0.29% SAS 0.07%

applypatch_for_linux's Introduction

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

applypatch_for_linux's People

Contributors

lkv1988 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

applypatch_for_linux's Issues

missing instruction: make -C zlib/

Thanks a lot for providing this port!

I just compiled it under Debian 10 buster.
It did not work at first because one crucial step was missing in the description or in the ./make script:

Do

make -C zlib/

before calling gcc in the main directory.

After doing so the build succeeded despite many compiler warnings.

needs update

The tool cannot cope with apparently newer argument types, e.g.,

applypatch -b /system/etc/recovery-resource.dat EMMC:/dev/block/platform/sdhci-tegra.3/by-name/LNX:5740544:0ad4aff876f7484297d0d46a76c3c03ac57b6e7b EMMC:/dev/block/platform/sdhci-tegra.3/by-name/SOS 73bb2866fe973c898dc40ddb1873ca1c84164709 11704320 0ad4aff876f7484297d0d46a76c3c03ac57b6e7b:/system/recovery-from-boot.p

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.