Compare commits

..

No commits in common. "adhoc-dev" and "replicant-6.0" have entirely different histories.

1 changed files with 5 additions and 4 deletions

View File

@ -144,13 +144,14 @@ static char const * getProcessCmdline() {
*/
static const char* getOverridePath(void) {
ALOGD("UID:%d EUID:%d - %s", getuid(), geteuid(), getProcessCmdline());
ALOGD("UID:%d EUID:%d", getuid(), geteuid());
// 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,"
" zygote's libGLES preloaded for every process");
" EGL overrides disabled");
return 0;
}
String8 data_override_path("/data/data/");
@ -188,8 +189,8 @@ static const char* getOverridePath(void) {
return "/system/lib/egl/libGLES_android.so";
}
ALOGD("no EGL override found, default libGLES_mesa.so");
return "/system/lib/egl/libGLES_mesa.so";
ALOGD("no EGL override found");
return 0;
}
// ----------------------------------------------------------------------------