• 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
Dec 9, 2008
12
0
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
 
Upvote 0
(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 ...
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones