From 3127e24ab8d5033bbd489e9c650b388a4cc298d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Dom=C3=ADnguez?= Date: Thu, 15 Aug 2019 21:04:33 +0200 Subject: [PATCH] Allow overrides of zygote's libGLES preload. Default to mesa Signed-off-by: Velsoth --- opengl/libs/EGL/Loader.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp index 9fc4e86c2..20ee7be81 100644 --- a/opengl/libs/EGL/Loader.cpp +++ b/opengl/libs/EGL/Loader.cpp @@ -144,14 +144,13 @@ static char const * getProcessCmdline() { */ static const char* getOverridePath(void) { - ALOGD("UID:%d EUID:%d", getuid(), geteuid()); + ALOGD("UID:%d EUID:%d - %s", getuid(), geteuid(), getProcessCmdline()); // only really useful if ro.zygote.disable_gl_preload is enabled // otherwise overrides only happen once, to zygote if (!property_get_bool("ro.zygote.disable_gl_preload", 0)) { ALOGD("ro.zygote.disable_gl_preload not set," - " EGL overrides disabled"); - return 0; + " zygote's libGLES preloaded for every process"); } String8 data_override_path("/data/data/"); @@ -189,8 +188,8 @@ static const char* getOverridePath(void) { return "/system/lib/egl/libGLES_android.so"; } - ALOGD("no EGL override found"); - return 0; + ALOGD("no EGL override found, default libGLES_mesa.so"); + return "/system/lib/egl/libGLES_mesa.so"; } // ----------------------------------------------------------------------------