android ota upgrade package shield timestamp comparison

In the Android OTA upgrade package, there is an upgrade script, which will check the compilation time of the recovey image and the compilation time of the OTA package. If the recovey is newer than the OTA package time, the upgrade will fail.
Method 1: Directly shield the comparison function, go to the script build/tools/releasetools/ota_from_target_files, and comment out the call to the function script.AssertOlderBuild(ts, ts_text), so that the timestamp will not be detected in the compiled OTA.
Method 2: When generating the ota package, specify not to compare the time and timestamp, go to the file build/core/Makefile, find the place where ota_from_target_files is called, and add the -n parameter, so that the timestamp will not be detected in the compiled OTA. .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325812674&siteId=291194637