diff options
| author | Ken Sumrall <ksumrall@android.com> | 2011-01-14 12:44:09 -0800 |
|---|---|---|
| committer | Ken Sumrall <ksumrall@android.com> | 2011-01-14 12:44:09 -0800 |
| commit | 4e84d3bcf9af3452128fe2e8dc7607dff9016fac (patch) | |
| tree | 2cdc3b87b9232e6e120e35ca5a42f50600ddbc94 | |
| parent | 63990cf56fc64033c0382ac19a3ffba7f525fb30 (diff) | |
| download | system_core-4e84d3bcf9af3452128fe2e8dc7607dff9016fac.tar.gz system_core-4e84d3bcf9af3452128fe2e8dc7607dff9016fac.tar.bz2 system_core-4e84d3bcf9af3452128fe2e8dc7607dff9016fac.zip | |
Set a read-only property to indicate if the device is running encrypted.
The UI needs to know if the device is running with an encrypted
filesystem or now. So set a read-only property at boot to let it know.
Change-Id: I753de2d606c975bcbe9946d10fd47558cf357dac
| -rw-r--r-- | init/builtins.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/init/builtins.c b/init/builtins.c index 8b2e4aac..915c5aa1 100644 --- a/init/builtins.c +++ b/init/builtins.c @@ -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); } } |
