Merge "Merge "Pass app's data dir to ART" am: 16749ac83e am: 33ed677361 am: 6277c39b0e"

This commit is contained in:
Android Build Merger (Role)
2019-04-03 16:32:55 +00:00
committed by Android (Google) Code Review

View File

@@ -5920,6 +5920,10 @@ public final class ActivityThread extends ClientTransactionHandler {
UserHandle.myUserId());
VMRuntime.setProcessPackageName(data.appInfo.packageName);
// Pass data directory path to ART. This is used for caching information and
// should be set before any application code is loaded.
VMRuntime.setProcessDataDirectory(data.appInfo.dataDir);
if (mProfiler.profileFd != null) {
mProfiler.startProfiling();
}