summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fastboot: use cutils socket functions.David Pursell2016-01-2111-432/+402
| | | | | | | | | | | | | | | Now that cutils has cross-platform socket functionality, we can restructure fastboot to remove platform-dependent networking code. This CL adds socket_set_receive_timeout() to libcutils and combines the fastboot socket code into a single implementation. It also adds TCP functionality to fastboot sockets, but nothing uses it yet except for the unit tests. A future CL will add the TCP protocol which will use this TCP socket implementation. Bug: http://b/26558551 Change-Id: If613fb348f9332b31fa2c88d67fb1e839923768a
* Merge "libcutils: share Windows networking code."David Pursell2016-01-2117-145/+399
|\
| * libcutils: share Windows networking code.David Pursell2016-01-1517-145/+399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL moves Windows networking code from fastboot to libcutils so that it can be shared with other host programs such as adb. Not all libcutils networking functions have been implemented for Windows, just those necessary for fastboot. In the next CL I will do the same for adb, adding any additional required functions. Unit tests have also been added to test the functions using a loopback connection. Bug: http://b/26236380. Change-Id: Ibc51a67030fe69a04c23512eefa9d19b055c7c12
* | Merge "crash_reporter: Add unit tests to debug builds"Steve Fung2016-01-211-0/+3
|\ \
| * | crash_reporter: Add unit tests to debug buildsSteve Fung2016-01-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add crash_reporter_tests to debug builds, so that they can be run by test_droid. Bug: 26663796 Change-Id: Iddaa14ab55474875a45b0e8482bac310fbe8cff2 Test: /data/nativetest/crash_reporter_tests exists on eng build
* | | Merge "crash_reporter: Fix unit tests to use ScopedTempDir"Steve Fung2016-01-213-55/+66
|\ \ \
| * | | crash_reporter: Fix unit tests to use ScopedTempDirSteve Fung2016-01-203-55/+66
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the unit tests manually create their own temp directories from a relative path. This creates a temp folder in the folder that the test is run from. This is a problem when using test_droid or a non-interactive ADB shell command, since the root directory is not writable. Instead use a ScopedTempDir to handle temporary folders. Bug: 26671657 Change-Id: Iaf71d345565dcb4393e80426784a864f7f8b5929 Test: Unit tests pass when running brillo_WhitelistedGtests
* | | Merge "Allow paths of .rc files to be specified at mount_all"Hung-ying Tyan2016-01-212-15/+33
|\ \ \
| * | | Allow paths of .rc files to be specified at mount_allHung-ying Tyan2016-01-212-15/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In current implementation, the mount_all command imports all .rc files under /{system,vendor,odm}/etc/init/ after mouting filesystems is complete. There's a need from ODMs to import different .rc files under different boot modes (e.g., factory mode). Without this support, they will have to fiddle around the init implementation. This commit makes mount_all import the .rc files/directories specified as additional arguments. If no path is given, the original ones are applied the same way as the current implementation. BUG: 26549689 Change-Id: Ie67ce13dde4c440ff8bf534826bc392c882a433f
* | | | Merge "libmetrics: Update BASE_VERS to 369476"Alex Vakulenko2016-01-211-1/+1
|\ \ \ \
| * | | | libmetrics: Update BASE_VERS to 369476Alex Vakulenko2016-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed to uprev everything on ChromeOS side Change-Id: I070e374dd4abe92884b88231ba60c82b69c72806
* | | | | Merge "liblog: fix android_log_printLogLine empty event string"Mark Salyzyn2016-01-202-7/+129
|\ \ \ \ \
| * | | | | liblog: fix android_log_printLogLine empty event stringMark Salyzyn2016-01-202-7/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow _one_ empty line to get through before evaluating further. Add __android_log_bswrite testing for content and contentless cases; checking for propagation and for expected printing. As for printing which is fixed here, security variants cover the same code paths as the events. Bug: 26646213 Change-Id: I484718aa604e0a00afde4c34a00e87468ea93aa5
* | | | | | Merge "adbd: use pty to determine whether a session is interactive."Josh Gao2016-01-201-16/+1
|\ \ \ \ \ \
| * | | | | | adbd: use pty to determine whether a session is interactive.Josh Gao2016-01-201-16/+1
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/26236990 Change-Id: I8baa4009a2fbe9a4c93f6ef5350ce61161b7237d
* | | | | | Merge "bootstat: Followup cleanups from the initial bootstat checkin."James Hawkins2016-01-202-3/+4
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | bootstat: Followup cleanups from the initial bootstat checkin.James Hawkins2016-01-202-3/+4
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Clarify the README.md that the logs data may be utilized by anyone. * Fix a whitespace issue. Bug: 21724738 Change-Id: Id472485f505afb14588ccd645844a3f4a728abc2
* | | | | Merge "crash_reporter/metricsd: Update libchrome APIs to r369476"Alex Vakulenko2016-01-208-26/+28
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | crash_reporter/metricsd: Update libchrome APIs to r369476Alex Vakulenko2016-01-208-26/+28
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | The new libchrome has been ported from Chromium and some APIs have changed. Make necessary changes at call sites. Change-Id: I9e45975cdef43913270b82e3fca2c027e614a464
* | | | Merge "adbd: don't leave zombies when subprocess creation fails."Josh Gao2016-01-202-2/+4
|\ \ \ \ | |_|/ / |/| | |
| * | | adbd: don't leave zombies when subprocess creation fails.Josh Gao2016-01-202-2/+4
| | | | | | | | | | | | | | | | | | | | Bug: http://b/26660675 Change-Id: I8e65d51af73f409c30be47575f76bc6b0f227c54
* | | | Merge "nativebrige: log code_cache access errors to stderr as well"Calin Juravle2016-01-201-0/+5
|\ \ \ \
| * | | | nativebrige: log code_cache access errors to stderr as wellCalin Juravle2016-01-121-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 115-native-bridge is a flaky tests. This will help tracing the flakiness cause. Change-Id: I7b8000738cd97b9cdb1055a0480ff9acbd85cae6
* | | | | Merge "metricsd: Add tests to the default debug build."Bertrand Simonnet2016-01-201-0/+6
|\ \ \ \ \
| * | | | | metricsd: Add tests to the default debug build.Bertrand SIMONNET2016-01-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow the tests to be run by the continuous builder. Bug: 26571398 Change-Id: I7eae2761603e83e3d1f003cb3b06582abc4ed24f Test: Build an eng build. The tests are installed.
* | | | | | Merge "bootstat: Fix the base includes to be AOSP-friendly."Elliott Hughes2016-01-207-9/+9
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | bootstat: Fix the base includes to be AOSP-friendly.James Hawkins2016-01-207-9/+9
| | |/ / / | |/| | | | | | | | | | | | | | | | | | Change-Id: I625cc55b41f5258addf3bb74bcef42063c565465 Bug: 21724738
* | | | | Merge "metricsd: Persist metrics on shutdown."Bertrand Simonnet2016-01-201-0/+1
|\ \ \ \ \
| * | | | | metricsd: Persist metrics on shutdown.Bertrand SIMONNET2016-01-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When metricsd receives a SIGTERM signal (on system shutdown for example), save the metrics to disk before exiting. Bug: 26184202 Test: Start metricsd. Log a metric sample. Stop metricsd. The metric is saved to disk. Change-Id: Ib224efa8837130393fac5d06fa80d320263cfc84
* | | | | | Merge "logd: prune maintain per-id watermark (part deux)"Mark Salyzyn2016-01-201-6/+14
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | logd: prune maintain per-id watermark (part deux)Mark Salyzyn2016-01-191-6/+14
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | iterator corruption as we allow mLast to slip through the FIFO Bug: 23685592 Bug: 26646087 Change-Id: Ifcbaecf390ee47b195c3d823d080c66c15db4530
* | | | | Merge "system/core: Add initial implementation of the bootstat command."James Hawkins2016-01-1910-0/+974
|\ \ \ \ \
| * | | | | system/core: Add initial implementation of the bootstat command.James Hawkins2016-01-1910-0/+974
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bootstat command enables the measurement and logging of boot time metrics for GMS devices. BUG:21724738 Change-Id: I331456dd38a60fb4ef24a4d5320909dbad30db66
* | | | | | Merge "fastboot: show progress when sending sparse images."Josh Gao2016-01-193-7/+19
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | fastboot: show progress when sending sparse images.Josh Gao2016-01-193-7/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/25443220 Change-Id: Ica0c88aea2a0661f39ff1415ebba464c037651da
* | | | | | Merge "fastboot: add .clang-format."Josh Gao2016-01-191-0/+12
|\| | | | |
| * | | | | fastboot: add .clang-format.Josh Gao2016-01-191-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iacad00adfa3948118543d680651814b3c8c42858
* | | | | | Merge "Allow setting an arbitrary alignment for an entry."Christopher Ferris2016-01-193-6/+172
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Allow setting an arbitrary alignment for an entry.Christopher Ferris2016-01-193-6/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current code only allows the creation of an entry that is 32 bit aligned. Bug: 25446938 Change-Id: I6c924df12ef2bc067b3de7789257af7e3db7e904
* | | | | | Merge "crash_reporter: Add README.md"Steve Fung2016-01-191-0/+61
|\ \ \ \ \ \
| * | | | | | crash_reporter: Add README.mdSteve Fung2016-01-151-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a README describing the basic functionality and configuration of crash_reporter. Also include some development tips based on feedback from users. Bug: 26387853 Change-Id: I42655841171fcfb0a8efdf587e596e6930357e4e
* | | | | | | Merge "Add logd security buffer tag types and string write API."Rubin Xu2016-01-192-0/+23
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | |
| * | | | | | Add logd security buffer tag types and string write API.Rubin Xu2016-01-192-0/+23
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | Bug: 22860162 Change-Id: I1cceed3462eaebdd8208abf101b127f27f0023a7
* | | | | | Merge "metricsd: Persist the metrics to disk periodically."Bertrand Simonnet2016-01-197-40/+170
|\ \ \ \ \ \
| * | | | | | metricsd: Persist the metrics to disk periodically.Bertrand SIMONNET2016-01-127-40/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Every now and then (5 minutes by default), the uploader will persist the current metrics to disk to avoid losing them in case we exit unexpectedly (reboot or crash). When starting up, metricsd will load the previously saved log and resume the metrics collection from there. Bug: 25670584 Test: Unit tests. Test: manual: restart metricsd. The saved log is detected and parsed correctly. Test: manual: Send a sample to metricsd, send SIGTERM to metricsd, the log is saved to disk, metricsd restarts and picks up the log where it left. Change-Id: I4cefc62c7ea1fa51333d84d8a7ba0a2e9c7fd58f
* | | | | | | Merge "metricsd: Cleanup on TERM signal."Bertrand Simonnet2016-01-199-48/+141
|\| | | | | | | |_|_|/ / / |/| | | | |
| * | | | | metricsd: Cleanup on TERM signal.Bertrand SIMONNET2016-01-129-48/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | metricsd should shutdown cleanly when receiving a TERM signal: * stop the binder watcher. * wait for the thread to quit. * Exit cleanly. Note: This is not directly used as we don't send SIGTERM on shutdown or when stopping services yet. Bug: 25670584 Change-Id: I878d1e67474c72d24790f3540470e37a23112a95
* | | | | | Merge "logging: avoid unnecessary printfs"Nick Kralevich2016-01-192-0/+3
|\ \ \ \ \ \
| * | | | | | logging: avoid unnecessary printfsNick Kralevich2016-01-162-0/+3
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't spend CPU cycles formatting a bunch of strings if we're just going to throw them away later. Maybe make booting faster. Change-Id: I4d8eb99fb3fa873ca91cf776933d0ad01988abf5
* | | | | | Merge "Remove unused cruft from <log/log.h>."Elliott Hughes2016-01-191-8/+0
|\ \ \ \ \ \ | |/ / / / / |/| | | | |