Merge "Pass app's data dir to ART"
This commit is contained in:
@@ -5694,6 +5694,10 @@ public final class ActivityThread extends ClientTransactionHandler {
|
|||||||
UserHandle.myUserId());
|
UserHandle.myUserId());
|
||||||
VMRuntime.setProcessPackageName(data.appInfo.packageName);
|
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) {
|
if (mProfiler.profileFd != null) {
|
||||||
mProfiler.startProfiling();
|
mProfiler.startProfiling();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user