Skip to content

Commit

Permalink
raphael: Make shim for com.qti.node.watermark.so
Browse files Browse the repository at this point in the history
Signed-off-by: Kujou Yuko <[email protected]>
Change-Id: I47fea33432692a7a76d71db91676cb3a58ac19c7
  • Loading branch information
asuka-mio authored and joeyhuab committed Aug 19, 2022
1 parent 69d9e3e commit 2952a3f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@ PRODUCT_PACKAGES += \
[email protected] \
libsensorndkbridge

# Shim
PRODUCT_PACKAGES += \
libwatermark_shim

# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH) \
Expand Down
3 changes: 3 additions & 0 deletions extract-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ function blob_fixup() {
"${PATCHELF}" --remove-needed "libmegface.so" "${2}"
"${PATCHELF}" --add-needed "libshim_megvii.so" "${2}"
;;
vendor/lib64/camera/components/com.qti.node.watermark.so)
"${PATCHELF}" --add-needed "libwatermark_shim.so" "${2}"
;;
esac
}

Expand Down
11 changes: 11 additions & 0 deletions libshim/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//
// Copyright (C) 2021 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//

cc_library_shared {
name: "libwatermark_shim",
srcs: ["libwatermark_shim.c"],
vendor: true,
}
1 change: 1 addition & 0 deletions libshim/libwatermark_shim.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
void _ZN4piex19GetPreviewImageDataEPNS_15StreamInterfaceEPNS_16PreviewImageDataE() {}

0 comments on commit 2952a3f

Please sign in to comment.