8.2.6 Modifying Android properties and rebooting Android

You must modify some Android properties so that Android can use the Generic Graphics Accelerator.

Procedure

  1. Disable the Android OpenGL ES driver preload feature by entering the following commands on the host:
    adb remount
    adb shell sed -i '/ro.zygote.disable_gl_preload=/d' /system/build.prop
    adb shell "echo \"ro.zygote.disable_gl_preload=true\" >> /system/build.prop"
  2. To change hardware rendering from false to true, use the following commands on the host:
    The commands are different for Linaro, and 32-bit and 64-bit Android:
    • Android 64-bit:
      adb remount
      adb shell sed -i '1,/ro.kernel.qemu/s/ro.kernel.qemu/No.kernel.qemu/' /system/lib/libEGL.so
      adb shell sed -i '1,/ro.kernel.qemu/s/ro.kernel.qemu/No.kernel.qemu/' /system/lib64/libEGL.so
    • Android 32-bit:
      adb remount
      adb shell sed -i '1,/ro.kernel.qemu/s/ro.kernel.qemu/No.kernel.qemu/' /system/lib/libEGL.so
    • Some Linaro distributions of Android 64-bit:
      adb remount
      adb shell sed -i '1,/ro.kernel.qemu/s/ro.kernel.qemu/No.kernel.qemu/' /system/lib/libEGL.so
      adb shell sed -i '1,/ro.kernel.qemu/s/ro.kernel.qemu/No.kernel.qemu/' /system/lib64/libEGL.so
      adb shell sed -i 's/ro.nohardwaregfx=true/ro.nohardwaregfx=false/' /system/build.prop
    • Some Linaro distributions of Android 32-bit:
      adb remount
      adb shell sed -i '1,/ro.kernel.qemu/s/ro.kernel.qemu/No.kernel.qemu/' /system/lib/libEGL.so
      adb shell sed -i 's/ro.nohardwaregfx=true/ro.nohardwaregfx=false/' /system/build.prop
  3. Reboot Android to enable these changes.
    adb shell sync
    adb shell reboot

    Note:

    If Android fails to reboot, kill Fast Models and start again.
Non-ConfidentialPDF file icon PDF versionARM 100965_1101_00_en
Copyright © 2014–2017 ARM Limited or its affiliates. All rights reserved.