[android-developers] Re: Application could not be installed on this phone?

2009-10-22 Thread Richard Schilling

I'm not getting much from DDMS.  Perhaps the information I need is in
dumpstate output?  If there's some clue here I'm not seeing.  What
should I be looking for?

The error on the screen is Nomad could not be installed on this
phone.  Here's the information about the package that is being
upgraded via OTA:

  Package [com.rootwireless.nomad.UI.Android] (43104290):

userId=10027 gids=[3003, 1015]

sharedUser=null

pkg=Package{431ad4d8 com.rootwireless.nomad.UI.Android}

codePath=/data/app/com.rootwireless.nomad.UI.Android.apk

resourcePath=/data/app/com.rootwireless.nomad.UI.Android.apk

dataDir=/data/data/com.rootwireless.nomad.UI.Android

targetSdk=2

supportsScreens=[medium]

timeStamp=1254868883000

signatures=PackageSignatures{43104558 [4312f968]}

permissionsFixed=true pkgFlags=0x0 installStatus=1 enabled=0

grantedPermissions:

  android.permission.INTERNET

  android.permission.READ_PHONE_STATE

  android.permission.WRITE_EXTERNAL_STORAGE

  android.permission.RECEIVE_BOOT_COMPLETED

  android.permission.ACCESS_COARSE_LOCATION

  android.permission.ACCESS_FINE_LOCATION

loadedPermissions:

  android.permission.INTERNET

  android.permission.WRITE_EXTERNAL_STORAGE

  android.permission.READ_PHONE_STATE

  android.permission.ACCESS_COARSE_LOCATION

  android.permission.RECEIVE_BOOT_COMPLETED

  android.permission.ACCESS_FINE_LOCATION


Here's all I get from DDMS.  The log starts when I start the OTA
download process:

10-22 10:12:41.195: DEBUG/dalvikvm(118): GC freed 172 objects / 7520
bytes in 124ms
10-22 10:12:42.855: INFO/ActivityManager(74): Starting activity:
Intent { act=android.intent.action.MAIN cat=
[android.intent.category.LAUNCHER] flg=0x1020
cmp=com.rootwireless.nomad.downloader/.NomadDownloader }
10-22 10:12:43.105: INFO/ActivityManager(74): Displayed activity
com.rootwireless.nomad.downloader/.NomadDownloader: 168 ms (total 168
ms)
10-22 10:12:45.015: INFO/NomadDownloader(301): Starting activity to
upgrade Nomad.
10-22 10:12:45.015: INFO/ActivityManager(74): Starting activity:
Intent { act=android.intent.action.VIEW dat=http://www.mywebsite.com/
path/hidden/to/protect/the/innocent/Nomad.apk flg=0x1004
cmp=com.android.browser/.BrowserActivity }
10-22 10:12:45.045: INFO/NomadDownloader(301): Finished activity to
upgrade Nomad
10-22 10:12:45.385: INFO/ActivityManager(74): Displayed activity
com.android.browser/.BrowserActivity: 331 ms (total 331 ms)
10-22 10:12:49.375: INFO/ActivityManager(74): Starting activity:
Intent { dat=content://downloads/download/23
cmp=com.android.browser/.BrowserDownloadPage }
10-22 10:12:49.855: INFO/ActivityManager(74): Displayed activity
com.android.browser/.BrowserDownloadPage: 435 ms (total 435 ms)
10-22 10:12:51.335: DEBUG/dalvikvm(310): GC freed 6920 objects /
439184 bytes in 132ms
10-22 10:12:51.795: DEBUG/dalvikvm(197): threadid=23 wakeup:
interrupted
10-22 10:12:52.345: DEBUG/MediaScannerService(197):
IMediaScannerService.scanFile: /sdcard/download/Nomad-14.apk mimeType:
application/vnd.android.package-archive
10-22 10:12:52.725: INFO/ActivityManager(74): Stopping service:
com.android.providers.media/.MediaScannerService
10-22 10:12:55.165: DEBUG/dalvikvm(118): GC freed 122 objects / 5600
bytes in 283ms
10-22 10:12:55.295: INFO/ActivityManager(74): Starting activity:
Intent { act=android.intent.action.VIEW dat=file:///sdcard/download/
Nomad-14.apk typ=application/vnd.android.package-archive flg=0x400
cmp=com.android.packageinstaller/.PackageInstallerActivity }
10-22 10:12:55.435: INFO/ActivityManager(74): Start proc
com.android.packageinstaller for activity
com.android.packageinstaller/.PackageInstallerActivity: pid=370
uid=10016 gids={}
10-22 10:12:55.605: INFO/dalvikvm(370): Debugger thread not active,
ignoring DDM send (t=0x41504e4d l=38)
10-22 10:12:55.685: INFO/dalvikvm(370): Debugger thread not active,
ignoring DDM send (t=0x41504e4d l=60)
10-22 10:12:55.895: INFO/PackageParser(370): Impliciting adding
android.permission.WRITE_EXTERNAL_STORAGE to old pkg
com.rootwireless.nomad.UI.Android
10-22 10:12:55.895: INFO/PackageParser(370): Impliciting adding
android.permission.READ_PHONE_STATE to old pkg
com.rootwireless.nomad.UI.Android
10-22 10:12:56.105: INFO/installd(53): free_cache(170744) avail
70209536
10-22 10:12:56.145: INFO/ActivityManager(74): Displayed activity
com.android.packageinstaller/.PackageInstallerActivity: 740 ms (total
740 ms)
10-22 10:12:56.785: INFO/ActivityManager(74): Process
com.android.settings (pid 341) has died.
10-22 10:13:04.625: INFO/ActivityManager(74): Starting activity:
Intent { dat=file:///data/data/com.android.packageinstaller/files/
Nomad-14.apk cmp=com.android.packageinstaller/.InstallAppConfirmation
(has extras) }
10-22 10:13:04.825: INFO/PackageParser(370): Impliciting adding
android.permission.WRITE_EXTERNAL_STORAGE to old pkg
com.rootwireless.nomad.UI.Android
10-22 10:13:04.825: 

[android-developers] Re: Application could not be installed on this phone?

2009-10-22 Thread Richard Schilling

The problem appears to be the fact that the application on the phone
already was signed with a different certificate than the one replacing
it.

There's nothing in the logs I'm seeing that indicate this.

Another developer I work with had to guess that this was the problem.

Richard


On Oct 22, 10:34 am, Richard Schilling
richard.rootwirel...@gmail.com wrote:
 I'm not getting much from DDMS.  Perhaps the information I need is in
 dumpstate output?  If there's some clue here I'm not seeing.  What
 should I be looking for?

 The error on the screen is Nomadcould not be installedon this
 phone.  Here's the information about the package that is being
 upgraded via OTA:

   Package [com.rootwireless.nomad.UI.Android] (43104290):

     userId=10027 gids=[3003, 1015]

     sharedUser=null

     pkg=Package{431ad4d8 com.rootwireless.nomad.UI.Android}

     codePath=/data/app/com.rootwireless.nomad.UI.Android.apk

     resourcePath=/data/app/com.rootwireless.nomad.UI.Android.apk

     dataDir=/data/data/com.rootwireless.nomad.UI.Android

     targetSdk=2

     supportsScreens=[medium]

     timeStamp=1254868883000

     signatures=PackageSignatures{43104558 [4312f968]}

     permissionsFixed=true pkgFlags=0x0 installStatus=1 enabled=0

     grantedPermissions:

       android.permission.INTERNET

       android.permission.READ_PHONE_STATE

       android.permission.WRITE_EXTERNAL_STORAGE

       android.permission.RECEIVE_BOOT_COMPLETED

       android.permission.ACCESS_COARSE_LOCATION

       android.permission.ACCESS_FINE_LOCATION

     loadedPermissions:

       android.permission.INTERNET

       android.permission.WRITE_EXTERNAL_STORAGE

       android.permission.READ_PHONE_STATE

       android.permission.ACCESS_COARSE_LOCATION

       android.permission.RECEIVE_BOOT_COMPLETED

       android.permission.ACCESS_FINE_LOCATION

 Here's all I get from DDMS.  The log starts when I start the OTA
 download process:

 10-22 10:12:41.195: DEBUG/dalvikvm(118): GC freed 172 objects / 7520
 bytes in 124ms
 10-22 10:12:42.855: INFO/ActivityManager(74): Starting activity:
 Intent { act=android.intent.action.MAIN cat=
 [android.intent.category.LAUNCHER] flg=0x1020
 cmp=com.rootwireless.nomad.downloader/.NomadDownloader }
 10-22 10:12:43.105: INFO/ActivityManager(74): Displayed activity
 com.rootwireless.nomad.downloader/.NomadDownloader: 168 ms (total 168
 ms)
 10-22 10:12:45.015: INFO/NomadDownloader(301): Starting activity to
 upgrade Nomad.
 10-22 10:12:45.015: INFO/ActivityManager(74): Starting activity:
 Intent { act=android.intent.action.VIEW dat=http://www.mywebsite.com/
 path/hidden/to/protect/the/innocent/Nomad.apk flg=0x1004
 cmp=com.android.browser/.BrowserActivity }
 10-22 10:12:45.045: INFO/NomadDownloader(301): Finished activity to
 upgrade Nomad
 10-22 10:12:45.385: INFO/ActivityManager(74): Displayed activity
 com.android.browser/.BrowserActivity: 331 ms (total 331 ms)
 10-22 10:12:49.375: INFO/ActivityManager(74): Starting activity:
 Intent { dat=content://downloads/download/23
 cmp=com.android.browser/.BrowserDownloadPage }
 10-22 10:12:49.855: INFO/ActivityManager(74): Displayed activity
 com.android.browser/.BrowserDownloadPage: 435 ms (total 435 ms)
 10-22 10:12:51.335: DEBUG/dalvikvm(310): GC freed 6920 objects /
 439184 bytes in 132ms
 10-22 10:12:51.795: DEBUG/dalvikvm(197): threadid=23 wakeup:
 interrupted
 10-22 10:12:52.345: DEBUG/MediaScannerService(197):
 IMediaScannerService.scanFile: /sdcard/download/Nomad-14.apk mimeType:
 application/vnd.android.package-archive
 10-22 10:12:52.725: INFO/ActivityManager(74): Stopping service:
 com.android.providers.media/.MediaScannerService
 10-22 10:12:55.165: DEBUG/dalvikvm(118): GC freed 122 objects / 5600
 bytes in 283ms
 10-22 10:12:55.295: INFO/ActivityManager(74): Starting activity:
 Intent { act=android.intent.action.VIEW dat=file:///sdcard/download/
 Nomad-14.apk typ=application/vnd.android.package-archive flg=0x400
 cmp=com.android.packageinstaller/.PackageInstallerActivity }
 10-22 10:12:55.435: INFO/ActivityManager(74): Start proc
 com.android.packageinstaller for activity
 com.android.packageinstaller/.PackageInstallerActivity: pid=370
 uid=10016 gids={}
 10-22 10:12:55.605: INFO/dalvikvm(370): Debugger thread not active,
 ignoring DDM send (t=0x41504e4d l=38)
 10-22 10:12:55.685: INFO/dalvikvm(370): Debugger thread not active,
 ignoring DDM send (t=0x41504e4d l=60)
 10-22 10:12:55.895: INFO/PackageParser(370): Impliciting adding
 android.permission.WRITE_EXTERNAL_STORAGE to old pkg
 com.rootwireless.nomad.UI.Android
 10-22 10:12:55.895: INFO/PackageParser(370): Impliciting adding
 android.permission.READ_PHONE_STATE to old pkg
 com.rootwireless.nomad.UI.Android
 10-22 10:12:56.105: INFO/installd(53): free_cache(170744) avail
 70209536
 10-22 10:12:56.145: INFO/ActivityManager(74): Displayed activity
 com.android.packageinstaller/.PackageInstallerActivity: 740 ms (total
 740 ms)
 10-22 10:12:56.785: INFO/ActivityManager(74): 

