diff options
| author | 2015-12-21 09:43:34 +0000 | |
|---|---|---|
| committer | 2015-12-21 09:43:34 +0000 | |
| commit | db73912471df39aa527971f2884f37295616d3a9 (patch) | |
| tree | beb78fe226fb653cc9ed647a34bd014637b56596 | |
| parent | 78d5f90d98365987937b680862c4d88f3beaa4a3 (diff) | |
| parent | f19c9638ddc6678b9ac28afc4c83189d4fe2fd62 (diff) | |
Merge "Pass app's code paths to the runtime"
| -rw-r--r-- | core/java/android/app/ActivityThread.java | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index 83d41527650f..a2ef4104d015 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -119,6 +119,7 @@ import java.lang.ref.WeakReference;  import java.net.InetAddress;  import java.text.DateFormat;  import java.util.ArrayList; +import java.util.Collections;  import java.util.List;  import java.util.Locale;  import java.util.Map; @@ -814,8 +815,13 @@ public final class ActivityThread {                  // Tell the VMRuntime about the application, unless it is shared                  // inside a process.                  if (!sharable) { +                    final List<String> codePaths = new ArrayList<>(); +                    codePaths.add(appInfo.sourceDir); +                    if (appInfo.splitSourceDirs != null) { +                        Collections.addAll(codePaths, appInfo.splitSourceDirs); +                    }                      VMRuntime.registerAppInfo(appInfo.packageName, appInfo.dataDir, -                                            appInfo.processName); +                            codePaths.toArray(new String[codePaths.size()]));                  }              }  |