summaryrefslogtreecommitdiff
path: root/fastboot/device/variables.cpp
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2018-09-04 06:29:14 +0200
committerMartijn Coenen <maco@google.com>2018-09-07 15:47:21 +0200
commit62e985a9540e421360532fce73c3e2c543b53255 (patch)
tree99936f5f16cb0483cbda874b66ea91bb9fa12655 /fastboot/device/variables.cpp
parent07fd6d029b65908dc21e0bc51431d93cae4d5033 (diff)
init: Allow restricted use of binder.
Allow init to use binder, but in a restricted way: - No binder threadpool - Other processes can't initiate calls to init - No death recipients This change adds libbinder/libutils and calls into ProcessState, which also calls into the kernel driver and sets up state there. No other binder calls are made, so that we can let this soak for a while to see if there any bad side effects of just loading these libraries and initializing the kernel driver. This introduces about 120kB of additional memory usage (PSS), mostly due to pulling in libbinder and libutils and the private state they have. We also don't include these libraries in the recovery version of init, because space on the recovery partition is limited. Bug: 112684055 Test: device still boots, /d/binder/proc/1 shows init state Change-Id: I972b1eebdb16337f52e20d1f614e3a0dce0f06d2
Diffstat (limited to 'fastboot/device/variables.cpp')
0 files changed, 0 insertions, 0 deletions