Revert "Add widevine vendor apex"

Revert submission 19794159-wv-vapex

Reason for revert: Breaking build in branch ndk_translation_all
Reverted Changes:
I48004b8cb:Add widevine apex
Ifa5c1b621:Add widevine vendor apex

Change-Id: I056369265fb341d723b8ff31a0efd7ae3eeec0bb
This commit is contained in:
Kyle Zhang
2022-09-13 18:05:51 +00:00
parent b9c4bfdaf7
commit eee0d4b88e
15 changed files with 9 additions and 221 deletions

View File

@@ -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());