OSDN Git Service

Add a call to registerAppInfo for the VMRuntime
authorDave Allison <dallison@google.com>
Thu, 14 Nov 2013 01:15:50 +0000 (17:15 -0800)
committerDave Allison <dallison@google.com>
Thu, 19 Dec 2013 01:01:37 +0000 (17:01 -0800)
This calls into the VMRuntime tells it where the
application directory is located.

Bug: 11539952
Change-Id: I20e0b8c63e459699a1bc9af435e65ae96f1e1e73

core/java/android/app/ActivityThread.java

index d849965..97baf9a 100644 (file)
@@ -96,6 +96,8 @@ import com.android.internal.util.FastPrintWriter;
 import com.android.org.conscrypt.OpenSSLSocketImpl;
 import com.google.android.collect.Lists;
 
+import dalvik.system.VMRuntime;
+
 import java.io.File;
 import java.io.FileDescriptor;
 import java.io.FileOutputStream;
@@ -740,6 +742,9 @@ public final class ActivityThread {
 
             setCoreSettings(coreSettings);
 
+            // Tell the VMRuntime about the application.
+            VMRuntime.registerAppInfo(appInfo.dataDir, appInfo.processName);
+
             AppBindData data = new AppBindData();
             data.processName = processName;
             data.appInfo = appInfo;