Rebuild Haystack and Store L3 Keybox in /data/vendor

am: 76d3ca9091

Change-Id: Ib61e1b2b3ff01addb9bedbbe3d434db337861c6d
This commit is contained in:
John W. Bruce
2017-04-19 22:01:14 +00:00
committed by android-build-merger
8 changed files with 6 additions and 5 deletions

View File

@@ -432,9 +432,9 @@ class Adapter {
std::string base_path;
wvcdm::Properties::GetDeviceFilesBasePath(wvcdm::kSecurityLevelL3,
&base_path);
bool is_in_app = Level3_IsInApp(base_path.c_str());
OEMCryptoResult result = Level3_Initialize(clear_cache_function);
if (is_in_app) {
OEMCryptoResult result = Level3_Initialize(clear_cache_function,
base_path.c_str());
if (Level3_IsInApp()) {
M_RECORD(
&metrics,
oemcrypto_initialization_mode_,

View File

@@ -79,8 +79,9 @@ namespace wvoec3 {
#define Level3_CreateOldUsageEntry _lcc70
extern "C" {
bool Level3_IsInApp(const char* path);
OEMCryptoResult Level3_Initialize(void (*ClearCache)(void *, size_t));
bool Level3_IsInApp();
OEMCryptoResult Level3_Initialize(void (*ClearCache)(void *, size_t),
const char* base_path);
OEMCryptoResult Level3_Terminate(void);
OEMCryptoResult Level3_OpenSession(OEMCrypto_SESSION *session);
OEMCryptoResult Level3_CloseSession(OEMCrypto_SESSION session);