[android-developers] Re: Application could not be installed on this phone?

2009-10-14 Thread Richard Schilling

Had a request from someone to elaborate on what I did to fix this.
This issue started showing up when I started building with the 1.6
SDK.

When I signed the application with a new certificate, the problem went
away.  Here's what I did:

1. created a new certificate using the instructions on this web page:
http://developer.android.com/guide/publishing/app-signing.html
2. Exported the signed package using Eclipse: Right Click Project -
Export Signed Application Package - follow dialog boxes.

Also, make sure the phone is upgraded.

If you're still having issues after doing this, then either my fix
isn't the right one, or there's another problem.

Hope that helps.

Richard


On Oct 12, 11:38 am, Richard Schilling
richard.rootwirel...@gmail.com wrote:
 Oh, the android should be upgrading the old application properly, so
 uninstalling should not be necessary.  This is an upgrade.

 Richard

 On Oct 12, 11:37 am, Richard Schilling

 richard.rootwirel...@gmail.com wrote:
  The issue seems to be with the certificate used to sign the
  application.  It works now.

  What I would like to do is submit a patch that provides more verbose
  information about why an install fails (e.g. certificate is invalid).

  Looking into PackageInstaller to see what I can find.

  Richard

  On Oct 12, 10:57 am, nEx.Software email.nex.softw...@gmail.com
  wrote:

   Obvious question alert: Did you remove any old version you might have
   had hadinstalledbefore trying to install the new one?

   On Oct 12, 10:28 am, Richard Schilling

   richard.rootwirel...@gmail.com wrote:
