diff options
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
-rw-r--r-- | services/java/com/android/server/SystemServer.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index f6c1525..c82b49a 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -32,12 +32,7 @@ import android.content.pm.IPackageManager; import android.database.ContentObserver; import android.database.Cursor; import android.media.AudioService; -import android.os.IBinder; -import android.os.Looper; -import android.os.RemoteException; -import android.os.ServiceManager; -import android.os.SystemClock; -import android.os.SystemProperties; +import android.os.*; import android.provider.Contacts.People; import android.provider.Settings; import android.server.BluetoothA2dpService; @@ -45,6 +40,7 @@ import android.server.BluetoothDeviceService; import android.server.search.SearchManagerService; import android.util.EventLog; import android.util.Log; +import android.accounts.AccountManagerService; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; @@ -117,6 +113,14 @@ class ServerThread extends Thread { mContentResolver = context.getContentResolver(); + try { + Log.i(TAG, "Starting Account Manager."); + ServiceManager.addService(Context.ACCOUNT_SERVICE, + new AccountManagerService(context)); + } catch (Throwable e) { + Log.e(TAG, "Failure starting Account Manager", e); + } + Log.i(TAG, "Starting Content Manager."); ContentService.main(context, factoryTest == SystemServer.FACTORY_TEST_LOW_LEVEL); |