Skip to content

Commit

Permalink
Refactor to lay the groundwork for metadata encryption
Browse files Browse the repository at this point in the history
Bug: 26778031
Test: Angler, Marlin build and boot
Change-Id: Ic136dfe6195a650f7db76d3489f36da6a1929dc5
  • Loading branch information
ciphergoth authored and PaulLawrenceGoogle committed Apr 21, 2017
1 parent 5e32f9c commit f71ace3
Show file tree
Hide file tree
Showing 11 changed files with 965 additions and 786 deletions.
3 changes: 3 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ common_src_files := \
TrimTask.cpp \
Keymaster.cpp \
KeyStorage.cpp \
KeyUtil.cpp \
ScryptParameters.cpp \
secontext.cpp \
EncryptInplace.cpp \

common_c_includes := \
system/extras/f2fs_utils \
external/scrypt/lib/crypto \
external/f2fs-tools/include \
frameworks/native/include \
system/security/keystore \

Expand Down
2 changes: 1 addition & 1 deletion CryptCommandListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ int CryptCommandListener::CryptfsCmd::runCommand(SocketClient *cli,
} else if (subcommand == "enablefilecrypto") {
if (!check_argc(cli, subcommand, argc, 2, "")) return 0;
dumpArgs(argc, argv, -1);
rc = cryptfs_enable_file();
rc = e4crypt_initialize_global_de();
} else if (subcommand == "changepw") {
const char* syntax = "Usage: cryptfs changepw "
"default|password|pin|pattern [newpasswd]";
Expand Down
Loading

0 comments on commit f71ace3

Please sign in to comment.