I am seeing this now too.  Just upgraded thephoneto 1.6.  DDMS
doesn't tell me squat.

Anyone?

Richard Schilling
Mobile Operating System Engineer
Root Wireless, Inc.

On Aug 14, 8:32 pm, dougx douglas.lin...@gmail.com wrote:

 I just rebuilt an application to use some new assets, and now I get
 this message on myphonewhen I try to install it:

 Applicationnotinstalled
 UnitTestscouldnotbeinstalledon thisphone

 Anyone know what's going on?

 I've checked and I've definitely got Unknown sources ticked on the
 application settings.

 This is just a self signed application to run my unit tests on an
 actualphone(the emulator doesn't cut it for real testing). I tried
 creating a new keystore, and they didn't help.

 What on earth?

 The only thing I can think of that I've done recently is accept a
 google security update... _
 If they've silently done some other updates that prevent self signed
 applications running, I'm severely upset.

 Anyone seen this?

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



[android-developers] Re: Application could not be installed on this phone?

2009-10-14 Thread Dianne Hackborn
On Mon, Oct 12, 2009 at 11:37 AM, Richard Schilling 
richard.rootwirel...@gmail.com wrote:

 What I would like to do is submit a patch that provides more verbose
 information about why an install fails (e.g. certificate is invalid).


There is already a fair amount of stuff printed in the log when an install
fails (and also when it succeeds).

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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



[android-developers] Re: Application could not be installed on this phone?

2009-10-12 Thread Richard Schilling

I am seeing this now too.  Just upgraded the phone to 1.6.  DDMS
doesn't tell me squat.

Anyone?

Richard Schilling
Mobile Operating System Engineer
Root Wireless, Inc.


On Aug 14, 8:32 pm, dougx douglas.lin...@gmail.com wrote:
 I just rebuilt an application to use some new assets, and now I get
 this message on my phone when I try to install it:

 Applicationnotinstalled
 UnitTestscouldnotbeinstalledon this phone

 Anyone know what's going on?

 I've checked and I've definitely got Unknown sources ticked on the
 application settings.

 This is just a self signed application to run my unit tests on an
 actual phone (the emulator doesn't cut it for real testing). I tried
 creating a new keystore, and they didn't help.

 What on earth?

 The only thing I can think of that I've done recently is accept a
 google security update... _
 If they've silently done some other updates that prevent self signed
 applications running, I'm severely upset.

 Anyone seen this?

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



[android-developers] Re: Application could not be installed on this phone?

2009-10-12 Thread nEx.Software

Obvious question alert: Did you remove any old version you might have
had had installed before trying to install the new one?

On Oct 12, 10:28 am, Richard Schilling
richard.rootwirel...@gmail.com wrote:
 I am seeing this now too.  Just upgraded the phone to 1.6.  DDMS
 doesn't tell me squat.

 Anyone?

 Richard Schilling
 Mobile Operating System Engineer
 Root Wireless, Inc.

 On Aug 14, 8:32 pm, dougx douglas.lin...@gmail.com wrote:

  I just rebuilt an application to use some new assets, and now I get
  this message on my phone when I try to install it:

  Applicationnotinstalled
  UnitTestscouldnotbeinstalledon this phone

  Anyone know what's going on?

  I've checked and I've definitely got Unknown sources ticked on the
  application settings.

  This is just a self signed application to run my unit tests on an
  actual phone (the emulator doesn't cut it for real testing). I tried
  creating a new keystore, and they didn't help.

  What on earth?

  The only thing I can think of that I've done recently is accept a
  google security update... _
  If they've silently done some other updates that prevent self signed
  applications running, I'm severely upset.

  Anyone seen this?

  ~
  Doug.


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



[android-developers] Re: Application could not be installed on this phone?

2009-10-12 Thread Richard Schilling

The issue seems to be with the certificate used to sign the
application.  It works now.

What I would like to do is submit a patch that provides more verbose
information about why an install fails (e.g. certificate is invalid).

Looking into PackageInstaller to see what I can find.

Richard


On Oct 12, 10:57 am, nEx.Software email.nex.softw...@gmail.com
wrote:
 Obvious question alert: Did you remove any old version you might have
 had hadinstalledbefore trying to install the new one?

 On Oct 12, 10:28 am, Richard Schilling

 richard.rootwirel...@gmail.com wrote:
  I am seeing this now too.  Just upgraded thephoneto 1.6.  DDMS
  doesn't tell me squat.

  Anyone?

  Richard Schilling
  Mobile Operating System Engineer
  Root Wireless, Inc.

  On Aug 14, 8:32 pm, dougx douglas.lin...@gmail.com wrote:

   I just rebuilt an application to use some new assets, and now I get
   this message on myphonewhen I try to install it:

   Applicationnotinstalled
   UnitTestscouldnotbeinstalledon thisphone

   Anyone know what's going on?

   I've checked and I've definitely got Unknown sources ticked on the
   application settings.

   This is just a self signed application to run my unit tests on an
   actualphone(the emulator doesn't cut it for real testing). I tried
   creating a new keystore, and they didn't help.

   What on earth?

   The only thing I can think of that I've done recently is accept a
   google security update... _
   If they've silently done some other updates that prevent self signed
   applications running, I'm severely upset.

   Anyone seen this?

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



[android-developers] Re: Application could not be installed on this phone?

2009-10-12 Thread Richard Schilling

Oh, the android should be upgrading the old application properly, so
uninstalling should not be necessary.  This is an upgrade.

Richard


On Oct 12, 11:37 am, Richard Schilling
richard.rootwirel...@gmail.com wrote:
 The issue seems to be with the certificate used to sign the
 application.  It works now.

 What I would like to do is submit a patch that provides more verbose
 information about why an install fails (e.g. certificate is invalid).

 Looking into PackageInstaller to see what I can find.

 Richard

 On Oct 12, 10:57 am, nEx.Software email.nex.softw...@gmail.com
 wrote:

  Obvious question alert: Did you remove any old version you might have
  had hadinstalledbefore trying to install the new one?

  On Oct 12, 10:28 am, Richard Schilling

  richard.rootwirel...@gmail.com wrote:
   I am seeing this now too.  Just upgraded thephoneto 1.6.  DDMS
   doesn't tell me squat.

   Anyone?

   Richard Schilling
   Mobile Operating System Engineer
   Root Wireless, Inc.

   On Aug 14, 8:32 pm, dougx douglas.lin...@gmail.com wrote:

I just rebuilt an application to use some new assets, and now I get
this message on myphonewhen I try to install it:

Applicationnotinstalled
UnitTestscouldnotbeinstalledon thisphone

Anyone know what's going on?

I've checked and I've definitely got Unknown sources ticked on the
application settings.

This is just a self signed application to run my unit tests on an
actualphone(the emulator doesn't cut it for real testing). I tried
creating a new keystore, and they didn't help.

What on earth?

The only thing I can think of that I've done recently is accept a
google security update... _
If they've silently done some other updates that prevent self signed
applications running, I'm severely upset.

Anyone seen this?

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