--- build/tools/releasetools/ota_from_target_files +++ build/tools/releasetools/ota_from_target_files @@ -642,6 +642,15 @@ def LoadSystemFiles(z): out[fn] = common.File(fn, data) return out +def GetMD5(path): + tp_file = open(path,"r") + if tp_file == False: + print("WARNING: cannot generate MD5".path) + return "NONE" + re_value = hashlib.md5(tp_file.read()).hexdigest() + tp_file.close() + del tp_file + return re_value def GetBuildProp(prop, info_dict): """Return the fingerprint of the build of a given target-files info_dict.""" @@ -665,6 +674,12 @@ def WriteIncrementalOTAPackage(target_zip, source_zip, output_zip): OPTIONS.source_inf...