Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE] NOOB/ Beginners : Batch sign and Zipalign your apps/themes

OP srijithn

12th February 2014, 01:09 PM   |  #1  
srijithn's Avatar
OP Senior Member
Flag Pune
Thanks Meter: 207
 
188 posts
Join Date:Joined: Aug 2012
More


GUIDE FOR NOOBS / BEGINNERS/ THEMERS/ DEVELOPERS :
BATCH SIGN AND ZIPALIGN YOUR APPS/THEMES


This guide will show you an easy way to batch sign your apks and zipalign it for uploading to Google Play store.

Requisites
Windows OS ;
Your Signature .Keystore file
Java SDK installed
Zipalign tool (Found in tools directory of Android SDK) or download from attachment.



Method

1. Create a BAT file

a. Open Notepad and paste the following

---------------------------------------------------------------------------
Code:
@echo off

"C:\Program Files\Java\jdk1.7.0_45\bin\jarsigner" -verbose -sigalg MD5withRSA -storepass yourpassword -digestalg SHA1 -keystore yoursigfile.keystore appname.apk aliasname
"Your zipalign path\zipalign" -v 4 "folderpath\Signedapk.apk"Output folder\Zipalignedapk.apk"

echo Thanks for your time
pause
------------------------------------------------------------------------------

b. Correct the path of zipalign.exe and apk files as required.
c. Save the file in .bat format

2. Create a folder anywhere in your computer


3. Copy your .keystore file and the bat file created into this folder

4. Now Copy the apk files into the same folder.,

5. Now just run the bat file to have your signed and zipaligned APKs



For more easiness : Complete package download (find Signalign.zip in attachments)

1. Extract to C:\
2. Copy your unsigned apk files into signalign folder
3. Open the "Sign and zipalign.bat" file in notepad
4. Edit appname ; keystore filename ; keystore password ; alias name
You can add any number apks in the bat file.
5. Run the bat file
6. You have your zipaligned apps ready
Attached Files
File Type: zip Zipalign.zip - [Click for QR Code] (389.4 KB, 61 views)
File Type: zip Signalign.zip - [Click for QR Code] (376.1 KB, 28 views)
Last edited by srijithn; 12th February 2014 at 01:35 PM.
12th February 2014, 01:39 PM   |  #2  
srijithn's Avatar
OP Senior Member
Flag Pune
Thanks Meter: 207
 
188 posts
Join Date:Joined: Aug 2012
More
reserved
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes