summaryrefslogtreecommitdiffstats
path: root/init/keywords.h
diff options
context:
space:
mode:
authorKen Sumrall <ksumrall@android.com>2011-03-08 17:01:29 -0800
committerKen Sumrall <ksumrall@android.com>2011-03-10 18:12:19 -0800
commitc5c51033c86353d1a448c72e0e9388906eed7114 (patch)
treee3cfece05089e88601bae6fb496c77b691338ae6 /init/keywords.h
parente3aeeb4de34dbb93e832e6554f494122ba633f3b (diff)
downloadcore-c5c51033c86353d1a448c72e0e9388906eed7114.tar.gz
core-c5c51033c86353d1a448c72e0e9388906eed7114.tar.bz2
core-c5c51033c86353d1a448c72e0e9388906eed7114.zip
Load the persistent properties after decrypting the /data partition
Fix for bug 3415286. The persistent properties are normally read early in the boot process after /data is mounted. However, for an encrypted system, at that point /data is a tmpfs ramdisk. This change adds a new command to init (load_persist_props) to read the persistent properties, and adds an action to init.rc to load the persistent properties. This action is triggered by setting a property in vold, but that's in a different CL. Change-Id: I74b3057974ee6029c29d956b76fef5566700d471
Diffstat (limited to 'init/keywords.h')
-rw-r--r--init/keywords.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/init/keywords.h b/init/keywords.h
index c977fd788..95acd01a3 100644
--- a/init/keywords.h
+++ b/init/keywords.h
@@ -30,6 +30,7 @@ int do_copy(int nargs, char **args);
int do_chown(int nargs, char **args);
int do_chmod(int nargs, char **args);
int do_loglevel(int nargs, char **args);
+int do_load_persist_props(int nargs, char **args);
int do_wait(int nargs, char **args);
#define __MAKE_KEYWORD_ENUM__
#define KEYWORD(symbol, flags, nargs, func) K_##symbol,
@@ -81,6 +82,7 @@ enum {
KEYWORD(chown, COMMAND, 2, do_chown)
KEYWORD(chmod, COMMAND, 2, do_chmod)
KEYWORD(loglevel, COMMAND, 1, do_loglevel)
+ KEYWORD(load_persist_props, COMMAND, 0, do_load_persist_props)
KEYWORD(ioprio, OPTION, 0, 0)
#ifdef __MAKE_KEYWORD_ENUM__
KEYWORD_COUNT,