diff options
author | Jeff Hao <jeffhao@google.com> | 2014-10-22 15:57:32 -0700 |
---|---|---|
committer | Jeff Hao <jeffhao@google.com> | 2014-10-23 11:27:42 -0700 |
commit | 7eb599b267d00cbde891c0a87924f2f5086f4497 (patch) | |
tree | 01978b12641d7c03ff3edecc8e2f8d672246a5a8 /services/java/com/android/server/SystemServer.java | |
parent | f6e297398ba23ce7d26cf2e0efaf0d8a2230fe1c (diff) | |
download | frameworks_base-7eb599b267d00cbde891c0a87924f2f5086f4497.zip frameworks_base-7eb599b267d00cbde891c0a87924f2f5086f4497.tar.gz frameworks_base-7eb599b267d00cbde891c0a87924f2f5086f4497.tar.bz2 |
Get UsageStats if no PackageUsage is available for boot dexopt filtering.
Bug: 17191977
Change-Id: I33e18459e49afa42b8e8218574a2434e5205a6da
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
-rw-r--r-- | services/java/com/android/server/SystemServer.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 6009ffd..d7f6130 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -374,6 +374,8 @@ public final class SystemServer { mSystemServiceManager.startService(UsageStatsService.class); mActivityManagerService.setUsageStatsManager( LocalServices.getService(UsageStatsManagerInternal.class)); + // Update after UsageStatsService is available, needed before performBootDexOpt. + mPackageManagerService.getUsageStatsIfNoPackageUsageInfo(); // Tracks whether the updatable WebView is in a ready state and watches for update installs. mSystemServiceManager.startService(WebViewUpdateService.class); |