I have spend numerous hours trying to compile this rom for my device as practice...
I ran into a few errors int he past.. and finally was able to get it to compile until now...
it seems like it got stuck on one of the last steps.. and i dont know what to do from here...
does anyone have anything for me?
mkbootimg_args = (str) --ramdisk_offset 0x01600000 recovery_api_version = (int) 2 recovery_size = (int) 10485760 system_size = (int) 1560281088 tool_extensions = (str) device/motorola/xt926/../common userdata_size = (int) 12884901888 using device-specific extensions in device/motorola/common unable to load device-specific module; assuming none Traceback (most recent call last): File "./build/tools/releasetools/ota_from_target_files", line 865, in <module> main(sys.argv[1:]) File "./build/tools/releasetools/ota_from_target_files", line 833, in main WriteFullOTAPackage(input_zip, output_zip) File "./build/tools/releasetools/ota_from_target_files", line 409, in WriteFullOTAPackage script.Mount("/system") File "/home/liamfaille/cm/build/tools/releasetools/edify_generator.py", line 150, in Mount p = fstab[mount_point] KeyError: '/system' make: *** [/home/liamfaille/cm/out/target/product/xt926/cm_xt926-ota-eng.liamfaille.zip] Error 1 [email protected]:~/cm$
The MAIN part of the error is...
p = fstab[mount_point] KeyError: '/system' make: *** [/home/liamfaille/cm/out/target/product/xt926/cm_xt926-ota-eng.liamfaille.zip] Error 1
Related
I am new to Android and Cyanogemod and started build CM 10.2 myself on a virtual Ubuntu machine. I followed the guide available on CM wiki (build for i9100) and I use Suns JDK 7
Everthing works fine, but the last step is causing some problems I don't know how to solve it. I googled and searched the forum, but there is something I am missing. This is the error message I get in my Ubuntu terminal:
Code:
default_system_dev_certificate = (str) build/target/product/security/testkey
extfs_sparse_flag = (str) -s
extra_recovery_keys = (str) build/target/product/security/cm
fs_type = (str) ext4
fstab = (dict) {'/sdcard': <common.Partition object at 0x2902890>, '/cache': <common.Partition object at 0x2902510>, '/data': <common.Partition object at 0x2902610>, '/system': <common.Partition object at 0x29023d0>, '/efs': <common.Partition object at 0x2902590>, '/emmc': <common.Partition object at 0x2902810>, '/preload': <common.Partition object at 0x29026d0>, '/recovery': <common.Partition object at 0x2902790>, '/boot': <common.Partition object at 0x2902650>}
fstab_version = (int) 2
mkbootimg_args = (str)
mkyaffs2_extra_flags = (str) -c 4096 -s 128
recovery_api_version = (int) 2
selinux_fc = (str) /tmp/targetfiles-8ZaTOH/BOOT/RAMDISK/file_contexts
system_size = (int) 536870912
tool_extensions = (str) device/samsung/i9100/../common
userdata_size = (int) 2147483648
using device-specific extensions in device/samsung/common
unable to load device-specific module; assuming none
[COLOR="Red"][B] running: openssl pkcs8 -in build/target/product/security/testkey.pk8 -inform DER -nocrypt
running: java -jar /home/markus/android/system/out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpUfRiuU /home/markus/android/system/out/target/product/i9100/cm_i9100-ota-eng.markus.zip
Error: Could not find or load main class
ERROR: signapk.jar failed: return code 1[/B][/COLOR]
make: *** [/home/markus/android/system/out/target/product/i9100/cm_i9100-ota-eng.markus.zip] Error 1
So what am I missing here?
i was syncing aokp source
then the storage space went down and it errored!
i freed around 80gb after that.
now when i sync it looks like this -
Code:
[email protected]:~/aokp$ repo sync -j4
Traceback (most recent call last):
File "/home/michael/aokp/.repo/repo/main.py", line 500, in <module>
_Main(sys.argv[1:])
File "/home/michael/aokp/.repo/repo/main.py", line 476, in _Main
result = repo._Run(argv) or 0
File "/home/michael/aokp/.repo/repo/main.py", line 155, in _Run
result = cmd.Execute(copts, cargs)
File "/home/michael/aokp/.repo/repo/subcmds/sync.py", line 633, in Execute
to_fetch.sort(key=self._fetch_times.Get, reverse=True)
File "/home/michael/aokp/.repo/repo/subcmds/sync.py", line 768, in Get
self._Load()
File "/home/michael/aokp/.repo/repo/subcmds/sync.py", line 788, in _Load
self._times = pickle.load(f)
File "/usr/lib/python2.7/pickle.py", line 1378, in load
return Unpickler(file).load()
File "/usr/lib/python2.7/pickle.py", line 858, in load
dispatch[key](self)
File "/usr/lib/python2.7/pickle.py", line 880, in load_eof
raise EOFError
EOFError
[email protected]:~/aokp$ repo sync -f
Traceback (most recent call last):
File "/home/michael/aokp/.repo/repo/main.py", line 500, in <module>
_Main(sys.argv[1:])
File "/home/michael/aokp/.repo/repo/main.py", line 476, in _Main
result = repo._Run(argv) or 0
File "/home/michael/aokp/.repo/repo/main.py", line 155, in _Run
result = cmd.Execute(copts, cargs)
File "/home/michael/aokp/.repo/repo/subcmds/sync.py", line 633, in Execute
to_fetch.sort(key=self._fetch_times.Get, reverse=True)
File "/home/michael/aokp/.repo/repo/subcmds/sync.py", line 768, in Get
self._Load()
File "/home/michael/aokp/.repo/repo/subcmds/sync.py", line 788, in _Load
self._times = pickle.load(f)
File "/usr/lib/python2.7/pickle.py", line 1378, in load
return Unpickler(file).load()
File "/usr/lib/python2.7/pickle.py", line 858, in load
dispatch[key](self)
File "/usr/lib/python2.7/pickle.py", line 880, in load_eof
raise EOFError
can some one please explain what happened..i searched for the solution but cant find any.
if there is a thread can you please give me the link.
thanks
[refresh] can anyone help me please
I keep getting issues while building miui v6-KK.
I first got errors because of a faulty/incompatible recovery.fstab, which I fixed.
But now I am getting this SignApk.jar error:
Code:
[email protected]:/home/caelin/android# tools/releasetools/ota_from_target_files -v klte/out/target_files.zip out/product/ota_klte.zip
unzipping target target-files...
running: unzip -o -q klte/out/target_files.zip -d /tmp/targetfiles-RN43AE
--- target info ---
blocksize = (int) 131072
boot_size = (int) 2621440
fstab = (dict) {'/cache': <common.Partition object at 0x7f8a4ef085d0>, '/boot': <common.Partition object at 0x7f8a4ef084d0>, '/system': <common.Partition object at 0x7f8a4ef08550>, '/recovery': <common.Partition object at 0x7f8a4ef08510>, '/firmware': <common.Partition object at 0x7f8a4ef08690>, '/firmware-modem': <common.Partition object at 0x7f8a4ef086d0>, '/data': <common.Partition object at 0x7f8a4ef08590>}
recovery_api_version = (int) 3
recovery_size = (int) 5242880
system_size = (int) 138412032
tool_extensions = (str) .
userdata_size = (int) 205783040
using device-specific extensions in .
unable to load device-specific module; assuming none
using prebuilt boot.img...
[MIUI CUST] OTA: copy data files
[MIUI CUST] OTA: handle relink
[MIUI CUST] OTA: SetPermissions
running: openssl pkcs8 -in build/target/product/security/testkey.pk8 -inform DER -nocrypt
running: java -Xmx4096m -jar /home/caelin/android/tools/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpQjm_tO out/product/ota_klte.zip
Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit
at java.util.Arrays.copyOf(Arrays.java:2271)
at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113)
at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140)
at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:253)
at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:211)
at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:314)
at com.android.signapk.SignApk.copyFiles(SignApk.java:422)
at com.android.signapk.SignApk.main(SignApk.java:490)
ERROR: signapk.jar failed: return code 1
[email protected]:/home/caelin/android#
Bump
Hello, I am having various issues building CM13 for the Blu R1 HD and was hoping somebody would be able to help. I have tried my best to get this working but these are the current error's that I am stuck on.
Here is my Device tree: https://github.com/Bullet25fxbx/android_device_blu_p6601
here is my Kernel: https://github.com/Bullet25fxbx/android_kernel_mediatek_mt6735
Here is my Local Manifest:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Bullet25fxbx/android_device_blu_p6601" path="device/blu/p6601" remote="github" revision="master" />
<project name="Bullet25fxbx/android_kernel_mediatek_mt6735" path="kernel/mediatek/mt6735" remote="github" revision="master" />
</manifest>
When making userdata image:
Code:
Target userdata fs image: /home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img
Running: mkyaffs2image -f /home/bullet25/workspace/cm13/out/target/product/p6601/data /home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img /home/bullet25/workspace/cm13/out/target/product/p6601/root/file_contexts data
Traceback (most recent call last):
File "./build/tools/releasetools/build_image.py", line 549, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/build_image.py", line 542, in main
if not BuildImage(in_dir, image_properties, out_file, target_out):
File "./build/tools/releasetools/build_image.py", line 354, in BuildImage
(_, exit_code) = RunCommand(build_command)
File "./build/tools/releasetools/build_image.py", line 53, in RunCommand
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
build/core/Makefile:1415: recipe for target '/home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img' failed
make: *** [/home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img] Error 1
When making system image:
Code:
Target system fs image: /home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img
Running: mkyaffs2image -f /home/bullet25/workspace/cm13/out/target/product/p6601/system /home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img /home/bullet25/workspace/cm13/out/target/product/p6601/root/file_contexts system
Traceback (most recent call last):
File "./build/tools/releasetools/build_image.py", line 549, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/build_image.py", line 542, in main
if not BuildImage(in_dir, image_properties, out_file, target_out):
File "./build/tools/releasetools/build_image.py", line 354, in BuildImage
(_, exit_code) = RunCommand(build_command)
File "./build/tools/releasetools/build_image.py", line 53, in RunCommand
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Out of space? the tree size of /home/bullet25/workspace/cm13/out/target/product/p6601/system is (MB):
444 /home/bullet25/workspace/cm13/out/target/product/p6601/system
The max is 2672 MB.
build/core/Makefile:1258: recipe for target '/home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img' failed
make: *** [/home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img] Error 1
Making a boot image and recovery image works fine.
Thank you, in advance, anybody who helps.
fixed the error below:
Code:
Installing recovery patch to system partition
Traceback (most recent call last):
File "./build/tools/releasetools/make_recovery_patch", line 55, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/make_recovery_patch", line 37, in main
OPTIONS.info_dict = common.LoadInfoDict(input_dir)
File "/home/bullet25/workspace/cm13/build/tools/releasetools/common.py", line 201, in LoadInfoDict
d["fstab"] = LoadRecoveryFSTab(read_helper, d["fstab_version"], d["device_type"])
File "/home/bullet25/workspace/cm13/build/tools/releasetools/common.py", line 285, in LoadRecoveryFSTab
raise ValueError("malformed recovery.fstab line: \"%s\"" % (line,))
ValueError: malformed recovery.fstab line: "/boot emmc /dev/block/mmcblk0p"
build/core/Makefile:1074: recipe for target '/home/bullet25/workspace/cm13/out/target/product/p6601/system/bin/install-recovery.sh' failed
make: *** [/home/bullet25/workspace/cm13/out/target/product/p6601/system/bin/install-recovery.sh] Error 1
Update: I fixed the malformed error but I still can't figure out the system image error or user data image errors
System:
Code:
Target system fs image: /home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img
Running: mkyaffs2image -f /home/bullet25/workspace/cm13/out/target/product/p6601/system /home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img /home/bullet25/workspace/cm13/out/target/product/p6601/root/file_contexts system
Traceback (most recent call last):
File "./build/tools/releasetools/build_image.py", line 549, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/build_image.py", line 542, in main
if not BuildImage(in_dir, image_properties, out_file, target_out):
File "./build/tools/releasetools/build_image.py", line 354, in BuildImage
(_, exit_code) = RunCommand(build_command)
File "./build/tools/releasetools/build_image.py", line 53, in RunCommand
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Out of space? the tree size of /home/bullet25/workspace/cm13/out/target/product/p6601/system is (MB):
444 /home/bullet25/workspace/cm13/out/target/product/p6601/system
The max is 2672 MB.
build/core/Makefile:1258: recipe for target '/home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img' failed
make: *** [/home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img] Error 1
Userdata:
Code:
Target userdata fs image: /home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img
Running: mkyaffs2image -f /home/bullet25/workspace/cm13/out/target/product/p6601/data /home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img /home/bullet25/workspace/cm13/out/target/product/p6601/root/file_contexts data
Traceback (most recent call last):
File "./build/tools/releasetools/build_image.py", line 549, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/build_image.py", line 542, in main
if not BuildImage(in_dir, image_properties, out_file, target_out):
File "./build/tools/releasetools/build_image.py", line 354, in BuildImage
(_, exit_code) = RunCommand(build_command)
File "./build/tools/releasetools/build_image.py", line 53, in RunCommand
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
build/core/Makefile:1415: recipe for target '/home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img' failed
make: *** [/home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img] Error 1
Been lurking on XDA for a while trying to soak up all the good info here. Finally decided to have a go at building a ROM from source. I'm using Ubuntu in a virtual machine, managed to setup my local repository, included necessary device tree and kernel with custom local manifest.
The build process fails at 99% on the very last step which is creating the flashable zip. I found it quite annoying after waiting 3 hours for it to build, but figured everything is there to create the zip. I then tried make otapackage and it successfully spat out a flashable zip.
I''m perfectly comfortable with command line interfaces but i'm a complete Linux noob, last time I experimented with a Unix flavour was Amix (Amiga port of UNIX System V R4) and couldn't wrap my head around it. Ubuntu is a lot friendlier but I still don't get what the error message is trying to tell me. Can anyone give me a clue?
Code:
[ 99% 16544/16545] build /home/nicholas/aospex/out/target/product/lithium/aosp_lithium-ota-19b2cd9547.zip
FAILED: /home/nicholas/aospex/out/target/product/lithium/aosp_lithium-ota-19b2cd9547.zip
/bin/bash -c "(echo \"Package OTA: /home/nicholas/aospex/out/target/product/lithium/aosp_lithium-ota-19b2cd9547.zip\" ) && (PATH=/home/nicholas/aospex/out/host/linux-x86/bin/:\$PATH MKBOOTIMG=/home/nicholas/aospex/out/host/linux-x86/bin/mkbootimg ./build/tools/releasetools/ota_from_target_files -v --block --extracted_input_target_files /home/nicholas/aospex/out/target/product/lithium/obj/PACKAGING/target_files_intermediates/aosp_lithium-target_files-19b2cd9547 -p /home/nicholas/aospex/out/host/linux-x86 -k build/target/product/security/testkey --backup=true /home/nicholas/aospex/out/target/product/lithium/obj/PACKAGING/target_files_intermediates/aosp_lithium-target_files-19b2cd9547.zip /home/nicholas/aospex/out/target/product/lithium/aosp_lithium-ota-19b2cd9547.zip )"
Package OTA: /home/nicholas/aospex/out/target/product/lithium/aosp_lithium-ota-19b2cd9547.zip
running: openssl pkcs8 -in build/target/product/security/testkey.pk8 -inform DER -nocrypt
--- target info ---
blockimgdiff_versions = (str) 3,4
blocksize = (int) 262144
boot_size = (int) 67108864
build.prop = (dict) {'ro.build.display.id': 'aosp_lithium-userdebug 8.1.0 OPM6.171019.030.H1 19b2cd9547 test-keys', 'ro.wifi.channels': '', 'ro.treble.enabled': 'false', 'ro.modversion': 'AospExtended-v5.8-20180818-2322-UNOFFICIAL', 'ro.build.id': 'OPM6.171019.030.H1', 'ro.product.cpu.abilist': 'arm64-v8a,armeabi-v7a,armeabi', 'ro.build.product': 'lithium', 'ro.build.host': 'nicholas-VirtualBox', 'ro.product.name': 'lithium', 'ro.build.version.security_patch': '2018-08-05', 'ro.product.manufacturer': 'Xiaomi', 'ro.extended.display.version': 'AospExtended-v5.8-UNOFFICIAL', 'ro.product.cpu.abilist32': 'armeabi-v7a,armeabi', 'ro.build.version.incremental': '19b2cd9547', 'ro.build.version.preview_sdk': '0', 'dalvik.vm.isa.arm.features': 'default', 'ro.build.tags': 'test-keys', 'dalvik.vm.isa.arm64.variant': 'kryo', 'ro.aex.device': 'lithium', 'ro.build.version.sdk': '27', 'ro.extended.releasetype': 'UNOFFICIAL', 'ro.build.date': 'Sun Aug 19 00:22:22 BST 2018', 'dalvik.vm.isa.arm.variant': 'kryo', 'dalvik.vm.lockprof.threshold': '500', 'ro.product.locale': 'en-US', 'ro.build.fingerprint': 'Xiaomi/lithium/lithium:7.0/NRD90M/V9.5.5.0.NAAMIFA:user/release-keys', 'ro.build.date.utc': '1534634542', 'ro.build.characteristics': 'default', 'ro.product.cpu.abilist64': 'arm64-v8a', 'ro.build.expect.modem': '2018-07-04 19:18:52,8.7.5', 'ro.build.user': 'nicholas', 'dalvik.vm.isa.arm64.features': 'default', 'ro.expect.recovery_id': '0xeed4e453264d12e67c8b4daa242b8636714b9623000000000000000000000000', 'ro.product.device': 'lithium', 'ro.build.version.all_codenames': 'REL', 'dalvik.vm.stack-trace-dir': '/data/anr', 'ro.build.description': 'lithium-user 7.0 NRD90M V9.5.5.0.NAAMIFA release-keys', 'ro.build.flavor': 'aosp_lithium-userdebug', 'ro.product.cpu.abi': 'arm64-v8a', 'ro.bionic.ld.warning': '1', 'ro.product.brand': 'Xiaomi', 'persist.sys.dalvik.vm.lib.2': 'libart.so', 'ro.build.version.release': '8.1.0', 'ro.build.version.codename': 'REL', 'ro.extended.version': 'v5.8', 'media.recorder.show_manufacturer_and_model': 'true', 'ro.build.type': 'userdebug', 'ro.product.model': 'MI MIX', 'ro.build.version.base_os': '', 'net.bt.name': 'Android'}
default_system_dev_certificate = (str) build/target/product/security/testkey
device_type = (str) MMC
ext_mkuserimg = (str) mkuserimg_mke2fs.sh
extfs_sparse_flag = (str) -s
fs_type = (str) ext4
fstab = (dict) {'none': <common.Partition object at 0x7f3adc335350>, '/cache': <common.Partition object at 0x7f3adc32d9d0>, '/boot': <common.Partition object at 0x7f3adc32d910>, '/system': <common.Partition object at 0x7f3adc32d990>, '/dsp': <common.Partition object at 0x7f3adc32dc10>, '/frp': <common.Partition object at 0x7f3adc3352d0>, '/persist': <common.Partition object at 0x7f3adc32da90>, '/recovery': <common.Partition object at 0x7f3adc32d950>, '/firmware': <common.Partition object at 0x7f3adc32dc50>, '/bt_firmware': <common.Partition object at 0x7f3adc32dc90>, '/misc': <common.Partition object at 0x7f3adc335310>, '/data': <common.Partition object at 0x7f3adc32da10>, '/vendor': <common.Partition object at 0x7f3adc32da50>}
fstab_version = (int) 2
mkbootimg_args = (str)
mkbootimg_version_args = (str) --os_version 8.1.0 --os_patch_level 2018-08-05
multistage_support = (str) 1
ota_override_device = (str) lithium
recovery_api_version = (int) 3
recovery_as_boot = (str)
recovery_mount_options = (str) ext4=max_batch_time=0,commit=1,data=ordered,barrier=1,errors=panic,nodelalloc
recovery_size = (int) 67108864
selinux_fc = (str) /home/nicholas/aospex/out/target/product/lithium/obj/PACKAGING/target_files_intermediates/aosp_lithium-target_files-19b2cd9547/META/file_contexts.bin
squashfs_sparse_flag = (str) -s
system_size = (int) 3221225472
tool_extensions = (str) device/xiaomi/msm8996-common
use_set_metadata = (str) 1
userdata_size = (int) 58846064640
vendor_fs_type = (str) ext4
vendor_size = (int) 872415232
(using device-specific extensions from target_files)
--- can't determine the cache partition size ---
loaded device-specific extensions from /home/nicholas/aospex/out/target/product/lithium/obj/PACKAGING/target_files_intermediates/aosp_lithium-target_files-19b2cd9547/META/releasetools.py
using prebuilt recovery.img from IMAGES...
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 1647, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 1602, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./build/tools/releasetools/ota_from_target_files", line 570, in WriteFullOTAPackage
system_tgt = GetImage("system", OPTIONS.input_tmp)
File "./build/tools/releasetools/ota_from_target_files", line 328, in GetImage
return sparse_img.SparseImage(path, mappath, clobbered_blocks)
File "/home/nicholas/aospex/build/make/tools/releasetools/sparse_img.py", line 39, in __init__
header = struct.unpack("<I4H4I", header_bin)
struct.error: unpack requires a string argument of length 28
ninja: build stopped: subcommand failed.
01:55:58 ninja failed with: exit status 1
I think my repo didnt sync properly, i did make clobber and then repo sync and everything works fine now!