Android installs - USB and SD

Previous topic - Next topic

MrPlow

Hi

A user reported that the app would not install to USB or SD card?

"could not install in USB storage or SD card"

Is this an issue with GLB apps for certain models? Or is it somthing the user did?
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrTAToad

There should be no problem unless there is a lack of space.

MrPlow

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

MrTAToad

Another problem could be a missing or invalid signature.

MrPlow

You mean if I signed it with the wrong password?!
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrTAToad

More likely, the wrong key algorithm - I had the same sort of trouble when Google (or Sun) changed the requirements for signing - it was using the wrong sort of encryption, and thus wouldn't install.

You should be using something like :

Code (glbasic) Select
keytool -genkey -alias keys/mykey.keystore -validity 20000 -sigalg MD5withRSA -keyalg RSA -keysize 1024 -keystore keys/mykey.keystore
jarsigner -verbose -keystore keys/mykey.keystore -sigalg MD5withRSA -digestalg SHA1 -signedjar "%1_signed.apk" "%1_unsigned.apk" keys/mykey.keystore

MrPlow

Think I am doing that correctly.
Most installs are fine (~1k per day) - just getting a few users with issues.
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrTAToad

They must be running out of space then - the error message is technically correct (although more information about why should be given really)