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

Function WriteToPartition

applypatch/applypatch.cpp:248–442  ·  view source on GitHub ↗

Write a memory buffer to 'target' partition, a string of the form "EMMC: [:...]". The target name might contain multiple colons, but WriteToPartition() only uses the first two and ignores the rest. Return 0 on success.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

applypatch_flashFunction · 0.85
GenerateTargetFunction · 0.85

Calls 12

mtd_scan_partitionsFunction · 0.85
mtd_write_partitionFunction · 0.85
mtd_write_dataFunction · 0.85
mtd_write_closeFunction · 0.85
mtd_erase_blocksFunction · 0.85
ota_openFunction · 0.85
ota_writeFunction · 0.85
ota_fsyncFunction · 0.85
ota_closeFunction · 0.85
ota_readFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected