Adding ApexInfo utility
This is to get name/version when the HAL is started from an APEX. This is the initial work and just prints name/version on startup. Bug: 268439003 Test: adb logcat | grep com.google.android.widevine Change-Id: I756c042d544f973999738f7d17022d916b9712cd
This commit is contained in:
42
libwvdrmengine/apex/proto/Android.bp
Normal file
42
libwvdrmengine/apex/proto/Android.bp
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (C) 2023 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
// TODO(b/268439003) The widevine apex wants to get the apex version.
|
||||
// Since there's no such API, we read it from apex_manifest.pb directly via
|
||||
// a partial view proto.
|
||||
// When we have a proper API, we can delete this proto because it should be
|
||||
// internal to system.
|
||||
cc_library_static {
|
||||
name: "lib_apex_manifest_minimal_proto_lite",
|
||||
proto: {
|
||||
type: "lite",
|
||||
},
|
||||
export_include_dirs: [
|
||||
".",
|
||||
],
|
||||
srcs: [
|
||||
"apex_manifest_minimal.proto",
|
||||
"widevine_apex_info.cpp",
|
||||
],
|
||||
shared_libs: [
|
||||
"libbase",
|
||||
],
|
||||
vendor: true,
|
||||
}
|
||||
Reference in New Issue
Block a user