Merge commit '0eec8948f89c5216464d8204cadd69d7a6ec3669' * commit '0eec8948f89c5216464d8204cadd69d7a6ec3669': Decrease PackageManagerService wait time for vold
This commit is contained in:
@@ -68,6 +68,8 @@ class MountService extends IMountService.Stub
|
||||
|
||||
private static final String TAG = "MountService";
|
||||
|
||||
private static final String VOLD_TAG = "VoldConnector";
|
||||
|
||||
/*
|
||||
* Internal vold volume state constants
|
||||
*/
|
||||
@@ -1006,9 +1008,15 @@ class MountService extends IMountService.Stub
|
||||
return;
|
||||
}
|
||||
|
||||
mConnector = new NativeDaemonConnector(this, "vold", 10, "VoldConnector");
|
||||
/*
|
||||
* Create the connection to vold with a maximum queue of twice the
|
||||
* amount of containers we'd ever expect to have. This keeps an
|
||||
* "asec list" from blocking a thread repeatedly.
|
||||
*/
|
||||
mConnector = new NativeDaemonConnector(this, "vold",
|
||||
PackageManagerService.MAX_CONTAINERS * 2, VOLD_TAG);
|
||||
mReady = false;
|
||||
Thread thread = new Thread(mConnector, NativeDaemonConnector.class.getName());
|
||||
Thread thread = new Thread(mConnector, VOLD_TAG);
|
||||
thread.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user