• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Installing and signing?

chaoz1336

Newbie
Hey guys...

I need an example of "How to install self-made application on G1".

As far as I know I have to sign my .apk (dunno how) to make them work.
Otherwise I want to install the Apps via USB (and NOT OTA!).

I also already read the docs of google-android,
but anyhow I didnt got the informations I need.
frown5.gif


I'd be very glad if u can help me!
thx in advance ;-)

btw: I use eclipse 3.3 with Android Plugin on WinXP with the latest Android SDK.
 
(in Eclipse) Right click your project, go to Android Tools, and export the unsigned .apk. Now you'll have to make a keystore.

The easiest way to create a keystore is to download the keytool

To create a key, run the keytool and provide an alias (usually your name,) the amount of time the key will be valid (in days,) and the name of your keystore.

keytool -v -genkeypair -alias ALIAS -keyalg RSA -validity DAYS -keystore KEYSTORE

Now that you have a keystore, you'll need to sign your application with it.

On Windows, assuming you installed Java to C:\Sun\SDK, jarsigner will be located at C:\Sun\SDK\jdk\bin\jarsigner
To sign your application, run jarsigner and provide it with your keystore, the signed .apk file to write to, the unsigned .apk file to sign, and your keystore alias.

jarsigner -verbose -keystore KEYSTORE -signedjar SIGNED.apk UNSIGNED.apk ALIAS
 
(in Eclipse) Right click your project, go to Android Tools, and export the unsigned .apk. Now you'll have to make a keystore.

The easiest way to create a keystore is to download the keytool

To create a key, run the keytool and provide an alias (usually your name,) the amount of time the key will be valid (in days,) and the name of your keystore.

keytool -v -genkeypair -alias ALIAS -keyalg RSA -validity DAYS -keystore KEYSTORE

Now that you have a keystore, you'll need to sign your application with it.

On Windows, assuming you installed Java to C:\Sun\SDK, jarsigner will be located at C:\Sun\SDK\jdk\bin\jarsigner
To sign your application, run jarsigner and provide it with your keystore, the signed .apk file to write to, the unsigned .apk file to sign, and your keystore alias.

jarsigner -verbose -keystore KEYSTORE -signedjar SIGNED.apk UNSIGNED.apk ALIAS


Many PROPS!!! to you developers ... wow ~!! what a bunch of goobly-gook to go through ... would love to do some apps ... but cant even make it through all the head-splitting stuff in the sample apps of the SDK ...
 
hey devolio,

thx for your fast reply...
I got only one question left:
is der any alternative way to create a keystore without the tool?
coz I have 2 develop commercial software and I dont even think I'm allowed to use such tools ^^

thx in advance:D
 
Back
Top Bottom