Commit Graph

18742 Commits

Author SHA1 Message Date
Mark Salyzyn cb3e6ef154 Merge "liblog: Build Problem, BOOLEAN" 2015-12-09 00:04:53 +00:00
Mark Salyzyn b004a7fe6f liblog: Build Problem, BOOLEAN
Checks with BOOLEAN_FALSE and BOOLEAN_TRUE should be made
against an unsigned char.

Bug: 26029733
Change-Id: I405f45a4d6ddae1b060b0e8da9c1585298abe8bd
2015-12-08 15:24:44 -08:00
Mark Salyzyn 1631d36d95 Merge "liblog: Add __android_log_security()" 2015-12-08 21:55:56 +00:00
Steve Fung ec5b7d4b6c Merge "crash_reporter: Fix unit tests" 2015-12-08 21:46:53 +00:00
Tom Cherry 93f82d0897 Merge "Remove property_area_initialized" 2015-12-08 21:03:05 +00:00
Mark Salyzyn ffbd86ff25 liblog: Add __android_log_security()
Return non-zero if ro.device_owner is set and not false
and persist.logd.security is true.

Bug: 26029733
Change-Id: Ie82ae11ae35e9c79017b6e873fefb39d79a1d4fe
2015-12-08 11:28:27 -08:00
Elliott Hughes 4ab13d0256 Merge "Track rename of base/ to android-base/." 2015-12-08 18:45:15 +00:00
Elliott Hughes 8b0471462e Track rename of base/ to android-base/.
Change-Id: I974d67b6568e913bfb7700d952be55b4073388ee
2015-12-08 10:38:59 -08:00
Yabin Cui bfdc099650 Merge "Fix libbacktrace host build." 2015-12-08 18:26:18 +00:00
David Pursell e37325defc Merge "adb: add help text for USB permission errors."
am: 663e949b2b

* commit '663e949b2bbda5dcc2b92e4d1936555019cdd66b':
  adb: add help text for USB permission errors.
2015-12-08 16:16:16 +00:00
David Pursell 663e949b2b Merge "adb: add help text for USB permission errors." 2015-12-08 16:12:22 +00:00
Elliott Hughes a77731e14d Merge "Rename base/ to android-base/."
am: 5986d9f263

* commit '5986d9f263d08ef8876656098cbe95b59d310f21':
  Rename base/ to android-base/.
2015-12-08 16:06:06 +00:00
Elliott Hughes 5986d9f263 Merge "Rename base/ to android-base/." 2015-12-08 16:02:53 +00:00
Erik Kline f6df8fce6d Merge "Listen on dualstack sockets."
am: 1f7bcf3e93

* commit '1f7bcf3e93349bbb067f12296c0e17cf64d30e89':
  Listen on dualstack sockets.
2015-12-07 22:31:40 -08:00
Erik Kline 1f7bcf3e93 Merge "Listen on dualstack sockets." 2015-12-08 06:28:29 +00:00
Nick Kralevich 65ab87dd9b Merge "adb: Make HOME=/data/local/tmp"
am: 5358093225

* commit '53580932250c9f3ba4a052c9fe31aa1de7bf411d':
  adb: Make HOME=/data/local/tmp
2015-12-08 05:00:16 +00:00
Nick Kralevich 5358093225 Merge "adb: Make HOME=/data/local/tmp" 2015-12-08 04:56:05 +00:00
Nick Kralevich 070288241d Merge "init.rc: restorecon_recursive /sys/kernel/debug"
am: 6d85c06aa1

* commit '6d85c06aa1600e905cf3e0b093e939fa3866ee59':
  init.rc: restorecon_recursive /sys/kernel/debug
2015-12-08 04:48:06 +00:00
Nick Kralevich 6d85c06aa1 Merge "init.rc: restorecon_recursive /sys/kernel/debug" 2015-12-08 04:44:08 +00:00
Yabin Cui 6405bb3aee Fix libbacktrace host build.
On host build, libbacktrace relies on libcutils to provide gettid()
function.

Change-Id: Iad83384ea699ca024b71b73cef26755287c9e6fe
2015-12-07 20:09:24 -08:00
Tom Cherry 1563d6546c Remove property_area_initialized
This is deadcode as property_init() will only ever be called once and
the only remaining caller of properties_initialized() is
Service::NotifyStateChange() which can only be called after properties
have been initialized.

Change-Id: Ie071af84fcdbead72d259890fc8fb8db624282e7
2015-12-07 17:53:39 -08:00
Erik Kline 4c1b3840f0 Merge "Switch from using sockaddr to sockaddr_storage."
am: 46b0b1c694

