Commit graph

38521 commits

Author SHA1 Message Date
Jiyong Park
bde587f715 Merge "Revert "libutilscallstack is private VNDK-SP""
am: 7a72d07e40

Change-Id: Ie1a7a614e797ccf65ca4d711068718a2830f1479
2018-03-15 01:52:11 +00:00
Treehugger Robot
7a72d07e40 Merge "Revert "libutilscallstack is private VNDK-SP"" 2018-03-15 01:35:13 +00:00
Suren Baghdasaryan
3a5f6f2422 Merge changes Ida58d13d,Ia9441cc5,Id840983d,I73611593
am: 0d1d773d54

Change-Id: Ia8144010577d9759ff267e84d0ad8159b6a7135e
2018-03-14 18:26:33 +00:00
Treehugger Robot
0d1d773d54 Merge changes Ida58d13d,Ia9441cc5,Id840983d,I73611593
* changes:
  lmkd: Fix lmkd-test to work with relative paths
  lmkd: Implement lmkd-test
  lmkd: Introduce liblmkd_utils for communicating with lmkd process
  lmkd: Add support for multiple lmkd client connections
2018-03-14 16:38:21 +00:00
Jiyong Park
130fea3478 Revert "libutilscallstack is private VNDK-SP"
CallStack.cpp was part of libutils, but has been separated into a new
library libutilscallstack [1] and then made invisible to vendors [2].
However, this is causing problem to the vendors who have been using
the CallStack class from libutils, because the class is no longer
available to them.

In order to support them, marking libutilscallstack as
'vendor_available: true'.

This reverts commit a32678df55.

[1] https://android-review.googlesource.com/c/platform/system/core/+/591954
[2] https://android-review.googlesource.com/c/platform/system/core/+/599754
Bug: 74600214
Test: m -j
Test: 2016/2017 pixel devices boots to the UI and Photo Editing works

Change-Id: Iaa232ed978378b566a4710e2320ee6ed04572e14
2018-03-14 16:21:00 +09:00
Mark Salyzyn
e963876bd0 Merge "logd: identical check access message data out of range"
am: 887d74b479

Change-Id: I81a8f1ae6ea5560d30c92c73cce9825505a56cbd
2018-03-13 22:04:35 +00:00
Treehugger Robot
887d74b479 Merge "logd: identical check access message data out of range" 2018-03-13 21:51:53 +00:00
Suren Baghdasaryan
b453066e20 lmkd: Fix lmkd-test to work with relative paths
This change allows lmkd-test to work correctly when it's started
using absolute as well as relative path.

Change-Id: Ida58d13d66a224119a363f59cc59289f0167d3c9
2018-03-13 12:34:18 -07:00
Mark Salyzyn
22712428b8 logd: identical check access message data out of range
While running AddressSanitizer, binary events were fed into logd
that were smaller than the binary event string header. Fix is to
check the buffer sizes before performing the memcmp operation.

Test: compile
Bug: 74574189
Change-Id: Ic01ef6fb0725258d9f39bbdca582ed648a1adc5d
2018-03-13 12:16:39 -07:00
David Srbecky
9a3421a195 Merge "Remove libunwindstack_dex"
am: ff9b1db67c

Change-Id: I2215708be1157ffb4884a9ac0711cc63fd091262
2018-03-13 11:45:47 +00:00
David Srbecky
ff9b1db67c Merge "Remove libunwindstack_dex" 2018-03-13 11:31:22 +00:00
Jaekyun Seok
8a5e67befe Merge "Export init.svc.console as an actionable property"
am: 9f5e6dbe85

Change-Id: I310e9cbbeae8594af67712b6259eeeeb6217039b
2018-03-13 01:03:08 +00:00
Treehugger Robot
9f5e6dbe85 Merge "Export init.svc.console as an actionable property" 2018-03-12 22:47:29 +00:00
Dan Willemsen
2527add41a Merge "Remove obsolete BRILLO variable"
am: dbfbf85f0c

Change-Id: I64c9e1b2dfb78af0bdddbd074398f36bdd20f327
2018-03-12 21:55:33 +00:00
Dan Willemsen
dbfbf85f0c Merge "Remove obsolete BRILLO variable" 2018-03-12 21:26:03 +00:00
David Srbecky
18121dc4d0 Remove libunwindstack_dex
Thanks to David Sehr's recent work the isolation is no longer needed.

Bug: 72216369
Test: backtrace_test
Test: libunwindstack_test
Test: testrunner.py -t 137
Change-Id: I0f430e0c18bdbc83c5584a2461ebbcc7eeb91313
2018-03-12 20:13:21 +00:00
Bowgo Tsai
9a1eed4fda Merge "Adding /odm support"
am: e25624aaea

