Merge cdm changes to android repo
Bug: 251924225 Test: GtsMediaTestCases Change-Id: I1b4e64c0abf701fe1f5017f14dc72b72c3ea6770
This commit is contained in:
@@ -175,12 +175,23 @@ bool Properties::GetFactoryKeyboxPath(std::string* keybox) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Properties::GetOEMCryptoPath(std::string* library_name) {
|
||||
if (!library_name) {
|
||||
bool Properties::GetOEMCryptoPaths(std::vector<std::string>* library_names) {
|
||||
if (!library_names) {
|
||||
LOGW("Properties::GetOEMCryptoPath: Invalid parameter");
|
||||
return false;
|
||||
}
|
||||
*library_name = "liboemcrypto.so";
|
||||
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);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user