mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_rosemary
synced 2026-01-27 07:49:58 +00:00
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:
committed by
Matsvei Niaverau
parent
36c694ab53
commit
481eb83edf
@@ -109,6 +109,9 @@ PRODUCT_PACKAGES += \
|
||||
PRODUCT_PACKAGES += \
|
||||
libsuspend
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
libshim_showlogo
|
||||
|
||||
# Display
|
||||
TARGET_SCREEN_DENSITY := 440
|
||||
TARGET_SCREEN_HEIGHT := 2400
|
||||
|
||||
@@ -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
7
libshims/Android.bp
Normal file
@@ -0,0 +1,7 @@
|
||||
cc_library_shared {
|
||||
name: "libshim_showlogo",
|
||||
srcs: ["libshim_showlogo.cpp"],
|
||||
shared_libs: [
|
||||
"libui",
|
||||
]
|
||||
}
|
||||
11
libshims/libshim_showlogo.cpp
Normal file
11
libshims/libshim_showlogo.cpp
Normal 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};
|
||||
Reference in New Issue
Block a user