Change-Id: I4b80c0475dd0a6d4d92425170fc87786ecd2b882
2018-03-12 19:34:32 +00:00
Treehugger Robot
e25624aaea Merge "Adding /odm support" 2018-03-12 19:00:25 +00:00
Daniel Mentz
78762588a6 Merge "ueventd: Increase uevent buffer size to 2MB"
am: 6d2a069f03

Change-Id: I12fe9e8c8796e7777bfdac8992e46e5922f6fbd2
2018-03-12 18:50:54 +00:00
Daniel Mentz
6d2a069f03 Merge "ueventd: Increase uevent buffer size to 2MB" 2018-03-12 18:36:52 +00:00
Daniel Mentz
636ed5fc72 ueventd: Increase uevent buffer size to 2MB
Let's increase the receive buffer size for the NETLINK_KOBJECT_UEVENT
socket to 2MB. Unless a large number of uevents queue up, that memory is
not allocated anyways. The receive buffer size serves only as an upper
limit for the total amount of memory consumed by all skbs queued to a
specific socket.

We experienced situations where ueventd got blocked for multiple seconds
while writing to /dev/kmsg, and the receive buffer overflowed in the
meantime.

Test: compile
Bug: 72648767
Change-Id: Ice6d7b9c5ed9c83efbad6111086ce95ac6432561
2018-03-12 11:35:02 -07:00
David Srbecky
4243f8292a Merge "Don't implicitly dereference DW_CFA_def_cfa_expression."
am: 6fe59afe53

Change-Id: I20ad5a766bc53a1a561849fa2cb7de25ca5f924d
2018-03-12 10:31:57 +00:00
David Srbecky
6fe59afe53 Merge "Don't implicitly dereference DW_CFA_def_cfa_expression." 2018-03-12 10:17:04 +00:00
Jaekyun Seok
cba467eeda Export init.svc.console as an actionable property
The state of console can be used to set up a device for debugging.

Bug: 74266614
Test: succeeded building and tested with Pixels
Change-Id: I3691fa2819594a521e05dad150550ab309a78c68
2018-03-12 10:53:32 +09:00
Dan Willemsen
fd72bde475 Remove obsolete BRILLO variable
Test: none
Change-Id: Iaf563b78819d63cb5ab7316a195a860b150d69c6
2018-03-10 15:41:37 -08:00
Yabin Cui
8e7844d69e Merge "base: Add TemporaryFile::DoNotRemove()."
am: 04bf02374c

Change-Id: I414f7b2be3bc945d8ba829f388bc0dee10219c9c
2018-03-09 19:46:15 +00:00
Suren Baghdasaryan
e708b6fc68 lmkd: Implement lmkd-test
(cherry pick from commit 5f5b30e58b)

lmkd-test executes alloc-stress native application and monitors kernel
logs for OOM kills.

Bug: 63631020

Change-Id: Ia9441cc5f8e283131f0bc839cb808a911bcdb168
Merged-In: Ia9441cc5f8e283131f0bc839cb808a911bcdb168
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2018-03-09 11:19:24 -08:00
Suren Baghdasaryan
a92de71a51 lmkd: Introduce liblmkd_utils for communicating with lmkd process
(cherry pick from commit 0f10051805)

A number of tools and tests require communication with lmkd.
In order to avoid code duplication liblmkd_utils implements
functions commonly used when interacting with lmkd process.
Isolate communication protocol details into lmkd.h

Bug: 63631020

Change-Id: Id840983d55b7db60013d52dee0c3187943811822
Merged-In: Id840983d55b7db60013d52dee0c3187943811822
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2018-03-09 11:18:53 -08:00
Suren Baghdasaryan
06f75707e1 lmkd: Add support for multiple lmkd client connections
(cherry pick from commit 3cfb2c8b10)

lmkd testing requires communication with lmkd daemon to register new
native processes. New implementation allows more than one communication
channel to lmkd. Current max number of communication channels is set to
two - one for ActivityManager and another one for a test process.

Bug: 63631020

Change-Id: I736115938a3c5ad9253bce29a17cd5349af190eb
Merged-In: I736115938a3c5ad9253bce29a17cd5349af190eb
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2018-03-09 11:18:44 -08:00
Yabin Cui
04bf02374c Merge "base: Add TemporaryFile::DoNotRemove()." 2018-03-09 19:10:47 +00:00
Bowgo Tsai
00749affc4 Adding /odm support
Treble system-as-root GSI needs to work on devices with and without /odm
partition. This change creates the following symlinks for devices without
/odm partition:

  /odm/app ->/vendor/odm/app
  /odm/bin ->/vendor/odm/bin
  /odm/etc ->/vendor/odm/etc
  /odm/firmware ->/vendor/odm/firmware
  /odm/framework ->/vendor/odm/framework
  /odm/lib -> /vendor/odm/lib
  /odm/lib64 -> /vendor/odm/lib64
  /odm/overlay -> /vendor/odm/overlay
  /odm/priv-app -> /vendor/odm/priv-app

