Files
device_realme_nemo/libshims/libutils/libshim_utils.cpp
bengris32 f7ba7a991c RM6785-common: Shim missing libutils symbol for Camera HAL
* cannot locate symbol "_ZN7android7String87toUpperEv" referenced by
 "/vendor/lib64/libcam.halsensor.so"....

9434f59c17

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I7ac4e2362a9cca76009785d994d2aa6d103182f1
2025-02-19 13:20:19 +05:30

26 lines
487 B
C++

/*
* Copyright (C) 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <utils/String8.h>
using namespace android;
extern "C" {
void _ZN7android7String87toUpperEv(String8* thisptr) {
const size_t length = thisptr->size();
if (length == 0) return;
char* buf = thisptr->lockBuffer(length);
for (size_t i = length; i > 0; --i) {
*buf = static_cast<char>(toupper(*buf));
buf++;
}
thisptr->unlockBuffer(length);
}
}