the error code are defined in the android.content.pm.PackageManager class.
See here: 
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/content/pm/PackageManager.java;h=53a966d3db126eb6bce3b7878a4876db27ab4402;hb=eclair#l367

-12 seems to be INSTALL_FAILED_OLDER_SDK meaning that your app
requires a more recent build that your device is running.

This is confirmed by the info you provided, as your device runs
"Firware Version: 1.0", but you compiled your app for 1.1 and 1.5

1.0 is quite obsolete. I would flash something newer on the phone to
test your app. You can see the distribution of the different version
of android at 
http://developer.android.com/resources/dashboard/platform-versions.html

Regarding signed application, all applications must be signed to run
on Android. See more information at
http://developer.android.com/guide/publishing/app-signing.html

Xav


On Mon, Feb 1, 2010 at 6:25 AM, GSLDev <[email protected]> wrote:
> Hi,
> I am new to Android development, was trying to deploy a simple
> HelloWorld app to a G1 dev phone via USB cable using "adb install". I
> keep getting the following error:
>
>     adb install HelloAndroid.apk
>     250 KB/s (12008 bytes in 0.046s)
>        pkg: /data/local/tmp/HelloAndroid.apk
>     Failure [-12]
>
> I have tried the following:
> 1. Package the app as UnSign and do adb install
> 2. Package the app as Sign App and do adb install
> 3. Try Android 1.1 & 1.5 respectively
> And they all yield the same error Failure[-12] error.
>
> My questions are:
> 1. Since it is a development phone (G1 Dev Phone 1), should I package
> it as Sign or Unsign application?
> 2. How do I know if the phone needs Android 1.1 or 1.5 or other
> versions? In the Settings/About Phone, this is the info listed:
>     Model Number: Android Dev Phone 1
>     Firware Version: 1.0
>     Baseband Version: 62.33.20.08H_1.22.12.29
>     Kernel Version: apa27#6
>     Build Number: dream_devphone_userdebug 1.0 UNLOCKED .... test
> keys
> 3. Any insights on what is causing this problem and how to fix it? Do
> I have to flash a new image on the phone?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to