Merge changes I1aabef01,I8dbd0f83

* changes:
  SystemServer: Move MountService startup before NotificationManagerService
  StorageManager: Check for a null MountService
This commit is contained in:
San Mehat
2010-02-09 08:58:23 -08:00
committed by Android (Google) Code Review
2 changed files with 15 additions and 8 deletions

View File

@@ -254,6 +254,10 @@ public class StorageManager
*/
public StorageManager(Looper tgtLooper) throws RemoteException {
mMountService = IMountService.Stub.asInterface(ServiceManager.getService("mount"));
if (mMountService == null) {
Log.e(TAG, "Unable to connect to mount service! - is it running yet?");
return;
}
mTgtLooper = tgtLooper;
mBinderListener = new MountServiceBinderListener();
mMountService.registerListener(mBinderListener);