1. Are you ready for the Galaxy S20? Here is everything we know so far!

Packing and repacking an APK file

Discussion in 'Android Development' started by aymanar, Apr 14, 2012.

  1. aymanar

    aymanar Lurker
    Thread Starter

    Hi everyone. I'm Ayman, and this is my first post in the forum :)

    I'm creating a software that will guide the user through a few steps, to publish an android application (APK file).

    The way I am doing this, is that the APK file is already compiled, and all I need to do is replace an XML file in the package, and that will change the behaviour of the application. My big problem now, is that unpacking the apk file, and doing any tiny text edit, and then packing it again, breaks the signature and prevents the application from running on any device, giving a message that the signature is incorrect.

    How can I solve this? I want to safely open the APK, write something in a text file, and close it again. Note that this operation will be done on the user's computer (after he purchases our application) so we're look for a command-line tool with no special requirements like JDK.

    Any help?

    1. Download the Forums for Android™ app!


  2. aymanar

    aymanar Lurker
    Thread Starter

    That's the error I'm getting: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

Share This Page