Loading services/core/java/com/android/server/am/ActivityManagerService.java +14 −0 Original line number Diff line number Diff line Loading @@ -1266,6 +1266,8 @@ public class ActivityManagerService extends IActivityManager.Stub } } boolean mSystemProvidersInstalled; CoreSettingsObserver mCoreSettingsObserver; FontScaleSettingObserver mFontScaleSettingObserver; Loading Loading @@ -12110,6 +12112,14 @@ public class ActivityManagerService extends IActivityManager.Stub "Attempt to launch content provider before system ready"); } // If system providers are not installed yet we aggressively crash to avoid // creating multiple instance of these providers and then bad things happen! if (!mSystemProvidersInstalled && cpi.applicationInfo.isSystemApp() && "system".equals(cpi.processName)) { throw new IllegalStateException("Cannot access system provider: '" + cpi.authority + "' before system providers are installed!"); } // Make sure that the user who owns this provider is running. If not, // we don't want to allow it to run. if (!mUserController.isUserRunning(userId, 0)) { Loading Loading @@ -12663,6 +12673,10 @@ public class ActivityManagerService extends IActivityManager.Stub mSystemThread.installSystemProviders(providers); } synchronized (this) { mSystemProvidersInstalled = true; } mConstants.start(mContext.getContentResolver()); mCoreSettingsObserver = new CoreSettingsObserver(this); mFontScaleSettingObserver = new FontScaleSettingObserver(); Loading
services/core/java/com/android/server/am/ActivityManagerService.java +14 −0 Original line number Diff line number Diff line Loading @@ -1266,6 +1266,8 @@ public class ActivityManagerService extends IActivityManager.Stub } } boolean mSystemProvidersInstalled; CoreSettingsObserver mCoreSettingsObserver; FontScaleSettingObserver mFontScaleSettingObserver; Loading Loading @@ -12110,6 +12112,14 @@ public class ActivityManagerService extends IActivityManager.Stub "Attempt to launch content provider before system ready"); } // If system providers are not installed yet we aggressively crash to avoid // creating multiple instance of these providers and then bad things happen! if (!mSystemProvidersInstalled && cpi.applicationInfo.isSystemApp() && "system".equals(cpi.processName)) { throw new IllegalStateException("Cannot access system provider: '" + cpi.authority + "' before system providers are installed!"); } // Make sure that the user who owns this provider is running. If not, // we don't want to allow it to run. if (!mUserController.isUserRunning(userId, 0)) { Loading Loading @@ -12663,6 +12673,10 @@ public class ActivityManagerService extends IActivityManager.Stub mSystemThread.installSystemProviders(providers); } synchronized (this) { mSystemProvidersInstalled = true; } mConstants.start(mContext.getContentResolver()); mCoreSettingsObserver = new CoreSettingsObserver(this); mFontScaleSettingObserver = new FontScaleSettingObserver();