[Android] JavierAlonso:
ValueError: need more than X values to unpack

Hi! Now I'm gonna go into another common issue while making fullota. :silly:

In Terminal, you'll get something like this:

using prebuilt boot.img...
Traceback (most recent call last):
File "/home/develop/patchrom/tools/releasetools/ota_from_target_files", line 884, in <module>
main(sys.argv[1:])
File "/home/develop/patchrom/tools/releasetools/ota_from_target_files", line 852, in main
WriteFullOTAPackage(input_zip, output_zip)
File "/home/develop/patchrom/tools/releasetools/ota_from_target_files", line 432, in WriteFullOTAPackage
Item.GetMetadata(input_zip)
File "/home/develop/patchrom/tools/releasetools/ota_from_target_files", line 163, in GetMetadata
name, uid, gid, mode = columns[:4]
ValueError: need more than 2 values to unpack
make: *** [fullota] Error 1

It seems that we'll need to make a lot of changes and too much stuff, but don't worry about it, it's very easy to solve.

What you've to do is look for a file called "filesystem_config.txt", which is located at:

patchrom/device/metadata

. Once you open it, it will look as follows:

Segmentation fault
system 0 0 755
system/bin/app_process_vendor 0 2000 755
system/bin/dexopt_vendor 0 2000 755
system/etc 0 0 755
system/etc/apns-conf.xml 0 0 644
system/etc/audio_effects.conf 0 0 644
system/etc/audio_policy.conf 0 0 644
system/etc/bash 0 0 755
system/etc/bash/bash_logout 0 0 644
system/etc/bash/bashrc 0 0 644
system/etc/bluetooth 0 0 755
system/etc/bluetooth/auto_pair_devlist.conf 0 0 644
system/etc/bluetooth/bt_did.conf 0 0 644
system/etc/bluetooth/bt_stack.conf 0 0 644
system/etc/calib.dat 0 0 644
system/etc/CHANGELOG-CM.txt 0 0 644
system/etc/clatd.conf 0 0 644
system/etc/dhcpcd 0 0 755
system/etc/dhcpcd/dhcpcd.conf 0 0 644
system/etc/dhcpcd/dhcpcd-hooks 0 0 755
system/etc/dhcpcd/dhcpcd-hooks/10-mtu 0 0 644
system/etc/dhcpcd/dhcpcd-hooks/20-dns.conf 0 0 644
system/etc/dhcpcd/dhcpcd-hooks/95-configured 0 0 644
system/etc/dhcpcd/dhcpcd-run-hooks 1014 2000 550
system/etc/ethertypes 0 0 644
system/etc/event-log-tags 0 0 644
system/etc/fallback_fonts.xml 0 0 644
system/etc/firmware 0 0 755
system/etc/firmware/a300_pfp.fw 0 0 644
system/etc/firmware/a300_pm4.fw 0 0 644
system/etc/firmware/modem_fw.* 0 0 755
system/etc/firmware/vidc_1080p.fw 0 0 644
system/etc/firmware/wcd9310 0 0 755
system/etc/firmware/wcd9310/wcd9310_anc.bin 1013 1005 700
system/etc/firmware/wcd9310/wcd9310_mbhc.bin 1013 1005 700
system/etc/firmware/wlan 0 0 755
system/etc/firmware/wlan/prima 0 0 755
system/etc/firmware/wlan/prima/WCNSS_cfg.dat 0 0 644
system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini 1000 1010 600
system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin 0 0 644
system/etc/.has_su_daemon 0 0 644
system/etc/install-cm-recovery.sh 0 0 544
system/etc/NOTICE.html.gz 0 0 644
system/lib/liblbesec.so 0 0 744
system/lost+found 0 0 755
system/xbin/busybox 0 0 6755
system/xbin/insecure 0 2000 6755
system/xbin/oemfix 0 2000 6755
system/xbin/shelld 0 1000 6750

Now you've to delete some things:

After that, the file should look like this:

system 0 0 755
system/bin/app_process_vendor 0 2000 755
system/bin/dexopt_vendor 0 2000 755
system/etc 0 0 755
system/etc/apns-conf.xml 0 0 644
system/etc/audio_effects.conf 0 0 644
system/etc/audio_policy.conf 0 0 644
system/etc/bash 0 0 755
system/etc/bash/bash_logout 0 0 644
system/etc/bash/bashrc 0 0 644
system/etc/bluetooth 0 0 755
system/etc/bluetooth/auto_pair_devlist.conf 0 0 644
system/etc/bluetooth/bt_did.conf 0 0 644
system/etc/bluetooth/bt_stack.conf 0 0 644
system/etc/calib.dat 0 0 644
system/etc/CHANGELOG-CM.txt 0 0 644
system/etc/clatd.conf 0 0 644
system/etc/dhcpcd 0 0 755
system/etc/dhcpcd/dhcpcd.conf 0 0 644
system/etc/dhcpcd/dhcpcd-hooks 0 0 755
system/etc/dhcpcd/dhcpcd-hooks/10-mtu 0 0 644
system/etc/dhcpcd/dhcpcd-hooks/20-dns.conf 0 0 644
system/etc/dhcpcd/dhcpcd-hooks/95-configured 0 0 644
system/etc/dhcpcd/dhcpcd-run-hooks 1014 2000 550
system/etc/ethertypes 0 0 644
system/etc/event-log-tags 0 0 644
system/etc/fallback_fonts.xml 0 0 644
system/etc/firmware 0 0 755
system/etc/firmware/a300_pfp.fw 0 0 644
system/etc/firmware/a300_pm4.fw 0 0 644
system/etc/firmware/modem_fw.* 0 0 755
system/etc/firmware/vidc_1080p.fw 0 0 644
system/etc/firmware/wcd9310 0 0 755
system/etc/firmware/wcd9310/wcd9310_anc.bin 1013 1005 700
system/etc/firmware/wcd9310/wcd9310_mbhc.bin 1013 1005 700
system/etc/firmware/wlan 0 0 755
system/etc/firmware/wlan/prima 0 0 755
system/etc/firmware/wlan/prima/WCNSS_cfg.dat 0 0 644
system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini 1000 1010 600
system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin 0 0 644
system/etc/.has_su_daemon 0 0 644
system/etc/install-cm-recovery.sh 0 0 544
system/etc/NOTICE.html.gz 0 0 644
system/lib/liblbesec.so 0 0 744
system/lost+found 0 0 755
system/xbin/busybox 0 0 6755
system/xbin/insecure 0 2000 6755
system/xbin/oemfix 0 2000 6755
system/xbin/shelld 0 1000 6750

Realise that there aren't empty lines, which were causing the issue.

Finally, save your changes and try to make fullota again. I'll work :D