summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdithya R <gh0strider.2k18.reborn@gmail.com>2021-04-11 20:21:27 +0530
committeralk3pInjection <webmaster@raspii.tech>2023-09-17 12:54:04 +0800
commit3eb76da33cd361f94c30ea3ebc150e8db0f2bb1b (patch)
tree4941fc27d3b76edc937819043a53ea6ae16fbff1
parentd2f94765947175d03a9d7e5c6e250ffe207a2543 (diff)
Zygote: Do not spam logcat when libbeluga is absent
Change-Id: Iba0495d2394b5cc77770bee28e3a24c4930b64a0
-rw-r--r--core/jni/com_android_internal_os_Zygote.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/jni/com_android_internal_os_Zygote.cpp b/core/jni/com_android_internal_os_Zygote.cpp
index 9655fb6c5c8d..ace90ae1256c 100644
--- a/core/jni/com_android_internal_os_Zygote.cpp
+++ b/core/jni/com_android_internal_os_Zygote.cpp
@@ -645,10 +645,7 @@ static void PreApplicationInit() {
void *mBelugaHandle = nullptr;
void (*mBeluga)() = nullptr;
mBelugaHandle = dlopen("libbeluga.so", RTLD_NOW);
- if (!mBelugaHandle) {
- ALOGW("Unable to open libbeluga.so: %s.", dlerror());
- }
- else {
+ if (mBelugaHandle) {
mBeluga = (void (*) ())dlsym(mBelugaHandle, "beluga");
if (mBeluga)
mBeluga();