Remove secontext.h, secontext.cpp, hash.h
cryptfs.cpp and MetadataCrypt.cpp can use android::vold::sFsckContext directly.
hash.h is unuseful.
Test: make
Change-Id: I7acdac97d6ed1c9b2a5dc367fcea8aa2942192e8
diff --git a/MetadataCrypt.cpp b/MetadataCrypt.cpp
index 5c8a075..d31419f 100644
--- a/MetadataCrypt.cpp
+++ b/MetadataCrypt.cpp
@@ -44,7 +44,6 @@
#include "Keymaster.h"
#include "Utils.h"
#include "VoldUtil.h"
-#include "secontext.h"
#define DM_CRYPT_BUF_SIZE 4096
#define TABLE_LOAD_RETRIES 10
@@ -60,7 +59,7 @@
static bool mount_via_fs_mgr(const char* mount_point, const char* blk_device) {
// fs_mgr_do_mount runs fsck. Use setexeccon to run trusted
// partitions in the fsck domain.
- if (setexeccon(secontextFsck())) {
+ if (setexeccon(android::vold::sFsckContext)) {
PLOG(ERROR) << "Failed to setexeccon";
return false;
}