Android install error...

Previous topic - Next topic

Ian Price

Why can't a password be stored as a parameter in the editor? The name of the app and other details are.
I came. I saw. I played.

spacefractal

#31
Its could, but its in a very unsecure text form format, so its not recommered to do that at all. So im wont add things like that to ANDROIDEXTRAS, even im could do that very easy. Its simply a security reasons not to do that. So its must to been done manually, so its not possible when glbasic IDE not shown anything (if its did, its would not have issue doing it at all).

But im have no problems to show the command used to semi auto sign it by just invoke the command. That is something im will look in this weekend to the ANDROID SDK upgrade (glb_build.bat).

EDIT SUCH LIKE THIS (using SDK 4 upgrade):
Code (glbasic) Select

@ECHO OFF
ECHO running Android build-script...
:: install Android SDK, Android NDK
:: install JDK

set HERE=%~dp0

set ANDROIDSDK=%HERE%..\android-sdk-windows
:: set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_24

set PATH=%JAVA_HOME%\bin;%PATH%

ECHO .
ECHO BUILD STAGE 1: Create Icons for various size
AndroidIcons.exe "|%GLB_PROJ_PATH%|"

ECHO BUILD STAGE 2: Start compiler (android.bat)
ECHO %ANDROIDSDK%
call "%ANDROIDSDK%\tools\android.bat" update project --name "glbasic" --path "%GLB_PROJ_PATH%" --target "android-16" --subprojects
cd /D "%GLB_PROJ_PATH%"

ECHO .
ECHO BUILD STAGE 3: Build a debug build
call "%ANDROIDSDK%\tools\ant\bin\ant.bat" debug -q

ECHO .
ECHO BUILD STAGE 4: Build a release build
set _JAVA_OPTIONS=-Xms256m -Xmx512m
call "%ANDROIDSDK%\tools\ant\bin\ant.bat" release -q

ECHO .
ECHO HOW TO INSTALL? Install by invoke this command:
ECHO "%ANDROIDSDK%\platform-tools\adb.exe" install -r "%GLB_PROJ_PATH%/bin/glbasic-debug.apk"

ECHO .
ECHO HOW TO SIGN? Sign it by invoke this command:
ECHO "%HERE%glb_code_sign.bat" "%GLB_PROJ_PATH%"
ECHO .


in glb_build.bat. That should easier the signing when you known the command to been used....
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

kanonet

Since GLB creates 3 files, its a bit slow. Maybe it would be faster if only one file would be created. Would it be possible to only create the debug version if debug mode is selected and create the release version if release is selected?
Alternatively after we selected a dialog could open and ask what version we want to create - this dialog could also be used to ask for the signing pass word and maybe even if we want to install on device directly.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

spacefractal

#33
yes actuelly, when enable debug version in IDE, glb_build_debug.bat could been started. if its disabled, glb_build.bat could been started....

Also if could done that way then the release version could automatic start the bat file, but should shown the commando prompt window. If it could do that, then the glb_code_sign.bat could started automatic in the release version.

Its a nice idea for the IDE dosnt use that feature anyway, so its could been a nice uses here.

PS. asking dialog would been very annoying very fast, so its better doing alternative way, but abusing debug feature could been good.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

#34
I've UPLOADED a new version it with the altered signing script ... would appreciate someone trying to install to see if my Signing issue is resolved...BTW the app is free.

https://play.google.com/store/apps/details?id=com.sigmasolutions.knightclock&hl=en

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

erico

just gave a try from the play store on my note II.
On installation, I get this error:

PACKAGE FILE WAS NOT SIGNED CORRECTLY

MrTAToad

Are you using the latest Java SDK ?

MrPlow

No, should I allow newest version?
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spicypixel

#38
GLB v12 needs Java SDK 7.x, and you will need to use the new signing method as shown by MrTAToad on the first page. You can add -storepass yourkeypasswordhere parameter to the jarsigner line too if you don't want to have to keep entering the keystore password each time you sign an app ;)
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

MrPlow

I'm a bit behind on things...GLB v12 !! I only have 11.414 installed...

Where do I get v12? I will look on the forum to see if there is a download...
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs


MrPlow

Quote from: Moru on 2013-Nov-18
http://www.glbasic.com/forum/index.php?topic=8544.0

thanks Moru but i seem to get a network error trying to get the exe is there another download spot?

Also, might seem a dumb question but I updated my java do I need a specific new version of the jdk as well or is my jdk1.7.0_04 okay?


Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrTAToad

I use _40, but _04 should be fine.

Unfortunately there isn't another download spot...

MrPlow

Quote from: MrTAToad on 2013-Nov-18
I use _40, but _04 should be fine.

Unfortunately there isn't another download spot...

Got my .exe download working after disabling my virus checker...?!

Going to upload my latest signed version and should be vers 2.2 now...

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs