Here is how to disable android GPU acceleration, the info was provided by one of Freescale R&D engineers .
There are three kinds of GPU acceleration on android ICS and JB, 2D HWComposer, 3D OpengGL and 3D OpenGL HW Render.
You can follow below methods to disable them separately.
- 1. Disable 2D as below, you have checked the issue still here.
$mount –o remount rw /system
$cd system/lib/hw
$mv hwcomposer_viv.imx6.so hwcomposer_viv.imx6.so.bak
$sync
$reboot
- 2. Disable HW Render by do below code change and recompile by ”mm -B”, it will update libandroid_runtime.so.
r66033@killerbee0:~/AndroidJB/frameworks/base/core/jni$ git diff
diff --git a/core/jni/Android.mk b/core/jni/Android.mk
index 3ca085b..3fd986a 100644
--- a/core/jni/Android.mk
+++ b/core/jni/Android.mk
@@ -20,7 +20,7 @@ ifneq ($(USE_CUSTOM_RUNTIME_HEAP_MAX),)
endif
ifeq ($(USE_OPENGL_RENDERER),true)
- LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER
+# LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER
endif
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
@@ -220,7 +220,7 @@ LOCAL_CFLAGS += -DHAVE_SELINUX
endif # HAVE_SELINUX
ifeq ($(USE_OPENGL_RENDERER),true)
- LOCAL_SHARED_LIBRARIES += libhwui
+# LOCAL_SHARED_LIBRARIES += libhwui
endif
r66033@killerbee0:~/AndroidJB/frameworks/base/core/jni$ mm –B
- 3. Disable GPU 3D (need disable HW Render first, then do below change on your board)
$cd system/lib/egl
$mv libEGL_VIVANTE.so libEGL_VIVANTE.so.bak
$busybox vi egl.cfg, delete red color code
0 0 android
0 1 VIVANTE
$sync
$reboot