Installing and signing?


Last Updated:

  1. chaoz1336

    chaoz1336 Member This Topic's Starter

    Joined:
    Dec 9, 2008
    Messages:
    12
    Likes Received:
    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. [​IMG]

    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.
     

    Advertisement
  2. devolio

    devolio Well-Known Member

    Joined:
    Oct 30, 2008
    Messages:
    339
    Likes Received:
    37
    (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
     
  3. justjimjpc

    justjimjpc Premium Member VIP Member

    Joined:
    Nov 3, 2008
    Messages:
    10,543
    Likes Received:
    210

    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 ...
     
  4. chaoz1336

    chaoz1336 Member This Topic's Starter

    Joined:
    Dec 9, 2008
    Messages:
    12
    Likes Received:
    0
    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
     
  5. devolio

    devolio Well-Known Member

    Joined:
    Oct 30, 2008
    Messages:
    339
    Likes Received:
    37

Share This Page

Loading...