Recent

Author Topic: How to share an .apk without having a Google developer account  (Read 7356 times)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: How to share an .apk without having a Google developer account
« Reply #30 on: January 09, 2021, 09:28:57 pm »

Quote
Unable to open 'C:\LAMWProjects\Chiara\build\outputs\apk\release\Chiara-release-unsigned.apk' as zip archive (you can see it in the screenshot).

But the "Chiara-release-unsigned.apk" can be find in this path?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

pasquale

  • Sr. Member
  • ****
  • Posts: 267
    • Esposito Software
Re: How to share an .apk without having a Google developer account
« Reply #31 on: January 09, 2021, 09:46:21 pm »

Quote
Unable to open 'C:\LAMWProjects\Chiara\build\outputs\apk\release\Chiara-release-unsigned.apk' as zip archive (you can see it in the screenshot).

But the "Chiara-release-unsigned.apk" can be find in this path?

No, you can't. What you find is Chiara-arm64-v8a-release-unsigned.apk
Apple loves breaking backward compatibility to make money. If you want to be sure that your apps will never stop working, use Windows and trash macOS!

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: How to share an .apk without having a Google developer account
« Reply #32 on: January 10, 2021, 02:23:00 am »
Quote
No, you can't. What you find is Chiara-arm64-v8a-release-unsigned.apk

Please,  change it to "Chiara-release-unsigned.apk"  and try again!

We will fix/improve the LAMW scripts!!

Edited:

Done!!!

Please, update the LAMW or simply the file "androidwizard_intf.pas"
ref:
https://github.com/jmpessoa/lazandroidmodulewizard/tree/master/android_wizard

Maybe, using LAMW Manager or some git client or simply copying.... [to LAMW folder ".....\android_wizard"]

Then re-install the "lazandroidwizardpack.lpk" [".....\android_wizard"] before you create a new project!

Hint: Close any LAMW project [and open a default lazarus project] before re-install a LAMW package....

Thank you!!!
« Last Edit: January 10, 2021, 08:47:53 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

pasquale

  • Sr. Member
  • ****
  • Posts: 267
    • Esposito Software
Re: How to share an .apk without having a Google developer account
« Reply #33 on: January 10, 2021, 11:42:44 am »
Quote
No, you can't. What you find is Chiara-arm64-v8a-release-unsigned.apk

Please,  change it to "Chiara-release-unsigned.apk"  and try again!

We will fix/improve the LAMW scripts!!

Edited:

Done!!!

Please, update the LAMW or simply the file "androidwizard_intf.pas"
ref:
https://github.com/jmpessoa/lazandroidmodulewizard/tree/master/android_wizard

Maybe, using LAMW Manager or some git client or simply copying.... [to LAMW folder ".....\android_wizard"]

Then re-install the "lazandroidwizardpack.lpk" [".....\android_wizard"] before you create a new project!

Hint: Close any LAMW project [and open a default lazarus project] before re-install a LAMW package....

Thank you!!!

Thanks a lot.

I have upgraded my lazandroidwizardpack.lpk following your directions and now I no longer get the error messages in the DOS window.

My Android emulator is now able to run the debug version built with Gradle and ARMv7a+VFPv3.

As far as the release version is concerned, I still have to understand what I must do to sign an .apk built with Gradle.

Considering that I don't have a Google developer account, is there any way I can sign my .apk or is it impossible?

Right now, after I execute gradle-local-apksigner.bat, I can find myapp-armeabi-v7a-release-unsigned.apk and myapp-armeabi-v7a-release-unsigned-aligned.apk in the C:\LAMWProjects\myapp\build\outputs\apk\release folder. There's no file named myapp-armeabi-v7a-release.apk or the like (I mean, without the word "unsigned" in its name).

In this forum, Segator said: "No you not need a Google account, but at least you need to sign your app and google account is not needed for that."

I just want to remind you that, if I use Ant as an .apk builder, then myapp-release.apk is built correctly (without any Google developer account password) and it can run in the emulator without any problems. Is this only possible with Ant or am I missing something?

Thanks.
Apple loves breaking backward compatibility to make money. If you want to be sure that your apps will never stop working, use Windows and trash macOS!

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: How to share an .apk without having a Google developer account
« Reply #34 on: January 10, 2021, 07:31:03 pm »
Quote
In this forum, Segator said: "No you not need a Google account, but at least you need to sign your app and google account is not needed for that."

Hello @segator!

Can you help us?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: How to share an .apk without having a Google developer account
« Reply #35 on: January 10, 2021, 09:04:18 pm »

I got some solution!!