For devices with odm partition, /odm will be used as the mount point and
those symlinks will be hidden after mount.

Bug: 70678783
Test: boot a A/B device without /odm partition, checks those symlinks exist
Test: boot a A/B device with /odm partition, checks those symlinks don't exist
Change-Id: I4d960b52e2754f461188f3ab562c751f502046ea
2018-03-09 17:34:29 +08:00
Tom Marshall
cf299d4a66 Merge "fs_mgr: Ignore invalid DT device nodes"
am: d457091c3d

Change-Id: Ib67d4a15d1076fd13f5dab572107499cd40bbe9c
2018-03-09 02:30:58 +00:00
Tom Cherry
7bf9de633f Merge changes I443e733f,If1e89a67,I0481d87a
am: c602f5ab60

Change-Id: Ib2e85a1ba02783ea95786120e2d74df403c38558
2018-03-09 02:28:08 +00:00
Treehugger Robot
d457091c3d Merge "fs_mgr: Ignore invalid DT device nodes" 2018-03-09 02:25:59 +00:00
Tom Cherry
c602f5ab60 Merge changes I443e733f,If1e89a67,I0481d87a
* changes:
  init: document previously undocumentary service options
  init: alphabetize service options in README.md
  init: alphabetize service options
2018-03-09 02:08:27 +00:00
Yabin Cui
ef58cef982 base: Add TemporaryFile::DoNotRemove().
Bug: http://b/73127105
Test: none.
Change-Id: I563c12bfb629ddd630568dda4817fb10cc9940a8
2018-03-08 17:59:36 -08:00
David Srbecky
3692f25199 Don't implicitly dereference DW_CFA_def_cfa_expression.
The specification isn't entirely clear. Follow the gdb interpretation.

Bug: 73954823
Test: libunwindstack_test
Change-Id: If72717f54eed84e442f43af19e615143a9796b68
2018-03-08 14:44:11 -08:00
Tom Cherry
cb336eef48 init: document previously undocumentary service options
These all should have been documented previously but haven't been.

Test: n/a
Change-Id: I443e733f06584bb09b68b404608c8a611bb2baa0
2018-03-08 14:41:20 -08:00
Tom Cherry
bbbfed6083 init: alphabetize service options in README.md
Test: n/a
Change-Id: If1e89a67a41279cab6acf3e38ff8eb5b77a274c1
2018-03-08 14:40:18 -08:00
Tom Cherry
e2f341e8ce init: alphabetize service options
Lists should always be alphabetized...

Test: treehugger
Change-Id: I0481d87ac62b59bbe8f328eeaaac1a84a05f20a9
2018-03-08 13:51:10 -08:00
Steven Moreland
41a294981b Merge "libutils: Remove Static.cpp and darwin hacks."
am: 929112bcd1

Change-Id: I5c5674a1bb53f744185edced05240457d2f5d08b
2018-03-08 21:40:51 +00:00
Treehugger Robot
929112bcd1 Merge "libutils: Remove Static.cpp and darwin hacks." 2018-03-08 21:16:56 +00:00
Andreas Gampe
ebcf07f05f Merge "Base: Add default tag manipulation"
am: 2b49abe447

Change-Id: I85039168969b16ecdee31635091e7bff25dd2ce5
2018-03-08 19:16:55 +00:00
Treehugger Robot
2b49abe447 Merge "Base: Add default tag manipulation" 2018-03-08 18:36:45 +00:00
Steven Moreland
0da5365ea7 Merge "init: use FQName parse"
am: 92ca281cba

Change-Id: I7ddb8343841a5e14b24b16a57ec2b8732845ffef
2018-03-07 21:59:30 +00:00
Treehugger Robot
92ca281cba Merge "init: use FQName parse" 2018-03-07 21:51:17 +00:00
Josh Gao
0360ada8f5 Merge "adbd: don't require authentication for userdebug/eng builds."
am: bf62136be4

Change-Id: If4e96ff8238ab5d2537d6c642ab59e13b49a2a6c
2018-03-07 21:35:16 +00:00
Mark Salyzyn
a97acb8f83 Merge changes I51635278,I04c0038e
am: 80e48117c5

Change-Id: Ic8c06b6408bcff5d37c5cfb344380ef7e1c3e0df
2018-03-07 21:34:43 +00:00
Treehugger Robot
bf62136be4 Merge "adbd: don't require authentication for userdebug/eng builds." 2018-03-07 21:23:57 +00:00
Treehugger Robot
80e48117c5 Merge changes I51635278,I04c0038e
* changes:
  liblog: save errno through log writing
  libion: cleanup logging
2018-03-07 21:12:46 +00:00