Files
frameworks_base/drm/jni/Android.bp
Edwin Wong a37060dbba Use shared libdrmframeworkcommon.
The libdrmframeworkcommon was statically linked
to multiple libraries used by libfwdlockengine.
When the shared libraries closes, the same block
of static memory will be freed twice.

Test: CTS forwardlock tests
  atest CtsDrmTestCases
Bug: 155647761
Change-Id: I45113549772d48e925082d15659b1409cbed6499
(cherry picked from commit 4ed2e6b76d)
2020-10-13 01:07:58 +00:00

40 lines
1.0 KiB
Plaintext

//
// Copyright (C) 2010 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.
//
cc_library_shared {
name: "libdrmframework_jni",
srcs: ["android_drm_DrmManagerClient.cpp"],
shared_libs: [
"libdrmframework",
"libdrmframeworkcommon",
"liblog",
"libutils",
"libandroid_runtime",
"libnativehelper",
"libbinder",
"libdl",
],
cflags: [
"-Wall",
"-Werror",
"-Wunused",
"-Wunreachable-code",
],
}