Sign multiple apk's at once in ubuntu?

Discussion in 'Android Hacks and Help' started by Drew408, Jul 29, 2010.

  1. Drew408
    Offline

    Drew408 New Member

    Joined:
    May 11, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    Anyone have any idea how I would sign multiple apk's in ~/sign/unsigned and output them to ~/sign/signed with the original apk name? The two issues I'm facing are
    A.) I don't know how to sign all the apk's at one time in a folder using signapk or jarsigner
    B.) When I do sign and individual apk I don't know how to keep the same name from input using *.apk (the wildcard) and keep the original name in the output...any help would be appreciated!

    There are 71 apk's i need to sign and make sure they all are signed with the same key at once. Individually signing them one by one would take too long because after I sign them individually I need to go and rename the signed apk with the original name.

    Here is the code I use to sign an individual apk file:

    cd ~/sign/unsigned
    java -jar /home/andrew/sign/signapk.jar /home/andrew/sign/certificate.pem /home/andrew/sign/key.pk8 ~/sign/unsigned/*.apk ~/sign/signed/signed.apk

    Please tell me how I can keep the original input name to the output without having to rename them and then how could I sign multiple apk's at once?
  2. mozicodo
    Offline

    mozicodo New Member

    Joined:
    May 3, 2010
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Colorado Springs, CO
    I can't tell you of the top of my head, but bash scripting sounds like it's in order for this. If you're more comfortable with Python or Perl or some other scripting language you could use that instead.

    Sent from my Droid using Tapatalk
Search tags for this page

android signapk ubuntu

,

sign apk from ubuntu

,

sign apk on ubuntu