Commit graph

42279 commits

Author SHA1 Message Date
Tao Bao
47c07649af Merge "fastboot: fastbootd uses libadbd.so."
am: 075c351af2

Change-Id: Ide4d00255ea38dc3b79973094bed5a04c7baf3f7
2018-08-09 09:41:34 -07:00
David Anderson
e60694d66a Merge "fastbootd: Allow returning errors from getvar handlers."
am: 4264b7f5d2

Change-Id: I1e14040ca3aa2dd671e910f0bedd8f138e9ec2f0
2018-08-09 09:40:44 -07:00
Tao Bao
075c351af2 Merge "fastboot: fastbootd uses libadbd.so." 2018-08-09 16:31:29 +00:00
Treehugger Robot
4264b7f5d2 Merge "fastbootd: Allow returning errors from getvar handlers." 2018-08-09 16:28:06 +00:00
Steven Moreland
bff61f2eba Merge "Add ParseFloat (in parsedouble.h)."
am: 9ce0de0ed1

Change-Id: I16d399f1be0a9c5d3ebe20e795b8a69f3fd30e4f
2018-08-09 09:25:41 -07:00
Steven Moreland
9ce0de0ed1 Merge "Add ParseFloat (in parsedouble.h)." 2018-08-09 16:14:18 +00:00
Hans Boehm
cc8c08d1f1 Merge "Revert^2 "Prepare to fail in RefBase destructor if count is untouched""
am: 2d3f234f20

Change-Id: I12acef5c4485616cbb0fd57162bcca0919068132
2018-08-08 22:23:23 -07:00
Hans Boehm
2d3f234f20 Merge "Revert^2 "Prepare to fail in RefBase destructor if count is untouched"" 2018-08-09 05:09:19 +00:00
Steven Moreland
7ab8206b59 Merge "ParseDouble: allow validation only."
am: 4842b1b53e

Change-Id: I24758b950cf256527f6a5f80e22a45d994724aa3
2018-08-08 19:43:43 -07:00
Treehugger Robot
4842b1b53e Merge "ParseDouble: allow validation only." 2018-08-09 02:38:27 +00:00
Josh Gao
232cacc29a Merge "base: move unique_fd fdsan tests into bionic."
am: e74c526513

Change-Id: I2f2586281ce25cc859eb8cfcc939a31b9745429a
2018-08-08 19:27:34 -07:00
Treehugger Robot
e74c526513 Merge "base: move unique_fd fdsan tests into bionic." 2018-08-09 02:14:48 +00:00
David Anderson
856b7ecbb6 fastbootd: Allow returning errors from getvar handlers.
Currently a few getvar handlers will return invalid strings when an
error occurs. This change allows those handlers to instead send a proper
failure message.

Bug: 78793464
Test: N/A
Change-Id: I7ff7d036c1e6fb0a3d700ecf21b1103ab77278d2
2018-08-08 18:24:09 -07:00
Steven Moreland
586ef26f74 Add ParseFloat (in parsedouble.h).
Bug: 110758329 # for using here
Test: libbase_test (added float_smoke)
Change-Id: I640f85655567c707cbee625ca9c88db2ab91da66
2018-08-08 18:17:21 -07:00
Josh Gao
fa06fc79e2 base: move unique_fd fdsan tests into bionic.
EXPECT_DEATH forks behind the scenes, which turns off fdsan, leading to
these tests failing. Instead of duplicating the special
EXPECT_FDSAN_DEATH macro, just move these tests into the bionic fdsan
tests.

Test: none
Change-Id: Ia7b65d4560601d5a78d143aced887a6773b401c0
2018-08-08 17:38:04 -07:00
Julien Desprez
d8ecfb6db7 Merge "Add adb integration test to general-tests"
am: 7b1d163cb8

Change-Id: I5fc70e76edff1c8924a54e3128733d2b7fcfb20d
2018-08-08 17:23:06 -07:00
Treehugger Robot
7b1d163cb8 Merge "Add adb integration test to general-tests" 2018-08-09 00:05:51 +00:00
Steven Moreland
1b8981e972 ParseDouble: allow validation only.
This change also updates documentation for Parse(Ui|I)nt functions
which recently had a corresponding change applied.

Bug: 110758329
Test: libbase_test
Change-Id: I4842c0500a6e49498eeb8a63d1117c06727fffdf
2018-08-08 16:50:27 -07:00
Hans Boehm
2a019ecf4f Revert^2 "Prepare to fail in RefBase destructor if count is untouched"
This reverts commit b9d0753d2b.

