BASIC

Author Topic: ! Help ! with signing android apps  (Read 1067 times)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5020
  • O Rly?
    • View Profile
! Help ! with signing android apps
« on: 2012-Nov-08 »
Hi there,

can pls anyone with some experience in signing android games write a little howto?
Create a marketkey is easy but then, have no clue... :/
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

MrTAToad

  • Guest
Re: ! Help ! with signing android apps
« Reply #1 on: 2012-Nov-08 »
What you need is this : http://www.glbasic.com/forum/index.php?topic=6169.msg57554#msg57554

I use the following batch file :

Code: GLBasic [Select]
erase "%1.zip" /Q
erase "%1_signed.apk" /Q
erase "%1_unsigned.apk" /Q
erase "%1_release.apk" /Q
copy "%1.apk" "%1.zip"
"C:\Program Files (x86)\7-Zip\7z.exe" d "%1.zip" META-INF\manifest.mf META-INF\CERT.SF META-INF\CERT.RSA
copy "%1.zip" "%1_unsigned.apk"
keytool -genkey -alias mykey.keystore -keyalg RSA -validity 20000 -keystore keys/mykey.keystore
jarsigner -verbose -keystore keys/mykey.keystore -signedjar "%1_signed.apk" "%1_unsigned.apk" mykey.keystore
zipalign -v 4 "%1_signed.apk" "%1_release.apk"
move "%1_release.apk" "Release/%1_release.apk"
@echo "Finished"

You do need to install 7Zip though
« Last Edit: 2012-Nov-08 by MrTAToad »