am 69e40574: am 4e84d3bc: Set a read-only property to indicate if the device is running encrypted.

* commit '69e4057440b298a65c7d21bacc466087c7f81d7e':
  Set a read-only property to indicate if the device is running encrypted.
This commit is contained in:
Ken Sumrall 2011-01-14 12:53:57 -08:00 committed by Android Git Automerger
commit 08cdb756be
1 changed files with 2 additions and 0 deletions

View File

@ -388,6 +388,7 @@ int do_mount(int nargs, char **args)
/* Set the property that triggers the framework to do a minimal
* startup and ask the user for a password
*/
property_set("ro.crypto.state", "encrypted");
property_set("vold.decrypt", "1");
} else {
return -1;
@ -395,6 +396,7 @@ int do_mount(int nargs, char **args)
} else {
if (!strcmp(target, DATA_MNT_POINT)) {
/* We succeeded in mounting /data, so it's not encrypted */
property_set("ro.crypto.state", "unencrypted");
action_for_each_trigger("nonencrypted", action_add_queue_tail);
}
}