#1 2016-01-25 09:07:58

edunt
Member
Registered: 2015-12-21
Posts: 258

{SOLVED} How To Signed *.APK???

Hi David,

Little many trying I could not get the *.apk signed. What is the wayout?

Without signing it I can not upload the *.apk on Google Store.

This work:
keytool -genkey -v -keystore c:\Users\PCNAME_USERNAME\desktop\appkey.keystore -alias MyKey -keyalg RSA -keysize 2048 -validity 10000


Not working
jarsigner -verbose -keystore c:\Users\PCNAME_USERNAME\desktop\appkey.keystore -storepass Password1 -keypass Password1 c:\Users\PCNAME_USERNAME\desktop\MyApps.apk MyKey

Last edited by edunt (2016-01-26 21:47:07)

Offline

#2 2016-01-25 09:14:20

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: {SOLVED} How To Signed *.APK???

The method http://www.davidesperalta.com/support/v … php?id=131 did not fully work for me.

Offline

#3 2016-01-25 09:17:12

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: {SOLVED} How To Signed *.APK???

Hello,

I can't understand... you are saying the post you publish do not work?

Offline

#4 2016-01-25 09:24:47

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: {SOLVED} How To Signed *.APK???

David wrote:

Hello,

I can't understand... you are saying the post you publish do not work?

Yes, step 1 work but this did not work
jarsigner -verbose -keystore c:\Users\PCNAME_USERNAME\desktop\appkey.keystore -storepass Password1 -keypass Password1 c:\Users\PCNAME_USERNAME\desktop\MyApps.apk MyKey

Offline

#5 2016-01-25 09:40:03

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: {SOLVED} How To Signed *.APK???

Hello edunt,

Sincerely I can't help you at this time. I can only refer you to the Google Play Store instructions for signed APK files.

Offline

#6 2016-01-25 10:39:04

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: {SOLVED} How To Signed *.APK???

David wrote:

Hello edunt,

Sincerely I can't help you at this time. I can only refer you to the Google Play Store instructions for signed APK files.

Hi David,

Thanks, but that wouldn't help because I tried it before.

Offline

#7 2016-01-25 10:41:57

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: {SOLVED} How To Signed *.APK???

Hello,

Look for some tutorial around the web edunt! At least one of my customers signing their APKs, since they published such applications into the Google Play Store. So for sure we can sign APK files, but we need to search around how to do it, possible problems while triying, etc. Unfortunatelly I can't help because I not need to sign any APK before.

Offline

#8 2016-01-25 22:43:29

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: {SOLVED} How To Signed *.APK???

Hi David,

That is what I am doing, but the problem is there is no release-unsigned.apk file generated. If there is released-unsigned.apk then I will be able to signed file.

Have a look at the apk files generated. It suppose to be three (3).

a3QSwQm.png

Offline

#9 2016-01-25 22:48:04

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: {SOLVED} How To Signed *.APK???

Hello,

I am not in my PC right now, but, if I am not wrong, we get three files instead two. Are you sure you get two APK files instead three?

Offline

#10 2016-01-25 22:53:21

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: {SOLVED} How To Signed *.APK???

David wrote:

Hello,

I am not in my PC right now, but, if I am not wrong, we get three files instead two. Are you sure you get two APK files instead three?

Yes, I am 100% sure I got two files. I have a been checking the Cordova apache setup if that is where the problem is.

Offline

#11 2016-01-25 22:55:23

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: {SOLVED} How To Signed *.APK???

Hello,

I am also 99.9% sure I got three files edunt... please, let me to be in my PC and I will take a look.

Offline

#12 2016-01-26 01:38:43

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: {SOLVED} How To Signed *.APK???

Hello,

You have reason edunt, there are two APK files. I am confused due to the other TXT file. On the other hand, I think you can sign debug APK, but, if you want a release, then open the BAT generated file and replace this line:

CALL cordova build android

... by this other:

CALL cordova build --release android

I am working in a solution in order to prepare also the release APK files in addition to the debug ones.

Offline

#13 2016-01-26 01:51:10

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: {SOLVED} How To Signed *.APK???

Hello,

Ok. I updated App Builder and now, when we choose the option to create Apache Cordova Batch files, the program creates two BAT files, one for debug purposes and one other ready for release. Probably you have reason and we can't use a debug APK, or, at least, we must use a release APK instead. This is what we get now:

jI1KXko.png

Update your App Builder copy edunt.

Offline

#14 2016-01-26 09:27:24

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: {SOLVED} How To Signed *.APK???

Hi David,

Well done. It would be nice to have single *.bat file that will have this script instead of two batch file.

@ECHO OFF
CLS

REM Add the Android platform for our app
CALL cordova platform add android

REM Add the Whitelist plugin for our app
CALL cordova plugin add cordova-plugin-whitelist

REM Add the Network plugin for our app
CALL cordova plugin add cordova-plugin-network-information

REM Build our app for the Debug Android platform
CALL cordova build android

REM Build our app for the Android platform
CALL cordova build --release android

REM Pause the script execution, so we can view the script results
PAUSE

Offline

#15 2016-01-26 09:56:45

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: {SOLVED} How To Signed *.APK???

Hello,

Why build a debug and a release versions if we only need one of them? For that reason I separate the build in two files, one for debug, one for release. Maybe another approach can be taken, but build the application twice can be a waste of time, specially the first time we build an application.

Offline

#16 2016-01-26 10:17:28

edunt
Member
Registered: 2015-12-21
Posts: 258

Re: {SOLVED} How To Signed *.APK???

Hi,

You are look at it as a developer and I am looking at it as a software development standard.

Debug version is useful for something else i.e Developer, for me it is okay, but novice is something that can mislead them.

Offline

#17 2016-01-26 10:34:32

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: {SOLVED} How To Signed *.APK???

Hello,

In my opinion the point is that build an application two times is more expensive than build the application one time. Not too much words to said, except that, since we need the release build ONLY when we are ready to upload the application into the Google Play Store, I think build an application's release everytime is a waste of time and resources.

Do you really thing we need both debug and release APKs during the application's development?

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.