May 2017
Beginner to intermediate
470 pages
10h 49m
English
In Android 5.0 or above, the block-based OTA packages can be used. The block-based OTA packages treat the entire partition as a single file and update it at block level. The functions for block-based OTA packages are registered by the RegisterBlockImageFunctions function:
void RegisterBlockImageFunctions() { RegisterFunction("block_image_verify", BlockImageVerifyFn); RegisterFunction("block_image_update", BlockImageUpdateFn); RegisterFunction("range_sha1", RangeSha1Fn); }
The block-based update implementation includes three functions:
Read now
Unlock full access