Reason for revert: Re-land with MacOS workaround.

Test: Build (on Linux) and boot AOSP, with weak symbols enabled and disabled.

Change-Id: I5150cd90367178f3b039761dca3bccc9c2987df1
2018-08-08 16:30:12 -07:00
Tao Bao
b71eedf912 fastboot: fastbootd uses libadbd.so.
The size of `fastbootd` goes down from 64088-byte to 38488-byte
(aosp_taimen-userdebug) after the change.

Bug: 78793464
Test: `m -j installclean && m -j fastbootd`. Check that
      $OUT/recovery/root/system/lib64/libadbd.so exists and
      $OUT/recovery/root/system/bin/fastbootd depends on that.
Change-Id: Ic36c98da1a0dda4e0d86e671f858c42578f53f90
2018-08-08 15:54:48 -07:00
Hridya Valsaraju
b5ff114a62 Merge "fastbootd: Implement the getvar command."
am: 70306b9271

Change-Id: I72bd78bfc8ab0c18006614990ad7fa4a44a8a7c7
2018-08-08 15:47:20 -07:00
Treehugger Robot
70306b9271 Merge "fastbootd: Implement the getvar command." 2018-08-08 22:37:00 +00:00
Florian Mayer
09336fe231 Merge "Allow to get raw register data on all platforms."
am: ec004eb1b3

Change-Id: I57b8c1521f7d5bf5bbcdd26c930a44d19e8fc744
2018-08-08 14:55:59 -07:00
Josh Gao
b97de6d007 Merge "adb: clean up handle_host_request."
am: f41897a66e

Change-Id: Ifa0dd3f795394e977275732f3f831d9ff12399ef
2018-08-08 14:50:32 -07:00
Florian Mayer
ec004eb1b3 Merge "Allow to get raw register data on all platforms." 2018-08-08 21:37:46 +00:00
Treehugger Robot
f41897a66e Merge "adb: clean up handle_host_request." 2018-08-08 20:36:44 +00:00
Mathieu Chartier
759d185990 Merge "Move to using ClassAccessor"
am: fe891a88a9

Change-Id: I0762a7368b163e3cc54dc55cdb4d60bb2ae29138
2018-08-08 13:20:06 -07:00
Mathieu Chartier
fe891a88a9 Merge "Move to using ClassAccessor" 2018-08-08 20:05:13 +00:00
Julien Desprez
75fea7ec3b Add adb integration test to general-tests
In order to run them continuously, add them to general-test
zip.

Test: make general-tests
Bug: 112104122
Change-Id: I7a1143ac638626069ed78ddd450063e9489e22e8
2018-08-08 12:08:50 -07:00
Hridya Valsaraju
31d2c26409 fastbootd: Implement the getvar command.
This implements basic "fastboot getvar" support, including commands supported
by IBootControl.

Bug: 78793464
Test: fastboot getvar <fastboot variable>

Change-Id: Iee1a7b3f43dea46f80dcdf73c45034e2ffe4727d
2018-08-08 11:41:53 -07:00
Suren Baghdasaryan
42f5cfbd45 [automerger skipped] Merge "lmkd: Skip memory.stat usage when per-app memcgs are not used"
am: 1e0e1b44bd  -s ours

Change-Id: Ic2a13be530643b3b30c69587ec7dfbe76725474b
2018-08-08 11:38:50 -07:00
Suren Baghdasaryan
26beb5ca71 Merge "lmkd: Protect against buffer overflow"
am: 41950dd414

Change-Id: Ifabd859dfd34354a4567e049c0426a0699dcc076
2018-08-08 11:36:18 -07:00
Mathieu Chartier
c2277fc216 Move to using ClassAccessor
In preparation for removal of ClassDataItemAccessor.

Bug: 79758018
Test: make
Test: test/run-test --host 137
Test: out/host/linux-x86/nativetest/libunwindstack_test/libunwindstack_test

Change-Id: I61a20fe7200a0d669b84573d3853b55877922602
2018-08-08 11:04:15 -07:00
Tao Bao
db291b5fb4 Merge "Merge libsync_recovery rules into libsync."
am: 8fa3adb8a9

Change-Id: I5a37ec60d84c2d92aadc7071f9355fb3ef3bac8c
2018-08-08 11:03:52 -07:00
Greg Kaiser
421492206f Merge "Revert "Support Speck encryption.""
am: 7d4e7d3156

Change-Id: I4fbd66f6fa138d8f3910f8bd9ecc5d8e9a106f8d
2018-08-08 10:41:00 -07:00
David Anderson
04d964045d Merge "fastboot: Fix product-services typo"
am: 6b0ecdab15

