Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,443 Members 38,342 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
srijithn
Old
(Last edited by srijithn; 12th February 2014 at 12:35 PM.)
#1  
srijithn's Avatar
Senior Member - OP
Thanks Meter 203
Posts: 180
Join Date: Aug 2012
Location: Pune
Default [GUIDE] NOOB/ Beginners : Batch sign and Zipalign your apps/themes



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:
Select 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, 52 views)
File Type: zip Signalign.zip - [Click for QR Code] (376.1 KB, 25 views)

=========================
Defy : CM11 Quarx ::::::: Atrix HD : CM11 :::::::Meizu MX : MIUI ::::::: Micromax A89 : Touchwiz :::::::
CM11/10.2 Themes::::: Dark/Transparent iOS theme ::: Marvel Themes
Batch Sign & zipalign apk guide
==========================
Hit Thanks, if I helped you !!!!
 
srijithn
Old
#2  
srijithn's Avatar
Senior Member - OP
Thanks Meter 203
Posts: 180
Join Date: Aug 2012
Location: Pune
reserved

=========================
Defy : CM11 Quarx ::::::: Atrix HD : CM11 :::::::Meizu MX : MIUI ::::::: Micromax A89 : Touchwiz :::::::
CM11/10.2 Themes::::: Dark/Transparent iOS theme ::: Marvel Themes
Batch Sign & zipalign apk guide
==========================
Hit Thanks, if I helped you !!!!
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes