Allow overrides of zygote's libGLES preload. Default to mesa
Signed-off-by: Velsoth <velsoth@adhoc.zone>
This commit is contained in:
parent
f8152796e2
commit
3127e24ab8
@ -144,14 +144,13 @@ static char const * getProcessCmdline() {
|
|||||||
*/
|
*/
|
||||||
static const char* getOverridePath(void) {
|
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
|
// only really useful if ro.zygote.disable_gl_preload is enabled
|
||||||
// otherwise overrides only happen once, to zygote
|
// otherwise overrides only happen once, to zygote
|
||||||
if (!property_get_bool("ro.zygote.disable_gl_preload", 0)) {
|
if (!property_get_bool("ro.zygote.disable_gl_preload", 0)) {
|
||||||
ALOGD("ro.zygote.disable_gl_preload not set,"
|
ALOGD("ro.zygote.disable_gl_preload not set,"
|
||||||
" EGL overrides disabled");
|
" zygote's libGLES preloaded for every process");
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String8 data_override_path("/data/data/");
|
String8 data_override_path("/data/data/");
|
||||||
@ -189,8 +188,8 @@ static const char* getOverridePath(void) {
|
|||||||
return "/system/lib/egl/libGLES_android.so";
|
return "/system/lib/egl/libGLES_android.so";
|
||||||
}
|
}
|
||||||
|
|
||||||
ALOGD("no EGL override found");
|
ALOGD("no EGL override found, default libGLES_mesa.so");
|
||||||
return 0;
|
return "/system/lib/egl/libGLES_mesa.so";
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user