Commit graph

53763 commits

Author SHA1 Message Date
Steven Moreland
97bda3eb19 Merge "host_init_verifier: use libhidlmetadata"
am: 5d9cdae3f3

Change-Id: I607fb5adc2f5e1a851b481a0feedcdd9e2e167c3
2019-10-23 16:14:16 -07:00
Josh Gao
4818e210cc Merge "deployagent: set sdk version."
am: 581f8e2a5a

Change-Id: I2ee5d6cb3e3f6938ce85c4c7d9955e91a672129a
2019-10-23 16:12:34 -07:00
Steven Moreland
5d9cdae3f3 Merge "host_init_verifier: use libhidlmetadata" 2019-10-23 23:07:30 +00:00
Treehugger Robot
581f8e2a5a Merge "deployagent: set sdk version." 2019-10-23 22:59:56 +00:00
Tom Cherry
2b19109d2c Merge "Revert "liblog: remove mistakenly added symbols from vndk""
am: 9a3ebd2d54

Change-Id: I542cb1616b8499465d4f0ee600c9c769e0f8b54f
2019-10-23 15:25:33 -07:00
Tom Cherry
2c9ac318ec Merge "init: only provide control message results for devices launching > Q"
am: 0b482ad25b

Change-Id: Ice82dbf88fb37c4c8d0c7efb46a7edc8472a81b1
2019-10-23 15:24:43 -07:00
Tom Cherry
9a3ebd2d54 Merge "Revert "liblog: remove mistakenly added symbols from vndk"" 2019-10-23 20:47:27 +00:00
Tom Cherry
0b482ad25b Merge "init: only provide control message results for devices launching > Q" 2019-10-23 19:52:07 +00:00
Tom Cherry
350164cc7c Revert "liblog: remove mistakenly added symbols from vndk"
This reverts commit 5f8162b086.

Reason for revert: Turns out they're being used.

Merged-In: Iad9010190c7a4140b69dc553df5debdd88dcf81a
Change-Id: Iad9010190c7a4140b69dc553df5debdd88dcf81a
2019-10-23 11:39:13 -07:00
Tom Cherry
7e6ef6527b Merge "liblog: remove mistakenly added symbols from vndk"
am: cc4bf6538b

Change-Id: I25e8256091dbf3b2d2a3e0c7374a4d43df311395
2019-10-23 08:26:51 -07:00
Tom Cherry
cc4bf6538b Merge "liblog: remove mistakenly added symbols from vndk" 2019-10-23 15:14:25 +00:00
Tom Cherry
5310db82b0 init: only provide control message results for devices launching > Q
This is a behavior change and may have unintended consequences,
especially in Java, where failed property sets create exceptions.
Therefore, we only provide this new behavior to devices launching > Q.

Bug: 137070994
Test: build
Change-Id: If0b44aedc5c887ea6ea16dd3ec551ac2bf793cef
2019-10-23 08:09:56 -07:00
Elliott Hughes
dd8f749a60 Merge "libziparchive: add trivial fuzzer."
am: 986aaaaaa4

Change-Id: I80acba4e05eeacce69f80375c3410e966953c1e8
2019-10-23 08:07:56 -07:00
Elliott Hughes
986aaaaaa4 Merge "libziparchive: add trivial fuzzer." 2019-10-23 14:54:54 +00:00
Yifan Hong
bad91a3fb8 Merge "[REFACTOR] healthd: BatteryMonitor::update split into 3 funcs"
am: 27de4e4a4a

Change-Id: I391bed7dc08227e5e83a8098b2d230ebf41f3b5d
2019-10-22 16:08:34 -07:00
Yifan Hong
27de4e4a4a Merge "[REFACTOR] healthd: BatteryMonitor::update split into 3 funcs" 2019-10-22 22:47:39 +00:00
Elliott Hughes
f66460b92a libziparchive: add trivial fuzzer.
Didn't find anything when I ran it, but it did get me to fix the
const/non-const void* in the API.

Test: treehugger
Change-Id: If3849d974965e3e5ffcbdaf5e47921316d717410
2019-10-22 11:45:49 -07:00
Christopher Ferris
ec79999dbf Merge "Fix handling of PT_GNU_EH_FRAME."
am: d76932ffa5

Change-Id: I16feaafc91550f748e0965d9cb8c2f79688f6ab5
2019-10-22 10:51:53 -07:00
Christopher Ferris
d76932ffa5 Merge "Fix handling of PT_GNU_EH_FRAME." 2019-10-22 17:26:59 +00:00
Tom Cherry
7867721e51 liblog: remove mistakenly added symbols from vndk
These functions and headers were all mistakenly added to the vndk.
They should not be used by vendors.

Test: these symbols do not appear in vendor libraries
Merged-In: I03919b437c2d9f0e573b7a6b40249ed12fe874b9
Change-Id: I03919b437c2d9f0e573b7a6b40249ed12fe874b9
2019-10-22 09:47:45 -07:00
Max Spector
295f631a6b Merge "Liblogd log fuzzer"
am: 1e07245bf1

Change-Id: I78ecc01acd0e29067b3b9a7ebd3a088cf484c795
2019-10-21 22:14:20 -07:00
Treehugger Robot
1e07245bf1 Merge "Liblogd log fuzzer" 2019-10-22 05:02:11 +00:00
Christopher Ferris
5838e53b97 Fix handling of PT_GNU_EH_FRAME.
The bias for the PT_GNU_EH_FRAME was using the paddr instead of vaddr.
This doesn't match the way the load bias is calculated, which always
use vaddr - offset, so change to use vaddr.

Found on an old x86 device that has a vdso that sets vaddr differently
from paddr.

Add a new offline test to catch this case and update the elf interface
unit tests.

Also, fix a small bug in the unwind_for_offline tool.

Bug: 142365899

Test: Unit tests pass.
Change-Id: I5f0bf062dd8ee45aa8553189ba493ec962e0b059
2019-10-21 19:11:22 -07:00
Max Spector
0c9d488374 Liblogd log fuzzer
Basic fuzzer for liblogd LogBuffer::log

Bug: 143107334
Test: Ran the fuzzer
Change-Id: Ifaeef1410655cf57c58b2b78484b832dfea6333a
2019-10-21 18:26:59 -07:00
Alessio Balsini
da79719fce Merge "libsnapshot_test: Fix loading both the static and dynamic libcrypto libs"
am: 92155132e2

Change-Id: I1b72003da2c7fd82a5ce080871c5897cc73aad30
2019-10-21 16:53:08 -07:00
Treehugger Robot
92155132e2 Merge "libsnapshot_test: Fix loading both the static and dynamic libcrypto libs" 2019-10-21 23:22:53 +00:00
Alessio Balsini
3f88b4e63c libsnapshot_test: Fix loading both the static and dynamic libcrypto libs
libsnapshot_test was depending both directly on libcrypto_static and
indirectly through liblp on libcrypto.  This was causing a failure at
runtime on the sanity check when loading the libcrypto library.
Dropped the dependency on libcrypto_static and switched to the dynamic
libcrypto to fix this violation.

Test: libsnapshot_test
Fixes: 143094706
Change-Id: Iba959e234348f7deb81893c9105a13628ce0eb6e
Signed-off-by: Tobias Thierer <tobiast@google.com>
Signed-off-by: Alessio Balsini <balsini@google.com>
2019-10-21 21:31:39 +00:00
Tom Cherry
122ae5806a Merge "liblog: fixup log_id_t"
am: d1a6d75d29

Change-Id: I0e0acb5616f9178c43b084f97f8bb8189575a19c
2019-10-21 13:27:47 -07:00
Tom Cherry
d1a6d75d29 Merge "liblog: fixup log_id_t" 2019-10-21 19:36:12 +00:00
Alessio Balsini
3b5491253f Merge "Fix fuzzer name and sizeof(array)"
am: f5b2927908

Change-Id: I356d5474d304fa28606e53deac5cf9b8c2059711
2019-10-21 11:20:32 -07:00
Treehugger Robot
f5b2927908 Merge "Fix fuzzer name and sizeof(array)" 2019-10-21 17:28:48 +00:00
Alessio Balsini
d0de1114a9 Fix fuzzer name and sizeof(array)
The fuzzer name "dm_table_fuzzer" was too generic. Looking forward to an
extension to host tests where each fuzzer name should be considered a
unique identifier, change the fuzzer name to, "dm_linear_table_fuzzer".

Fix also the syntax of sizeof(array) declaration.

Bug: none
Test: dm_linear_table_fuzzer
Change-Id: Iaa0ee9a0eb1352f0c5269b07198d0a34d8fb3254
Signed-off-by: Alessio Balsini <balsini@google.com>
2019-10-21 11:44:08 +00:00
Tom Cherry
5e81aa2cf5 liblog: fixup log_id_t
1) We don't need two copies of log_id_t
2) We don't need misleading sizeof_log_id_t or typeof_log_id_t macros
3) logd should use android_log_header_t explicitly for its recv buffer
   size
