Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last step Prob #72

Open
Zoldyck07 opened this issue Aug 18, 2014 · 1 comment
Open

Last step Prob #72

Zoldyck07 opened this issue Aug 18, 2014 · 1 comment

Comments

@Zoldyck07
Copy link

Compress the target_files dir into zip file
/home/zoldyck/patchrom/nicki/out/target_files
zip -q -r -y /home/zoldyck/patchrom/nicki/out/target_files.zip *

zip error: Zip file structure invalid (/home/zoldyck/patchrom/nicki/out/target_files.zip)
/home/zoldyck/patchrom/nicki
Sign target files
Traceback (most recent call last):
File "/home/zoldyck/patchrom/tools/releasetools/sign_target_files_apks", line 354, in
main(sys.argv[1:])
File "/home/zoldyck/patchrom/tools/releasetools/sign_target_files_apks", line 330, in main
input_zip = zipfile.ZipFile(args[0], "r")
File "/usr/lib/python2.7/zipfile.py", line 770, in init
self._RealGetContents()
File "/usr/lib/python2.7/zipfile.py", line 811, in _RealGetContents
raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file
mv: cannot stat ‘temp.zip’: No such file or directory
Build full ota package: /home/zoldyck/patchrom/nicki/out/fullota.zip
unzipping target target-files...
[/home/zoldyck/patchrom/nicki/out/target_files.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /home/zoldyck/patchrom/nicki/out/target_files.zip or
/home/zoldyck/patchrom/nicki/out/target_files.zip.zip, and cannot find /home/zoldyck/patchrom/nicki/out/target_files.zip.ZIP, period.

ERROR: failed to unzip input target-files "/home/zoldyck/patchrom/nicki/out/target_files.zip"

make: *** [fullota] Error 1

Anyone know how to fix that?

@kat0072
Copy link

kat0072 commented Feb 12, 2015

To fix this delete the existing Target_Files.zip from your OUT folder and run the same command again.
You can find that zip at this location: /home/zoldyck/patchrom/nicki/out/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants