summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorNandana Dutt <nandana@google.com>2018-12-12 17:26:57 +0000
committerNarayan Kamath <narayan@google.com>2019-01-10 17:33:58 +0000
commitd11850cd44dcf1114f53bd0e12569a584d557039 (patch)
treecd7c886af438f196a7554aefb95a17342419a402 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent2d917da0526d60a41bc03a5f941b269b917e453a (diff)
Add a privileged API for capturing and consuming bugreports
The API is mostly implemented; except for hooking up the listener and handling an already running bugreport. BugreportManager is the handle to the new API exposed to apps. Generating bugreports requires root privileges. To limit the footprint of the root access, the actual bugreport generation in Dumpstate binary, is accessed as a oneshot service and dies after it finishes running. System server accesses Dumpstate via a binder interface since it does not have root privileges. Starting a oneshot service is done via setting a system property, which needs to be done from system server. BugreportManagerService is the new system server service that does this. BugreportManager calls into BugreportManagerService via a binder interface, since the former is in the app's process. Both app to system server as well as system server to native service calls are via implementations of IDumpstate binder interface. Bug: 111441001 Test: builds. Flashed & verified it boots. Test: wrote a test client (not included) and verified invoking startBugreport works. Change-Id: I4abeb753388c055c36ae0dd916af1ec8d40b7bf0
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions