Doesn't add file in apk instead of zip

2014-02-07
2014-02-07
  • Hello!

    Please, explain the difference:

    When trying 7z.exe a be_social_plugin.apk 1111.txt commandline request, the result is:

    ==========
    7-Zip 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18

    Error: be_social_plugin.apk is not supported archive

    System error:
    неверная функция.
    ==========

    But when you rename apk to zip: be_social_plugin.apk -> be_social_plugin.zip, 7z works great:

    ==========
    7-Zip 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18

    Scanning

    Updating archive be_social_plugin.zip

    Compressing 1111.txt

    Everything is Ok

    ==========

    apk files are only renamed zip files, so there are no differences between zip and apk. Seems to be a bug, isn't it?

    Thank you!

     
    • fernando
      fernando
      2014-02-07

      short answer...
      7z a be_social_plugin.apk -tzip 1111.txt

      apk file format is not "just renamed zip file"; but zip based upon jar.

      it is no bug.

       
      Attachments
  • 7z a be_social_plugin.apk -tzip 1111.txt has worked correctly. Thanks for your help!

     
    Attachments