CastAuthApk: Add logs on mediaDRM plugin
Bug: 253463372 Test: Access Cast creds with MediaDrm plugin Change-Id: I7ac3409b775d5387f7386ff2b1d9c90c21c43a6a
This commit is contained in:
parent
4d58b9a903
commit
96e19e9e80
1 changed files with 3 additions and 0 deletions
|
@ -116,6 +116,7 @@ std::vector<uint8_t> readBinaryFile(const std::string& file_path) {
|
|||
*_aidl_return = std::vector<uint8_t>();
|
||||
void* cast_auth_handle = ::dlopen("libcast_auth.so", RTLD_LAZY);
|
||||
if (!cast_auth_handle) {
|
||||
ALOGE("Fail to get TA for signing");
|
||||
return toNdkScopedAStatus(status);
|
||||
}
|
||||
typedef bool (*func_type)(const std::vector<uint8_t>&,
|
||||
|
@ -123,6 +124,7 @@ std::vector<uint8_t> readBinaryFile(const std::string& file_path) {
|
|||
func_type sign_hash_func =
|
||||
reinterpret_cast<func_type>(::dlsym(cast_auth_handle, "SignHash"));
|
||||
if (!sign_hash_func) {
|
||||
ALOGE("Fail to apply signing method");
|
||||
dlclose(cast_auth_handle);
|
||||
return toNdkScopedAStatus(status);
|
||||
}
|
||||
|
@ -133,6 +135,7 @@ std::vector<uint8_t> readBinaryFile(const std::string& file_path) {
|
|||
*_aidl_return = signature;
|
||||
status = Status::OK;
|
||||
}
|
||||
ALOGE("Get empty result from TA");
|
||||
return toNdkScopedAStatus(status);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue