Generate OTA Package With Error : Magic should be 0xED26FF3A

176 views
Skip to first unread message

henry son

unread,
Feb 3, 2020, 10:37:56 AM2/3/20
to Android Building
Hi All,

I'm following the OTA tutorial from Android official source: https://source.android.com/devices/tech/ota/tools
I'm getting bellow error when do OTA generation, I'm sure that I have followed all pre-condition.

These are the commands:
make dist DIST_DIR=dist_output
./build/make/tools/releasetools/ota_from_target_files \
    dist_output
/tardis-target_files.zip \
    ota_update
.zip


Error output:
using prebuilt recovery.img from IMAGES...
Traceback (most recent call last):
 
File "./build/make/tools/releasetools/ota_from_target_files", line 1532, in <module>
    main
(sys.argv[1:])
 
File "./build/make/tools/releasetools/ota_from_target_files", line 1487, in main
   
WriteFullOTAPackage(input_zip, output_zip)
 
File "./build/make/tools/releasetools/ota_from_target_files", line 486, in WriteFullOTAPackage
    system_tgt
= GetImage("system", OPTIONS.input_tmp)
 
File "./build/make/tools/releasetools/ota_from_target_files", line 316, in GetImage
   
return sparse_img.SparseImage(path, mappath, clobbered_blocks)
 
File "/home/android/fresh_android_8/build/make/tools/releasetools/sparse_img.py", line 51, in __init__
   
raise ValueError("Magic should be 0xED26FF3A but is 0x%08X" % (magic,))
ValueError: Magic should be 0xED26FF3A but is 0x00000000

I will very much appreciated on your help.

Thanks and best regards,
Son Le

Reply all
Reply to author
Forward
0 new messages