* commit '46b0b1c694bd873bd8130440d9ec1367dbe6da6e':
  Switch from using sockaddr to sockaddr_storage.
2015-12-07 17:45:17 -08:00
Erik Kline 46b0b1c694 Merge "Switch from using sockaddr to sockaddr_storage." 2015-12-08 01:41:38 +00:00
Tom Cherry c64de373c1 Merge "Remove ANDROID_PROPERTY_WORKSPACE"
am: c68998441c

* commit 'c68998441cdf32159912704fdd264b4750390012':
  Remove ANDROID_PROPERTY_WORKSPACE
2015-12-08 01:33:10 +00:00
Tom Cherry c68998441c Merge "Remove ANDROID_PROPERTY_WORKSPACE" 2015-12-08 01:29:53 +00:00
Nick Kralevich 715c4dc3f9 init.rc: restorecon_recursive /sys/kernel/debug
If /sys/kernel/debug is present, make sure it has all the appropriate
SELinux labels.

Labeling of /sys/kernel/debug depends on kernel support
added in commit https://android-review.googlesource.com/122130

This patch depends on an external/sepolicy change with the
same Change-Id as this patch.

Change-Id: Id1d6a9ad6d0759d6de839458890e8cb24685db6d
2015-12-07 17:00:40 -08:00
Nick Kralevich 173eb396c7 adb: Make HOME=/data/local/tmp
Make the home directory for adb shell be /data/local/tmp and
automatically change into that directory.

Change-Id: Ib5cc6e1ecdd31a37e986cf03836f7589ebd40868
2015-12-07 16:56:12 -08:00
Mark Salyzyn e13efa6112 Merge "liblog: print message payload of zero length"
am: 50413c7626

* commit '50413c7626c7598ccb062d7d1156e5cfa1b2cb8e':
  liblog: print message payload of zero length
2015-12-08 00:31:59 +00:00
Mark Salyzyn 50413c7626 Merge "liblog: print message payload of zero length" 2015-12-08 00:27:30 +00:00
Mark Salyzyn d7bcf40ee6 liblog: print message payload of zero length
logcat will crash if the log message payload is of zero length. Side
effect of possible log messages from LogKlog in eng and userdebug
builds, or lower level logging calls.

NB: The referenced bug cited an example of this native crash, this
    does not fix the problem cited in the bug about the
    com.android.music shutdown.

Bug: 25774695
Change-Id: I5c7a6ad8db640ba9bc8d34fab04ba7cc2a9a426a
2015-12-07 16:14:40 -08:00
Dimitry Ivanov 17f119eade Merge "Native loader as a separate library"
am: beceb6ef53

* commit 'beceb6ef53b736879a962992c43fa318e3ea2999':
  Native loader as a separate library
2015-12-07 23:58:01 +00:00
Dimitry Ivanov beceb6ef53 Merge "Native loader as a separate library" 2015-12-07 23:45:50 +00:00
Mark Salyzyn 154e1c15ae Merge changes Ib441cecf,Ieb1bbe3d,I3e63e430,I531b4317,I8dd60545, ...
am: d1379a8aed

* commit 'd1379a8aedb7b80edac8849d2e64ceffa409632e':
  logcat: Add --wrap timeout
  logcat: Add low hanging fruit long arguments
  logcat: Add long arguments to logcat, support for pid filter
  liblog: Support for ANDROID_LOG_WRAP mode flag on reader
  logd: test wakeup on wrap timeout
  logd: wakeup on wrap or timeout
2015-12-07 23:21:13 +00:00
Mark Salyzyn 660d17b25c Merge "logd: test: leniency towards background cgroup"
am: 3ea02e8eca

* commit '3ea02e8eca9fc0f2122d73a1d117292514256fcf':
  logd: test: leniency towards background cgroup
2015-12-07 23:19:10 +00:00
Mark Salyzyn b62b7783ac Merge "logd: test: statistics report chatty effective percentage"
am: 2e2d2edc59

* commit '2e2d2edc59244e56f93f1e7746ebc5e1ef5ea775':
  logd: test: statistics report chatty effective percentage
2015-12-07 23:16:53 +00:00
Mark Salyzyn 28a96aeedc Merge "liblog: test: liblog.android_logger_get_ failure"
am: 8ca9a775f7

* commit '8ca9a775f7d8a5db68c7b42ec42aad969bd6d5e3':
  liblog: test: liblog.android_logger_get_ failure
2015-12-07 23:16:48 +00:00
Mark Salyzyn d2fb3e10ee Merge "logd: liblog: logcat: switch to android_log_clockid() (2)"
am: 69504d646d

