OSDN Git Service

Explicitly check for updated system apps
authorDimitry Ivanov <dimitry@google.com>
Mon, 29 Feb 2016 23:40:40 +0000 (15:40 -0800)
committerDimitry Ivanov <dimitry@google.com>
Tue, 1 Mar 2016 00:23:10 +0000 (16:23 -0800)
Unbundled apps should not be allowed to share
linker-namespaces with default namespace; it implies
that they will not have unlimited access to private
native libs once updated.

Bug: http://b/27189432
Change-Id: I60295b9b31d700016add93537418fdcce5a77719

core/java/android/app/LoadedApk.java

index 06fe515..b65faa9 100644 (file)
@@ -382,7 +382,7 @@ public final class LoadedApk {
             String libraryPermittedPath = mDataDir;
             boolean isBundledApp = false;
 
-            if (mApplicationInfo.isSystemApp()) {
+            if (mApplicationInfo.isSystemApp() && !mApplicationInfo.isUpdatedSystemApp()) {
                 isBundledApp = true;
                 // Add path to system libraries to libPaths;
                 // Access to system libs should be limited