4) Following on from b/129272512, we're settling that returning
   LOG_ID_MAX is an acceptable return value from
   android_name_to_log_id().

Bug: 129272512
Test: build, liblog, logcat unit tests
Change-Id: I67fb964a4a0ae9cb6e1514ca110e47e00dfcfa9a
2019-10-18 09:58:08 -07:00
Maciej Żenczykowski
19177b66cb Merge "better document ifc_{add,del}_address return code"
am: 32e7325c44

Change-Id: I720682a134a47ebd2e76a8d08b30b17cefb4dc8c
2019-10-17 23:31:15 -07:00
Maciej Żenczykowski
32e7325c44 Merge "better document ifc_{add,del}_address return code" 2019-10-18 06:15:30 +00:00
Maciej Żenczykowski
f0d101266f better document ifc_{add,del}_address return code
Test: N/A
Bug: 142764715
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I8ffa7985aa2ec81959d57188755e453f0551b872
2019-10-17 17:20:25 -07:00
Josh Gao
c9e09e69b9 deployagent: set sdk version.
Not specifying a platform version in a java binary will result in code
generation tools being built to create framework.jar, which currently
fails when building with BUILD_HOST_static=1.

Specify an SDK version to avoid this.

Bug: http://b/142536936
Test: m -j adb BUILD_HOST_static=1
Change-Id: Ifb9556c7c6cc43417c3f56137edee21f145f8b17
2019-10-17 16:20:26 -07:00
Josh Gao
e7ae4f9d5e Merge "debuggerd_client_test: massively increase timeouts."
am: ecc9b1bd7f

Change-Id: Ibdaebf263dd0032e60240695ebb799f4a3e62989
2019-10-17 14:47:34 -07:00
Treehugger Robot
ecc9b1bd7f Merge "debuggerd_client_test: massively increase timeouts." 2019-10-17 21:33:46 +00:00
David Anderson
0b5678e09e Merge "Integrate libsnapshot with the boot control HAL."
am: c243e19936

Change-Id: Id4a9a5e8733d939c238d783e2550d033b28d5dff
2019-10-17 13:18:51 -07:00
Yifan Hong
bd3586f7df Merge "fs_mgr: vts_core_liblp_test requires root"
am: 356951f2be

Change-Id: I8c5384fdcc471b7a29cff818813ee0a3738a9e51
2019-10-17 13:18:22 -07:00
Josh Gao
5b7f4d9cd5 Merge changes from topic "apex_remount"
am: baea773324

Change-Id: If64a41f61f434b49847c954cc56530703d697b73
2019-10-17 13:15:20 -07:00
Josh Gao
7fc8e46ddd Move remount to PRODUCT_PACKAGES_DEBUG.
am: 6ce44041b5

Change-Id: Id0201fea6451a949701ab2d21063d55821d128e4
2019-10-17 13:15:12 -07:00
David Anderson
c243e19936 Merge "Integrate libsnapshot with the boot control HAL." 2019-10-17 19:57:04 +00:00
Treehugger Robot
356951f2be Merge "fs_mgr: vts_core_liblp_test requires root" 2019-10-17 19:55:23 +00:00
Josh Gao
baea773324 Merge changes from topic "apex_remount"
* changes:
  adbd: replace remount_service with an exec of /system/bin/remount.
  Move remount to PRODUCT_PACKAGES_DEBUG.
2019-10-17 19:14:26 +00:00
Josh Gao
f10d4a15d2 debuggerd_client_test: massively increase timeouts.
debuggerd_client.race seems to have suddenly started to flake, for no
apparent reason. This doesn't seem to reproduce locally, so increase
the timeouts to rule out our test VMs being slow.

Bug: http://b/142571257
Test: treehugger
Change-Id: Ic54a78b8da36cb1163cec7e7976c73c3da628a30
2019-10-17 12:09:49 -07:00
Alessio Balsini
ca742ac83e Merge "Utility class for COW size calculation"
am: d8a72367e5

Change-Id: Ib0a73d53a152421159cf67182b750b9a35462e70
2019-10-17 06:59:24 -07:00
Tom Cherry
e2f498e1be Merge "liblog: remove checks for __GNUC__"
am: 5f8790f8ab

Change-Id: I6d78df11ab8c1c263733acf41e645524589bab68
2019-10-17 06:57:18 -07:00
Treehugger Robot
d8a72367e5 Merge "Utility class for COW size calculation" 2019-10-17 13:55:44 +00:00