MCPcopy Create free account
hub / github.com/TeamWin/Team-Win-Recovery-Project / applypatch

Function applypatch

applypatch/applypatch.cpp:575–638  ·  view source on GitHub ↗

This function applies binary patches to EMMC target files in a way that is safe (the original file is not touched until we have the desired replacement for it) and idempotent (it's okay to run this program multiple times). - If the SHA-1 hash of is , does nothing and exits successfully. - Otherwise, if the SHA-1 hash of is one of the entrie

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

ApplyPatchFnFunction · 0.85
PatchModeFunction · 0.85

Calls 7

ParseSha1Function · 0.85
LoadFileContentsFunction · 0.85
short_sha1Function · 0.85
FindMatchingPatchFunction · 0.85
cache_temp_sourceMethod · 0.80
GenerateTargetFunction · 0.70
clearMethod · 0.45

Tested by

no test coverage detected