Merge "Pass app's data dir to ART"

am: 16749ac83e

Change-Id: I170cbff78d12ccc418cb440820a584f141f28433
This commit is contained in:
David Brazdil
2019-04-03 08:35:34 -07:00
committed by android-build-merger

View File

@@ -5694,6 +5694,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();
}