Android OTA版本任意升级

Android目前的版本只能旧版本升级新版本,无法升级旧版本。
        Android OTA升级主要是ota_from_target_files.py这个脚本,文件目录在build/tools/releasetools,OTA升级判断版本是否可以升级,主要基于时间戳的判断,既然基于时间戳判断,只要将脚本中时间的判断注释即可。
def WriteFullOTAPackage(input_zip, output_file):
target_info = BuildInfo(OPTIONS.info_dict, OPTIONS.oem_dicts)
# We don't know what version it will be installed on top of. We expect the API
# just won't change very often. Similarly for fstab, it might have changed in
# the target build.
target_api

Android OTA版本任意升级最先出现在Python成神之路

版权声明:
作者:倾城
链接:https://www.techfm.club/p/20932.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>