Add liboemcrypto.so as required by WV APEX
[ Merge of go/wvgerrit/164757 ] Modify Widevine apex configuration to add add liboemcrypto.so as required by WV APEX. Bug: 243699259 Test: atp v2/widevine-eng/drm_compliance Change-Id: I136dde5d77aed4fb14737e4692153c8f3b2c701b
This commit is contained in:
@@ -180,18 +180,9 @@ bool Properties::GetOEMCryptoPaths(std::vector<std::string>* library_names) {
|
||||
LOGW("Properties::GetOEMCryptoPath: Invalid parameter");
|
||||
return false;
|
||||
}
|
||||
std::vector<std::string> library_paths = {"/vendor/", "/system/", "/odm/"};
|
||||
std::string sub_dir;
|
||||
#if __LP64__
|
||||
sub_dir = "lib64/";
|
||||
#else
|
||||
sub_dir = "lib/";
|
||||
#endif
|
||||
|
||||
const std::string library_name = "liboemcrypto.so";
|
||||
for (auto& path : library_paths) {
|
||||
library_names->push_back(path + sub_dir + library_name);
|
||||
}
|
||||
library_names->push_back("liboemcrypto.so");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user