From 5074fd792827b9f01c63da3a53fe29c0a9a21dc0 Mon Sep 17 00:00:00 2001 From: Davide Garberi Date: Sun, 1 Sep 2019 22:43:29 +0200 Subject: sdm660-common: Nuke libMiWatermark * This lib is creating troubles on android 10 requiring old libs in vendor * Other than that, it's the only culprit for vndk runtime being kept disabled * Nuke this lib via a empty shim providing the symbols to the camera hal Change-Id: Ia844e973299d3e1be0a37473e76325be1828415d --- libshims/Android.bp | 17 +++++++++++++++++ libshims/miwatermark.cpp | 10 ++++++++++ 2 files changed, 27 insertions(+) create mode 100644 libshims/Android.bp create mode 100644 libshims/miwatermark.cpp (limited to 'libshims') diff --git a/libshims/Android.bp b/libshims/Android.bp new file mode 100644 index 0000000..a1f2c0d --- /dev/null +++ b/libshims/Android.bp @@ -0,0 +1,17 @@ +/* libMiWatermark */ +cc_library_shared { + name: "libMiWatermark_shim", + proprietary: true, + defaults: ["hidl_defaults"], + srcs: [ + "miwatermark.cpp", + ], + cflags: [ + "-Werror", + "-Wextra", + "-Wall", + ], + shared_libs: [ + "libutils", + ], +} diff --git a/libshims/miwatermark.cpp b/libshims/miwatermark.cpp new file mode 100644 index 0000000..b2daf37 --- /dev/null +++ b/libshims/miwatermark.cpp @@ -0,0 +1,10 @@ +#include + +namespace android { + extern "C" void miwatermark_age() {} + extern "C" void miwatermark_deinit() {} + extern "C" void miwatermark_dualcamera() {} + extern "C" void miwatermark_init() {} + extern "C" void miwatermark_score() {} + extern "C" void miwatermark_time() {} +} -- cgit v1.2.3