Please, wait....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Re: How to share an .apk without having a Google developer account
« Reply #36 on: January 11, 2021, 04:20:10 am »
to sign your app offline and with out Google account you must generate a key file:

( Windows only):
1- step
cmd
Code: Pascal  [Select][+][-]
  1.  cd C:\Program Files\Java\jdk1.7.0_05\bin


2-step
Code: Pascal  [Select][+][-]
  1.  keytool -list -v -keystore C:\Users\yourusername\Desktop\test.jks
  2.  
3-step

type a password for the key store and copy the SH1 key, thos SH1 key is needed for the other app stores and with the test.jks file you can follow the signs step in the project path to put the correct data in the gradle.properties file
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: How to share an .apk without having a Google developer account
« Reply #37 on: January 11, 2021, 05:51:03 am »

SOLVED!!!

Please, update the LAMW or simply the file "androidwizard_intf.pas"
ref:
https://github.com/jmpessoa/lazandroidmodulewizard/tree/master/android_wizard

Maybe, using LAMW Manager or some git client or simply copying.... [to LAMW folder ".....\android_wizard"]

Then re-install the "lazandroidwizardpack.lpk" [".....\android_wizard"] before you create a new project!

Hint: Close any LAMW project [and open a default lazarus project] before re-install a LAMW package....

Thank you!!!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

pasquale

  • Sr. Member
  • ****
  • Posts: 267
    • Esposito Software
Re: How to share an .apk without having a Google developer account
« Reply #38 on: January 11, 2021, 05:55:49 pm »
to sign your app offline and with out Google account you must generate a key file:

( Windows only):
1- step
cmd
Code: Pascal  [Select][+][-]
  1.  cd C:\Program Files\Java\jdk1.7.0_05\bin


2-step
Code: Pascal  [Select][+][-]
  1.  keytool -list -v -keystore C:\Users\yourusername\Desktop\test.jks
  2.  
3-step

type a password for the key store and copy the SH1 key, thos SH1 key is needed for the other app stores and with the test.jks file you can follow the signs step in the project path to put the correct data in the gradle.properties file

It's so damn hard. I'll give up.
Apple loves breaking backward compatibility to make money. If you want to be sure that your apps will never stop working, use Windows and trash macOS!

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Re: How to share an .apk without having a Google developer account
« Reply #39 on: January 12, 2021, 12:07:36 am »
Don't worry @jmpessoa now implement it in lamw, just update it an lamw make the job for you.
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

rsu333

  • Full Member
  • ***
  • Posts: 110
Re: How to share an .apk without having a Google developer account
« Reply #40 on: January 17, 2021, 07:42:36 am »
Amazon appstore is best way to publish app instead of play store

pasquale

  • Sr. Member
  • ****
  • Posts: 267
    • Esposito Software
Re: How to share an .apk without having a Google developer account
« Reply #41 on: January 17, 2021, 11:46:45 am »
Amazon appstore is best way to publish app instead of play store

Why do you think so?
Apple loves breaking backward compatibility to make money. If you want to be sure that your apps will never stop working, use Windows and trash macOS!

rsu333

  • Full Member
  • ***
  • Posts: 110
Re: How to share an .apk without having a Google developer account
« Reply #42 on: January 18, 2021, 01:33:37 pm »
First , it is easy .No need of key ,release debug etc.
Sec. it is free  and fast.

pasquale

  • Sr. Member
  • ****
  • Posts: 267
    • Esposito Software
Re: How to share an .apk without having a Google developer account
« Reply #43 on: January 19, 2021, 03:46:02 pm »
First , it is easy .No need of key ,release debug etc.
Sec. it is free  and fast.

Thanks for your reply.

What I find very interesting is the fact that, as you said, if you publish your apps on the Amazon App Store, you don't need to care about anything like key, release, debug.

What do you mean exactly?

Suppose you create a release .apk with Laz4Android using a generic key (123456). Can it be uploaded to the Amazon App Store? What will happen when users download the .apk? Will they be able to install it on their Android smartphones without getting any error messages?

Any help will be appreciated.

Apple loves breaking backward compatibility to make money. If you want to be sure that your apps will never stop working, use Windows and trash macOS!

rsu333

  • Full Member
  • ***
  • Posts: 110
Re: How to share an .apk without having a Google developer account
« Reply #44 on: January 20, 2021, 03:30:16 pm »
Yes, you are right ,I have recently upload  an  apk without any problem but now tester report ,it is not run. Actually I have tested it local 5 devices [with whatsup file sending method] with run properly.
  I hope only LAMW creator [jmpessoa] guide or solve this problem.

 

TinyPortal © 2005-2018