* commit '69504d646d0cfdad28307b5ca7a8b98552e5cb06':
  logd: liblog: logcat: switch to android_log_clockid() (2)
2015-12-07 23:16:33 +00:00
Mark Salyzyn a64dd2d0b4 Merge "Revert "logd: liblog: logcat: switch to android_log_clockid()""
am: b566435b02

* commit 'b566435b02d90663b5a26ba795bfb2f0102e8833':
  Revert "logd: liblog: logcat: switch to android_log_clockid()"
2015-12-07 23:14:42 +00:00
Mark Salyzyn 8acc9bc1cb Merge "logd: liblog: logcat: switch to android_log_clockid()"
am: 9eca0e775b

* commit '9eca0e775b8462788e988218c8582bf341dfdfeb':
  logd: liblog: logcat: switch to android_log_clockid()
2015-12-07 23:14:23 +00:00
Elliott Hughes e2a9563be1 Merge "Track rename of base/ to android-base/."
am: 912ed3d8ca

* commit '912ed3d8ca78d840a1d19543a205d787fbfbf235':
  Track rename of base/ to android-base/.
2015-12-07 23:14:17 +00:00
Elliott Hughes f2584be414 Rename base/ to android-base/.
Bug: http://b/26023797
Change-Id: Ie6c63bf86bed05faab87d290de6f34d9af3532a8
2015-12-07 14:31:53 -08:00
Mark Salyzyn d1379a8aed Merge changes Ib441cecf,Ieb1bbe3d,I3e63e430,I531b4317,I8dd60545, ...
* changes:
  logcat: Add --wrap timeout
  logcat: Add low hanging fruit long arguments
  logcat: Add long arguments to logcat, support for pid filter
  liblog: Support for ANDROID_LOG_WRAP mode flag on reader
  logd: test wakeup on wrap timeout
  logd: wakeup on wrap or timeout
2015-12-07 22:27:13 +00:00
Mark Salyzyn 41ba25f864 logcat: Add --wrap timeout
Always ANDROID_LOG_WRAP_DEFAULT_TIMEOUT seconds (2 hours).
--wrap takes argument, the argument is currently ignored.

Future: Add new API that allows setting of wrap timeout.

Bug: 25929746
Bug: 21615139
Change-Id: Ib441cecfb6e4264c18adb70c705314440ba85e65
2015-12-07 14:24:02 -08:00
Mark Salyzyn f8bff87c65 logcat: Add low hanging fruit long arguments
Add long arguments file, rotate_kbytes, rotate_count, format,
dividers, clear, buffer_size, last, buffer, binary, statistics
and prune.

Bug: 21615139
Change-Id: Ieb1bbe3d47e6711a1e91c74522630d39f8981621
2015-12-07 14:24:02 -08:00
Kristian Monsen 562e513d4b logcat: Add long arguments to logcat, support for pid filter
Bug: 21615139
Change-Id: I3e63e43067f8089c18658e4100e901fb2a9630ae
2015-12-07 14:24:02 -08:00
Mark Salyzyn f8e546e609 liblog: Support for ANDROID_LOG_WRAP mode flag on reader
If ANDROID_LOG_WRAP is specified, add timeout=3600 to the reader
request. logd will comply by going to sleep with the socket open.
If the start time is about to wrap or get pruned in the specified log
buffers, then wakeup and dump the logs; or wakeup on timeout,
whichever comes first.

Bug: 25929746
Change-Id: I531b4317a20abcf3ba87d78c68fa2f268a4488ab
2015-12-07 14:24:02 -08:00
Mark Salyzyn fc9f5b8af4 logd: test wakeup on wrap timeout
Change-Id: I8dd605452f1fef7706a627eedc251e39bb2e34cc
2015-12-07 14:24:02 -08:00
Mark Salyzyn b75cce0389 logd: wakeup on wrap or timeout
If a timeout is specified for the reader, then go to sleep
with the socket open. If the start time is about to get
pruned in the specified log buffers, then wakeup and dump
the logs; or wakeup on timeout, whichever comes first.

Bug: 25929746
Change-Id: I7d2421c2c5083b33747b84f74d9a560d3ba645df
2015-12-07 14:24:02 -08:00
Steve Fung 8ed101bab5 crash_reporter: Fix unit tests
- Removed obsolete unit tests.
- Fix remaining unit tests for Android.

Change-Id: I1665447d375178d2bcf941fec3585c8f96cd2bac
2015-12-07 14:21:00 -08:00
Mark Salyzyn 3ea02e8eca Merge "logd: test: leniency towards background cgroup" 2015-12-07 20:59:34 +00:00