OSDN Git Service

New implementation of <original-package> tag.
authorDianne Hackborn <hackbod@google.com>
Wed, 10 Feb 2010 07:59:16 +0000 (23:59 -0800)
committerDianne Hackborn <hackbod@google.com>
Thu, 11 Feb 2010 19:04:49 +0000 (11:04 -0800)
commit6dee18c5cfdd5d63f3a9c299d2b61f819c07e920
treed30d5cdc3fd085036d80c858db39e8bfc3653aec
parent938606083115275bf9d05bfbd4de771aede00091
New implementation of <original-package> tag.

We now have the new package retain the name of the old package.  This makes
sure that all existing references to it (shortcuts, widgets, etc) will still
work.

This does mean that your package can run under either the old or new name,
depending on whether the user got it with an update.  Buyer beware!

I have tried testing all of the paths of updating, installing another
update in /data, uninstalling the update, updating system with an even
newer update, etc.  I think they all work.  No promises though.
core/java/android/content/pm/PackageParser.java
services/java/com/android/server/PackageManagerService.java