rosemary: Shim missing libshowlogo symbol

* ui::Size was changed going from VNDK32 to VNDK33 [1] and
  ui::Size::INVALID constant was removed. However, all we need
  to do is set INVALID to a Size with a width/height of -1.

[1]: 6d043c5c5c

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I4a224c6c3f622152a8bdc9f70bca18263af068cd
This commit is contained in:
bengris32
2023-05-28 20:11:01 +01:00
committed by Matsvei Niaverau
parent 36c694ab53
commit 481eb83edf
4 changed files with 24 additions and 0 deletions

View File

@@ -109,6 +109,9 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
libsuspend
PRODUCT_PACKAGES += \
libshim_showlogo
# Display
TARGET_SCREEN_DENSITY := 440
TARGET_SCREEN_HEIGHT := 2400

View File

@@ -55,6 +55,9 @@ fi
function blob_fixup {
case "$1" in
lib64/libshowlogo.so)
"${PATCHELF}" --add-needed "libshim_showlogo.so" "${2}"
;;
vendor/bin/hw/android.hardware.gnss-service.mediatek |\
vendor/lib64/hw/android.hardware.gnss-impl-mediatek.so)
"$PATCHELF" --replace-needed "android.hardware.gnss-V1-ndk_platform.so" "android.hardware.gnss-V1-ndk.so" "$2"

7
libshims/Android.bp Normal file
View File

@@ -0,0 +1,7 @@
cc_library_shared {
name: "libshim_showlogo",
srcs: ["libshim_showlogo.cpp"],
shared_libs: [
"libui",
]
}

View File

@@ -0,0 +1,11 @@
/*
* Copyright (C) 2023 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <ui/Size.h>
using namespace android;
extern "C" ui::Size _ZN7android2ui4Size7INVALIDE{-1, -1};