MiCode / patchrom

Use disassemble/assemble technology to porting miui to misc android devices
http://micode.net/forum-55-1.html
493 stars 370 forks source link

Help with patchrom Value Error on Ubuntu 17 #145

Open leon83 opened 7 years ago

leon83 commented 7 years ago

Cause i think i get no answer in other issue - id like to try again and sorry that i open a new issue . I know devs got less time - but i stuck on this error for weeks - googled for hours but no solution.

I get following error Compress the target_files dir into zip file /home/lwx-net/bin/patchrom/sony Build full ota package: /home/lwx-net/bin/patchrom/sony/stockrom.zip unzipping target target-files... unable to load device-specific module; assuming none building image from target_files BOOT... Traceback (most recent call last): File "/home/lwx-net/bin/patchrom/tools/releasetools/ota_from_target_files", line 1792, in <module> main(sys.argv[1:]) File "/home/lwx-net/bin/patchrom/tools/releasetools/ota_from_target_files", line 1747, in main WriteFullOTAPackage(input_zip, output_zip) File "/home/lwx-net/bin/patchrom/tools/releasetools/ota_from_target_files", line 640, in WriteFullOTAPackage system_items.GetMetadata(input_zip) File "/home/lwx-net/bin/patchrom/tools/releasetools/ota_from_target_files", line 202, in GetMetadata key, value = element.split("=") ValueError: need more than 1 value to unpack

On Xda i read is has something todo with the metadata i corrected these but when i tried again to get /ota_target_from_phone -r command - it will overwrite it - is there a command that i can make the stockrom zip again? (think the ota target command will open a variable to build the stockrom zip correct me if im false .

Thank you !