summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Narayan Kamath <narayan@google.com> 2014-10-29 17:56:42 +0000
committer Narayan Kamath <narayan@google.com> 2014-10-29 18:02:29 +0000
commitcb383183d722a9ef03ab8b8cb0d0e419efd96598 (patch)
tree0bf358cb6116ccab0988f14c3fbb60b775cdec3e /libs/androidfw/misc.cpp
parentb9e290c7136fb7c76b7238426ccd598dec2d2643 (diff)
Fix getPackageInfo("android") in the system server.
The fix for bug 16555230 attempted to return the same LoadedApk object between the system context object and the activity thread's list of opened packaged. This ensured that we used the same classLoader on both these objects (among other things). However, the object the Context owns is actually incomplete (and necessarily so) because it might be created before the package manager is and we need the package manager to construct a complete LoadedApk object. Work around this by manually setting the classloader and aInfo for "android" contexts created by the system server's activity thread. bug: 18167468 Change-Id: I623634f912111f89eaf716b8258d1926d2513dcd
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions