Commit graph

40109 commits

Author SHA1 Message Date
Bowgo Tsai
dc377cef1c Merge "Support /odm partition" am: 97debc7055
am: 6b31653f96

Change-Id: I75b3ffadcd2cec233438c183258c2ad5782b61d4
2018-03-16 04:13:33 +00:00
Bowgo Tsai
6b31653f96 Merge "Support /odm partition"
am: 97debc7055

Change-Id: I4af59f5479a8d452dcbbb157334c416f18db5469
2018-03-16 04:06:25 +00:00
Treehugger Robot
97debc7055 Merge "Support /odm partition" 2018-03-16 03:51:28 +00:00
Christopher Ferris
aaa4554ad4 Merge "Handle ARM thumb function symbols." am: a411fc65d1
am: 5e67b426d8

Change-Id: I40a936c78fef6a79ccaf084dd71e42ad75095a26
2018-03-16 02:42:51 +00:00
Christopher Ferris
5e67b426d8 Merge "Handle ARM thumb function symbols."
am: a411fc65d1

Change-Id: Iff3c8ff23fa4aec5f3e5721bf0339d3c94c1c328
2018-03-16 02:35:20 +00:00
Christopher Ferris
a411fc65d1 Merge "Handle ARM thumb function symbols." 2018-03-16 02:14:10 +00:00
Bowgo Tsai
9c076a7889 Merge "adb: checks device state when using adb disable-verity for AVB" am: d5fc6bdd36
am: 8c91e2bfbb

Change-Id: I37f2a4134ba6cae182093856a7d669464c457712
2018-03-16 02:12:25 +00:00
Bowgo Tsai
8c91e2bfbb Merge "adb: checks device state when using adb disable-verity for AVB"
am: d5fc6bdd36

Change-Id: I030049c206492ebc980a4080804f8d3e290b6487
2018-03-16 01:56:43 +00:00
Treehugger Robot
d5fc6bdd36 Merge "adb: checks device state when using adb disable-verity for AVB" 2018-03-16 01:33:51 +00:00
Christopher Ferris
704ec9adba Handle ARM thumb function symbols.
ARM thumb functions will have the zero bit set to one, which can cause
function name lookups to fail.

Add an ARM special GetFunctionName that handles this condition.

Fix a couple of the function offsets in unit tests.

Bug: 74844137

Test: Ran unit tests.
Test: Ran debuggerd -b on processes on a bullhead device.
Change-Id: Ibd407db34eaaa641f91fdb4f589c44a0dcc0216a
2018-03-15 15:14:18 -07:00
Tom Cherry
d8cd76d26b Merge "init: add timers around sync() during shutdown" am: 39273df651
am: 573352ff05

Change-Id: Ie0584bcbc3d8a5a251945c30edf41735324dd431
2018-03-15 20:30:54 +00:00
Tom Cherry
573352ff05 Merge "init: add timers around sync() during shutdown"
am: 39273df651

Change-Id: Iad1e45761ebbc0a8ccd269734807bbae8ff36209
2018-03-15 20:23:16 +00:00
Tom Cherry
39273df651 Merge "init: add timers around sync() during shutdown" 2018-03-15 20:04:17 +00:00
Tom Cherry
1f9d5406b3 init: add timers around sync() during shutdown
It seems that these sync() calls may take a long time in some
occasions, so we add these logs to check.

Bug: 74817735
Test: tree hugger
Change-Id: Id3635f6c7a6618b20c7caf93b05e50cc50ef99de
2018-03-15 10:24:00 -07:00
Bowgo Tsai
8cc9c3835a adb: checks device state when using adb disable-verity for AVB
adb disable-verity will toggle a flag in /vbmeta and introduce AVB
verification error on next boot. If the device is LOCKED, it will make
the device unbootable because verification error isn't allowed when the
device is locked.

Also indicating 'adb root' when failed to get verity state.

Bug: 70969453
Test: adb disable-verity should pop-up warning if the device is locked.

Change-Id: I1ed705e34334ea2231c96b16ddb8d225067af2f0
2018-03-15 18:34:42 +08:00
Jiyong Park
5fbb0b39c9 Merge "Revert "libutilscallstack is private VNDK-SP"" into pi-dev
am: 5f96d51507  -s ours

Change-Id: I9f0147deedb7887d01cccfd6535840c45835e47d
2018-03-15 04:36:42 +00:00
Jerry Zhang
1fe8aa418b adb: Remove usages of ENDPOINT_ALLOC
am: 9a1be3ad0e

Change-Id: I2fc82dd02bc5d6f04a24dd299d0dfd99fd1a936e
2018-03-15 04:34:28 +00:00
TreeHugger Robot
5f96d51507 Merge "Revert "libutilscallstack is private VNDK-SP"" into pi-dev 2018-03-15 04:17:05 +00:00
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
Jiyong Park
78df555af3 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

Merged-In: Iaa232ed978378b566a4710e2320ee6ed04572e14
Change-Id: Iaa232ed978378b566a4710e2320ee6ed04572e14
(cherry picked from commit 130fea3478)
2018-03-15 10:46:30 +09:00
Treehugger Robot
7a72d07e40 Merge "Revert "libutilscallstack is private VNDK-SP"" 2018-03-15 01:35:13 +00:00
Jerry Zhang
9a1be3ad0e adb: Remove usages of ENDPOINT_ALLOC
All devices that previously used ENDPOINT_ALLOC
are on the new async io routines. None of the devices
using aio_compat have ENDPOINT_ALLOC so remove the
code to stop logging failures.

Fixes: 74213465
Test: adb works
Change-Id: I0c903eb76b006b6bcce48cec24f5353fa47cc128
2018-03-14 22:11:59 +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
Bowgo Tsai
39476ffd8a Support /odm partition
Bug: 64195575
Test: boot a device
Change-Id: I52c0da32aef80c060f6efa47ddf62577fb543ad8
2018-03-14 16:19:03 +08: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