summaryrefslogtreecommitdiffstats
path: root/ResponseCode.h
diff options
context:
space:
mode:
authorKen Sumrall <ksumrall@android.com>2011-10-04 20:38:29 -0700
committerKen Sumrall <ksumrall@android.com>2011-10-12 19:10:38 -0700
commit3ad9072a5d6f6bda32123b367545649364e3c11d (patch)
treeaca223fe5d71e2a0f62c7a1d644571532fe3e0e8 /ResponseCode.h
parent3be890f59c04f94537f2f66f1d2841ed591f1a6e (diff)
downloadsystem_vold-3ad9072a5d6f6bda32123b367545649364e3c11d.zip
system_vold-3ad9072a5d6f6bda32123b367545649364e3c11d.tar.gz
system_vold-3ad9072a5d6f6bda32123b367545649364e3c11d.tar.bz2
Add the new verifypw command to vold/cryptfs
This vold command returns 0 if the given password matches the password used to decrypt the device on boot. It returns 1 if they don't match, and it returns -1 on an internal error, and -2 if the device is not encrypted. Also check the uid of the sender of the command and only allow the root and system users to issue cryptfs commands. Change-Id: I5e5ae3b72a2d7814ae68c2d49aa9deb90fb1dac5
Diffstat (limited to 'ResponseCode.h')
-rw-r--r--ResponseCode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ResponseCode.h b/ResponseCode.h
index a858b99..402e35b 100644
--- a/ResponseCode.h
+++ b/ResponseCode.h
@@ -48,6 +48,7 @@ public:
// action did not take place.
static const int CommandSyntaxError = 500;
static const int CommandParameterError = 501;
+ static const int CommandNoPermission = 502;
// 600 series - Unsolicited broadcasts
static const int UnsolicitedInformational = 600;