OSDN Git Service

vold: fix missing has.adoptable
authorJaegeuk Kim <jaegeuk@google.com>
Thu, 23 Apr 2020 20:43:12 +0000 (13:43 -0700)
committerJaegeuk Kim <jaegeuk@google.com>
Thu, 23 Apr 2020 20:43:12 +0000 (13:43 -0700)
This patch fixes missing entry in the below commit.

Fixes: c52f6724edd6 ("vold: clean up configuration set")
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ia39a427d4747b29a7af42633f34daab63204bbf9

main.cpp

index 67a3344..402ba0a 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -131,6 +131,7 @@ int main(int argc, char** argv) {
 
     // This call should go after listeners are started to avoid
     // a deadlock between vold and init (see b/34278978 for details)
+    android::base::SetProperty("vold.has_adoptable", configs.has_adoptable ? "1" : "0");
     android::base::SetProperty("vold.has_quota", configs.has_quota ? "1" : "0");
     android::base::SetProperty("vold.has_reserved", configs.has_reserved ? "1" : "0");
     android::base::SetProperty("vold.has_compress", configs.has_compress ? "1" : "0");