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

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5116
  • 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

AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard


  • Guest
Re: ! Help ! with signing android apps
« Reply #1 on: 2012-Nov-08 »
What you need is this :

I use the following batch file :

Code: (glbasic) [Select]
erase "" /Q
erase "%1_signed.apk" /Q
erase "%1_unsigned.apk" /Q
erase "%1_release.apk" /Q
copy "%1.apk" ""
"C:\Program Files (x86)\7-Zip\7z.exe" d "" META-INF\ META-INF\CERT.SF META-INF\CERT.RSA
copy "" "%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 »