Change-Id: I0a7f1f390aa8d5241da262ee30a094b3c5a711c2
2018-08-08 10:39:57 -07:00
Tao Bao
e7e0a5e29d Merge "Make libadf, libsync_recovery recovery_available."
am: ba22102ce3

Change-Id: I45e5b40128edff3623b2ee0c918e17b4ea93fa74
2018-08-08 10:39:15 -07:00
Mark Salyzyn
32e66971ab Merge "bootstat: duplicate boot reason entries"
am: f3c332725b

Change-Id: I910060f82aa3c3720baecd5aa9e2462eea38239d
2018-08-08 10:38:08 -07:00
Treehugger Robot
1e0e1b44bd Merge "lmkd: Skip memory.stat usage when per-app memcgs are not used" 2018-08-08 16:44:22 +00:00
Florian Mayer
932247e900 Allow to get raw register data on all platforms.
No new test failures introduced.

atest libunwindstack_test on aosp_walleye-userdebug:

Without patch:
Total: 800, Passed: 781, Failed: 19
With patch:
Total: 800, Passed: 781, Failed: 19

Change-Id: I8853c3e1594799761b481464b75e2904b38c4830
2018-08-08 11:19:41 +01:00
Suren Baghdasaryan
1d1c002c3d lmkd: Skip memory.stat usage when per-app memcgs are not used
Initial change to remove memory.stat usage when per-application memcgs
are disabled was partially merged into AOSP under the following id:
Ib6dd7586d3ef1c64cb04d16e2d2b21fa9c8e6a3a
This change adds the missing parts.

Bug: 110384555
Change-Id: I1265021b1ede0e68efbf80d6430a959eaf46a69a
Merged-In: Ib6dd7586d3ef1c64cb04d16e2d2b21fa9c8e6a3a
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2018-08-08 01:18:38 +00:00
Suren Baghdasaryan
41950dd414 Merge "lmkd: Protect against buffer overflow" 2018-08-08 00:52:18 +00:00
Tao Bao
8fa3adb8a9 Merge "Merge libsync_recovery rules into libsync." 2018-08-08 00:26:38 +00:00
Xin Li
1680c7b327 Merge "Merge Android Pie into master"
am: 5d707816ac

Change-Id: I5c73a134d341cb054a0693250bc5e3c3738bb663
2018-08-07 15:42:25 -07:00
Greg Kaiser
f0da9b0cc2 lmkd: Protect against buffer overflow
We're passing a 'line' whose backing buffer is PAGE_MAX in size
into memory_stat_parse_line().  We protect overflowing the smaller
LINE_MAX 'key' buffer via some C preprocessing macros to assure
we limit the size.

Test: Local build with LMKD_LOG_STATS set for this file.
Bug: 76220622
Change-Id: I9e50d4270f7099e37a9bfc7fb9b9b95cc7adb086
2018-08-07 15:42:19 -07:00
Josh Gao
4039051d6d adb: clean up handle_host_request.
Previously, we were returning the result of SendOkay/SendFail in a few
places after handling a host request, which is incorrect for two
reasons. First, the return type of SendOkay/SendFail is bool, and
handle_host_request was expected to return 0 on success. Second, we
don't care if the SendOkay fails; if we got to that point, we're done
with the request, regardless of whether we succeeded to report our
result. The result of this was a spurious failure result reported after
the initial result, which was ignored by the adb client.

Test: manually straced adb server
Test: python test_adb.py
Test: python test_device.py
Change-Id: I7d45ba527e1faccbbae5b15e7a0d1557b0a84858
2018-08-07 14:24:36 -07:00
Treehugger Robot
7d4e7d3156 Merge "Revert "Support Speck encryption."" 2018-08-07 21:11:51 +00:00
Treehugger Robot
6b0ecdab15 Merge "fastboot: Fix product-services typo" 2018-08-07 18:24:10 +00:00
Tao Bao
ba22102ce3 Merge "Make libadf, libsync_recovery recovery_available." 2018-08-07 18:05:45 +00:00
Tao Bao
f32d3df46f Merge libsync_recovery rules into libsync.
Statically linking against libsync is no longer a concern, since libsync
has supported the modern sync ABI (which is frozen upstream) after the
recent cleanup works.

Test: `m dist` with aosp_taimen-userdebug
Change-Id: Ic162bc7ff7c9dd306658d11d4b71e2d18730a2ee
2018-08-07 11:00:50 -07:00