OSDN Git Service

Load the default graphics driver in USAPs.
authorChris Wailes <chriswailes@google.com>
Thu, 18 Apr 2019 00:55:48 +0000 (17:55 -0700)
committerChristian Wailes <chriswailes@google.com>
Wed, 24 Apr 2019 17:43:15 +0000 (17:43 +0000)
commit35fdbc570b4e905bcaa7892b70bd074894384cc5
tree73ff96ad5858abd2ab8765888ae5cb12fc17f3c7
parentdc7de2711341126b11529c46b2bab56aae994f91
Load the default graphics driver in USAPs.

This patch causes unspecialized app processes to load the OpenGL driver
after they are forked.  The ZygoteProcess code will then take an
application's driver preference into account when selecting how to
launch it.

Test: m & boot & launch & inspect traces for driver loading
Bug: 130029351
Change-Id: If6fa02f9c387596162e75a685b04208b45a5c86b
Merged-In: If6fa02f9c387596162e75a685b04208b45a5c86b
(cherry picked from commit 301a1c46da930bb927bd86227c6e1d44c70c349d)
core/java/android/os/Process.java
core/java/android/os/ZygoteProcess.java
core/java/com/android/internal/os/Zygote.java
core/java/com/android/internal/os/ZygoteInit.java
services/core/java/com/android/server/am/ProcessList.java