OSDN Git Service

Move crypt commands to a different listener in vold
authorPaul Lawrence <paullawrence@google.com>
Wed, 3 Jun 2015 21:18:17 +0000 (14:18 -0700)
committerPaul Lawrence <paullawrence@google.com>
Wed, 3 Jun 2015 21:18:17 +0000 (14:18 -0700)
In order to prevent this bug from happening, we must allow vold cryptfs
commands to complete while a long running mount is underway.

While waiting for vold to be changed to a binder interface, we will simply
create two listeners, one for cryptfs and one for everything else.

Bug: 19197175
Change-Id: Id87764ed68c169fc6b94ea4f4f7a51a7ec9c7564

ext4_utils/ext4_crypt_init_extensions.cpp

index cae1f7f..7ae076a 100644 (file)
@@ -26,7 +26,7 @@ static std::string vold_command(std::string const& command)
     int sock = -1;
 
     while (true) {
-        sock = socket_local_client("vold",
+        sock = socket_local_client("cryptd",
                                    ANDROID_SOCKET_NAMESPACE_RESERVED,
                                    SOCK_STREAM);
         if (sock >= 0) {