当我使用Android版本工具运行ota_from_target_files时,我尝试了很多种格式,但都没能找出我OSError: [Errno 2] No such file or directory错误的来源。
parallels@ubuntu:~/Git$ /home/parallels/Git/build/tools/releasetools/ota_from_target_files /home/parallels/Git/tmp/ota-dest.zip /home/parallels/Git/tmp/ota_update.zip
unzipping target target-files...
(using device-specific extensions from target_files)
--- can't determine the cache partition size ---
loaded device-specific extensions from /tmp/targetfiles-hVvBNo/META/releasetools.py
using prebuilt recovery.img from IMAGES...
using prebuilt boot.img from IMAGES...
Traceback (most recent call last):
File "/home/parallels/Git/build/tools/releasetools/ota_from_target_files", line 1801, in <module>
main(sys.argv[1:])
File "/home/parallels/Git/build/tools/releasetools/ota_from_target_files", line 1757, in main
WriteFullOTAPackage(input_zip, output_zip)
File "/home/parallels/Git/build/tools/releasetools/ota_from_target_files", line 643, in WriteFullOTAPackage
recovery_img, boot_img)
File "/home/parallels/Git/build/tools/releasetools/common.py", line 1491, in MakeRecoveryPatch
_, _, patch = d.ComputePatch()
File "/home/parallels/Git/build/tools/releasetools/common.py", line 1151, in ComputePatch
p = Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/home/parallels/Git/build/tools/releasetools/common.py", line 87, in Run
return subprocess.Popen(args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory发布于 2016-02-28 21:25:56
检查imgdiff工具是否可用:find out/host/ -name "*imgdiff*"
尝试运行make otatools来构建imgdiff可执行文件。
https://stackoverflow.com/questions/34750165
复制相似问题