History log of /frameworks/base/core/jni/fd_utils.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c362a44c679fc19ea55765b317269a51f67deb42 12-Mar-2018 Andreas Gampe <agampe@google.com> Frameworks: Refactor FileDescriptorTable errors

Surface error messages to the caller.

(cherry picked from commit 183a5d3cfa6bcdc817dfe6e5512fb6912bb44583)

Bug: 74531335
Test: m
Test: Device boots
Merged-In: I14df050feb7f5417bb08d190492c3050cdbb1c1d
Change-Id: I14df050feb7f5417bb08d190492c3050cdbb1c1d
/frameworks/base/core/jni/fd_utils.cpp
c0276a54ec20d83d0aa662c610ff5d24bc75fd33 17-Feb-2018 Robert Sesek <rsesek@google.com> Merge "Add Zygote.startChildZygote() to fork a new process that itself is a zygote." am: 554cfd1f1d am: 5b9410c74b
am: 4523bf284a

Change-Id: Ib714e447f06323d38c98de683f5547e66749856e
d0a190df8a04e10a6705148c02c5c4859ad75b70 13-Feb-2018 Robert Sesek <rsesek@google.com> Add Zygote.startChildZygote() to fork a new process that itself is a zygote.

This adds a new --start-child-zygote argument that instructs the main
zygote to create a new child process that will also be a zygote. The
system_server generates a random name in the abstract socket namespace
for it and the child-zygote to communicate over, and that is passed as
an argument to the new process.

A child-zygote bypasses the normal post-fork-child of the zygote process
in order to preserve itself as a zygote. This means not starting the
Binder threadpool nor launching into ActivityThread. Instead, a
child-zygote calls into its own main function. The main function runs a
ZygoteServer select loop, listening on the socket name specified by the
system_server when it was forked.

Unlike the system zygotes, a child-zygote can be killed without bringing
down the system. Killing a child-zygote will not terminate its child
processes, which will be reparented to init for reaping when they
eventually exit.

Bug: 63749735
Test: m (with multi-project commits landed)
Change-Id: I3e7ebbdba498f8fec1d84cdf927dc43a92be4b68
/frameworks/base/core/jni/fd_utils.cpp
1713d9e97aada3dc695800c18b1025238a11629d 12-Jan-2018 Jaekyun Seok <jaekyun@google.com> Support /product partition

This CL will support the followings.
- installing a RRO package for framework from /product/overlay
- installing apps from /product/app
- installing priv-apps from /product/priv-app
- installing permissions from
/product/etc/[default-permissions|permissions|sysconfig]

Bug: 64195575
Test: `mm` under frameworks/base/tests/[libs|privapp]-permissions
adb sync && adb reboot
adb shell cmd package list libraries
=> confirmed com.android.test.libs.product library
adb shell cmd package dump \
com.android.framework.permission.privapp.tests.product
=> confirmed that the package is a priv-app

And I moved vendor/overlay/framework-res__auto_generated_rro.apk into
system/product/overlay/ on sailfish, and I confirmed that the RRO was
installed properly.

Change-Id: I16175933cebd9ec665d190cc5d564b5414a91827
/frameworks/base/core/jni/fd_utils.cpp
3879ecc891bcfce91662db6d0823c96770058df5 02-Mar-2017 Narayan Kamath <narayan@google.com> fd_utils: address a couple of TODOs.

Drink the android::base koolaid.

Test: make, boots
Change-Id: Ib24b9b59fa3490e80ba78be0199eafa676225b73
/frameworks/base/core/jni/fd_utils.cpp
84b55115354f3c2c9531f251f9d126bb7a06988d 02-Mar-2017 Narayan Kamath <narayan@google.com> fd_utils: switch to libbase logging.

Test: make, boots
Change-Id: I4976508f489ca15af0484f75a9ef02ed575beff5
/frameworks/base/core/jni/fd_utils.cpp
a352d2473a8bf5d5cb711ea5ef1591604e2bef94 02-Mar-2017 Narayan Kamath <narayan@google.com> fd_utils: add missing logging for a couple of failure cases.

Also start using libbase style logging. Other log statements will
be converted in a follow up.

Test: make
Bug: 33579623
Change-Id: I34bb2ccab57e5bdd22aa35be8f8dcb68fdc4e097
/frameworks/base/core/jni/fd_utils.cpp
8dfa178efbbb155657639bd526e9a8579fce3886 05-Jan-2017 Andreas Gampe <agampe@google.com> Zygote: Add fdsToIgnore

Add file descriptors that should be ignored in the file descriptor
table check.

Use this to ignore the pipe file descriptors when starting an app
with invoke-with (wrapper).

Bug: 32607405
Test: m
Test: Device boots
Test: Apps start
Test: adb root && adb shell setprop wrap.com.android.calculator2 logwrapper && adb shell am start -S -n com.android.calculator2/.Calculator
Change-Id: I4a30dfc9382d3172cc815bd41b17a123799354f6
/frameworks/base/core/jni/fd_utils.cpp
54e387ddbe6a0462bc8e9e15c7c7b3463adfcb24 02-Dec-2016 Robert Sesek <rsesek@google.com> 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)
/frameworks/base/core/jni/fd_utils.cpp
8225b7c95185dfbfe67da105df4402430784393c 16-Dec-2016 Robert Sesek <rsesek@google.com> Split core/jni/fd_utils-inl.h into a .h/.cpp pair.

(cherry picked from commit 44afe8be8f654192dc436a9c4238a925c22b14bf)

Test: m
Test: sailfish boots

Change-Id: I9ca93f31f6c20b702b2207333a9d56f6592630b0
/frameworks/base/core/jni/fd_utils.cpp