Commit graph

40088 commits

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

Change-Id: If7634b1db99f068e77f73d8274f1f54efabde5d0
2018-03-15 01:59:22 +00:00
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
2e9cb51fe2 Merge changes Ida58d13d,Ia9441cc5,Id840983d,I73611593 am: 0d1d773d54
am: 3a5f6f2422  -s ours

Change-Id: I76f0fa446cf53476b4778d88285eb6db13ae0e25
2018-03-14 21:12:22 +00:00
Mark Salyzyn
4a361fde6a logd: identical check access message data out of range
am: fec2e2c783

Change-Id: I76599cf099d329615a33b10d270d0dcf7ab0bcca
2018-03-14 19:19:57 +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
Mark Salyzyn
fec2e2c783 logd: identical check access message data out of range
(cherry pick from commit 22712428b8)

Discovered 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-14 07:26:20 -07: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
Chenbo Feng
57320f103e Merge "Include iface index in the netlink event" into pi-dev
am: 84379567d3

Change-Id: Ib0f3859ac6203bc08dff7a88b84e3788de39c35f
2018-03-14 02:03:35 +00:00
TreeHugger Robot
84379567d3 Merge "Include iface index in the netlink event" into pi-dev 2018-03-14 01:44:36 +00:00
Jaekyun Seok
85faa6ea73 Export init.svc.console as an actionable property
am: 3b613ccedc  -s ours

Change-Id: I344c5e047023b853f923eecf80935a6cadde92d3
2018-03-14 01:01:15 +00:00
Mark Salyzyn
7352e86d98 Merge "logd: identical check access message data out of range" am: 887d74b479
am: e963876bd0

Change-Id: I289f204fc1609e5124a0a0698ae125a721940e79
2018-03-13 22:10:13 +00: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
Jaekyun Seok
3b613ccedc 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
Merged-In: I3691fa2819594a521e05dad150550ab309a78c68
(cherry picked from commit cba467eeda)
2018-03-14 06:12:43 +09:00
Chia-I Wu
d28746a937 Merge "graphics: include graphics-sw.h from graphics.h" into pi-dev
am: 1114794e57

Change-Id: Ia221797e4d539b6a68f0ae27f2fc738843d8ef9c
2018-03-13 20:59:12 +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
Chia-I Wu
1114794e57 Merge "graphics: include graphics-sw.h from graphics.h" into pi-dev 2018-03-13 19:18:39 +00: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
Chia-I Wu
9bae89be3a graphics: include graphics-sw.h from graphics.h
This reverts commit 94f641c33 in effect.  The way for framework to
avoid including graphics-sw.h is

 - include graphics-base.h directly
 - do not include HAL headers

Bug: 70526789
Test: builds
Change-Id: I3cd0fbdce2605a59c24f83c680bede95693abfcf
2018-03-13 10:13:51 -07:00
David Srbecky
2609710044 Merge "Remove libunwindstack_dex" am: ff9b1db67c
am: 9a3421a195

Change-Id: I3474b13f4f3e93674cb5d4a260ca777b2a170101
2018-03-13 11:51:28 +00: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
Daniel Mentz
25b6550db0 Merge "ueventd: Increase uevent buffer size to 2MB" into pi-dev
am: 05749a7b5a

Change-Id: I6b51f6bec7c5421a8b4ce442732d3df58a8a5304
2018-03-13 07:54:53 +00:00
TreeHugger Robot
05749a7b5a Merge "ueventd: Increase uevent buffer size to 2MB" into pi-dev 2018-03-13 07:45:19 +00:00
Bowgo Tsai
c8130374bc Merge "Adding /odm support" into pi-dev
am: ad2f24c97e

Change-Id: I99889001a8a83454c13b340d40ff6190ab19d657
2018-03-13 06:57:38 +00:00
TreeHugger Robot
ad2f24c97e Merge "Adding /odm support" into pi-dev 2018-03-13 06:50:11 +00:00
Daniel Mentz
bd93ad50ac 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.

Bug: 72648767
Change-Id: Ice6d7b9c5ed9c83efbad6111086ce95ac6432561
2018-03-13 05:35:44 +00:00
Christopher Ferris
07ec11f666 Merge "Don't implicitly dereference DW_CFA_def_cfa_expression." into pi-dev
am: 8e216a0bb4

Change-Id: I6519d3adb6dca77a7265334e6f1cd4c4718c3a4e
2018-03-13 01:35:46 +00:00
Jaekyun Seok
69f136aecc Merge "Export init.svc.console as an actionable property" am: 9f5e6dbe85
am: 8a5e67befe

Change-Id: Id63096e0f8472cf2b6519a026d65ab668d2fd479
2018-03-13 01:25:15 +00:00
Christopher Ferris
8e216a0bb4 Merge "Don't implicitly dereference DW_CFA_def_cfa_expression." into pi-dev 2018-03-13 01:18:45 +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
Chia-I Wu
50d73b25a1 Merge "graphics: move some flex pixel formats to graphcis-sw.h" into pi-dev
am: ecbb3324e0

Change-Id: I9c2c2982036620c1f0898fcaf2c33cf11b7d8fa0
2018-03-13 00:56:57 +00:00
Bowgo Tsai
ca8b2c6995 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
(cherry picked from commit 00749affc4)
2018-03-13 08:41:50 +08:00
Treehugger Robot
9f5e6dbe85 Merge "Export init.svc.console as an actionable property" 2018-03-12 22:47:29 +00:00
Chia-I Wu
ecbb3324e0 Merge "graphics: move some flex pixel formats to graphcis-sw.h" into pi-dev 2018-03-12 22:41:08 +00:00
Dan Willemsen
42f9dd4997 Merge "Remove obsolete BRILLO variable" am: dbfbf85f0c
am: 2527add41a

Change-Id: Idc0c29c1accca9738755844c866859f440f7c94c
2018-03-12 22:05:38 +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
c4772ae94c 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
(cherry picked from commit 3692f25199)
2018-03-12 14:08:49 -07: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
25994e6a9c Merge "Adding /odm support" am: e25624aaea
am: 9a1eed4fda

Change-Id: I3b0788aa5ef55537169fbda24acc50daadcc22be
2018-03-12 19:47:47 +00:00
Bowgo Tsai
9a1eed4fda Merge "Adding /odm support"
am: e25624aaea

Change-Id: I4b80c0475dd0a6d4d92425170fc87786ecd2b882
2018-03-12 19:34:32 +00:00
Daniel Mentz
3cf2b867b0 Merge "ueventd: Increase uevent buffer size to 2MB" am: 6d2a069f03
am: 78762588a6

Change-Id: If13861689b5794fe521d25670ab928e87ba51e00
2018-03-12 19:05:54 +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
46a0e0f83f Merge "Don't implicitly dereference DW_CFA_def_cfa_expression." am: 6fe59afe53
am: 4243f8292a

Change-Id: Ic3fdd09b1c707b67968d0c7189cc5cace5f4e8c4
2018-03-12 10:40:34 +00:00