resolved conflicts for merge of bff40697 to mnc-dr-dev-plus-aosp
Change-Id: I7d7a614a5eb987ef6aecd32ed15a6eaa43e93957
diff --git a/init/builtins.cpp b/init/builtins.cpp
index 5fe67a6..7728b20 100644
--- a/init/builtins.cpp
+++ b/init/builtins.cpp
@@ -915,9 +915,8 @@
}
static bool is_file_crypto() {
- char prop_value[PROP_VALUE_MAX] = {0};
- property_get("ro.crypto.type", prop_value);
- return strcmp(prop_value, "file") == 0;
+ std::string value = property_get("ro.crypto.type");
+ return value == "file";
}
int do_installkey(int nargs, char **args)