OSDN Git Service

Dynamically add the webview_zygote's preloaded APK to the zygote FD whitelist.
authorRobert Sesek <rsesek@google.com>
Fri, 2 Dec 2016 22:27:50 +0000 (17:27 -0500)
committerAndreas Gampe <agampe@google.com>
Tue, 10 Jan 2017 19:44:56 +0000 (11:44 -0800)
commit54e387ddbe6a0462bc8e9e15c7c7b3463adfcb24
tree9c2e6a5f4bb8f2bb6b6de700f4ab63866881824c
parent8225b7c95185dfbfe67da105df4402430784393c
Dynamically add the webview_zygote's preloaded APK to the zygote FD whitelist.

This refactors the whitelist to be a class, rather than just a static C array.
The whitelist can then be augmented dynamically when the package path is known
in the webview_zygote.

Test: m
Test: sailfish boots
Test: Enable Multi-process WebView in developer options, perform a search in GSA.

Bug: 21643067
Change-Id: Ia1f2535c7275b42b309631b4fe7859c30cbf7309
(cherry picked from commit 061ee3088a79ab0e07d37d1c0897d51422f29c4e)
core/java/com/android/internal/os/WebViewZygoteInit.java
core/java/com/android/internal/os/Zygote.java
core/jni/com_android_internal_os_Zygote.cpp
core/jni/fd_utils.cpp
core/jni/fd_utils.h