May 2017
Beginner to intermediate
470 pages
10h 49m
English
The AOSP recovery code can work quite well on VirtualBox. There is only an issue related to the display. To fix the display issue, we need to change two files in the recovery source code.
We use the RECOVERY_GRAPHICS_FORCE_SINGLE_BUFFER macro as we mentioned earlier to configure the frame buffer changes. We need to add it to the recovery Makefile minui/Android.mk first as follows:
ifeq ($(RECOVERY_GRAPHICS_FORCE_SINGLE_BUFFER), true) LOCAL_CFLAGS += -DRECOVERY_GRAPHICS_FORCE_SINGLE_BUFFER endif
Since double buffer cannot work well on VirtualBox for the time being, we have to disable it as follows:
... /* check if we can use double buffering */ #ifndef RECOVERY_GRAPHICS_FORCE_SINGLE_BUFFER if (vi.yres * fi.line_length ...
Read now
Unlock full access