Merge "Revert "Add widevine vendor apex""
This commit is contained in:
committed by
Android (Google) Code Review
commit
20388e323d
@@ -77,4 +77,5 @@ cc_library_static {
|
||||
],
|
||||
|
||||
proprietary: true,
|
||||
|
||||
}
|
||||
|
||||
@@ -42,7 +42,6 @@ using namespace wvoec3;
|
||||
using video_widevine::ProvisioningResponse;
|
||||
using wvcdm::kLevel3;
|
||||
using wvcdm::kLevelDefault;
|
||||
using namespace std;
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -932,19 +931,7 @@ class Adapter {
|
||||
return result;
|
||||
}
|
||||
if (level1_library_ == nullptr) {
|
||||
vector<string> library_paths = {"/vendor/", "/system/", "/odm/"};
|
||||
string sub_dir;
|
||||
#if __LP64__
|
||||
sub_dir = "lib64/";
|
||||
#else
|
||||
sub_dir = "lib/";
|
||||
#endif
|
||||
|
||||
for (auto& path : library_paths) {
|
||||
level1_library_ = dlopen((path + sub_dir + library_name).c_str(), RTLD_NOW);
|
||||
if (level1_library_) break;
|
||||
}
|
||||
|
||||
level1_library_ = dlopen(library_name.c_str(), RTLD_NOW);
|
||||
if (level1_library_ == nullptr) {
|
||||
LOGW("Could not load %s. Falling back to L3. %s", library_name.c_str(),
|
||||
dlerror());
|
||||
|
||||
Reference in New Issue
Block a user