Test that plaintext can't be read from disk for encrypted files.
Bug: 36029169
Test: tested by hand on Taimen
Change-Id: I5717a8630bb2c8d8fe5c343d519c4e59862ecbdf
diff --git a/vdc.cpp b/vdc.cpp
index 761d035..19eb379 100644
--- a/vdc.cpp
+++ b/vdc.cpp
@@ -100,6 +100,8 @@
checkStatus(vold->mountDefaultEncrypted());
} else if (args[0] == "volume" && args[1] == "shutdown") {
checkStatus(vold->shutdown());
+ } else if (args[0] == "cryptfs" && args[1] == "checkEncryption" && args.size() == 3) {
+ checkStatus(vold->checkEncryption(args[2]));
} else {
LOG(ERROR) << "Raw commands are no longer supported";
exit(EINVAL);