Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db739124 authored by Calin Juravle's avatar Calin Juravle Committed by Gerrit Code Review
Browse files

Merge "Pass app's code paths to the runtime"

parents 78d5f90d f19c9638
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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()]));
                }
            }