OSDN Git Service

Fix native-lib dir assignment & updating
authorChristopher Tate <ctate@google.com>
Wed, 23 Apr 2014 23:55:57 +0000 (16:55 -0700)
committerChristopher Tate <ctate@google.com>
Thu, 24 Apr 2014 23:08:12 +0000 (16:08 -0700)
commit353e39a973dbbadce82fee2f83ad194e04a47449
tree46a5cad7080d0d10fd50417da1d04bb5da910bcb
parent717f39c7d98c7e4b08f7bb88102c720cb8990004
Fix native-lib dir assignment & updating

The per-package /system/lib/* feature introduced bugs in the
native library path handling during app upgrade installs.  The
crux of the fix is that when recalulating the desired native
library directory, the basis for the calculation needs to be
the scanned APK's location rather than the extant package
settings entry -- because that entry refers to the pre-upgrade
state of the application, not the new state.

Bug 14233983

Change-Id: I76c3249c72ecc055115d430529d386599e52ae42
services/core/java/com/android/server/pm/PackageManagerService.java