1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

How to sign multiple apk's at once??

Discussion in 'Android Roms' 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?