Commit graph

57735 commits

Author SHA1 Message Date
Josh Gao
b9a10d4538 Merge "adbconnection: silence logspam." am: ff08a51a72
Change-Id: I0fa9ab7c50ab1d00ac8078466f4121d414fc2e6b
2020-04-18 03:01:20 +00:00
Josh Gao
ff08a51a72 Merge "adbconnection: silence logspam." 2020-04-18 02:47:11 +00:00
Treehugger Robot
ecc11836ec Merge "adb: change mdns tls service names (RFC 6763)." am: 22cc277bfe
Change-Id: I542061b862cf8d2296dacccd6171bbb6119c6b1e
2020-04-18 02:02:20 +00:00
Treehugger Robot
22cc277bfe Merge "adb: change mdns tls service names (RFC 6763)." 2020-04-18 01:37:41 +00:00
Treehugger Robot
7bdf442375 Merge "adbconnection: delete unnecessary darwin workaround." am: 04e9d07490
Change-Id: I70acba2b1710256a59e2b3c2d24af4208389d99f
2020-04-18 00:02:26 +00:00
Joshua Duong
81f2db4d6a adb: change mdns tls service names (RFC 6763).
Even though mdnsresponder seems to allow us to use _adb_secure_connect
and _adb_secure_pairing as service names, these names violate the syntax
outlined in RFC6763, and may not be compatible with other dns-sd
implementations.

Also address some comments from a previous CL.

Bug: 154268895

Test: atest adbd_test
Change-Id: Ia872e976fc4276587b500a827a41d46d9dc755dd
2020-04-17 16:38:34 -07:00
Josh Gao
d81a805a4c adbconnection: silence logspam.
Userdebug devices enable JDWP for every process, so if adbd is turned
off manually, we get an error message for every single process on the
system.

Bug: http://b/154319466
Test: manual
Change-Id: Ia702974d371e35497573c31e22cfb2b572334590
2020-04-17 16:35:01 -07:00
Treehugger Robot
04e9d07490 Merge "adbconnection: delete unnecessary darwin workaround." 2020-04-17 23:28:40 +00:00
Josh Gao
4a1da79208 adbconnection: delete unnecessary darwin workaround.
This shouldn't be compiling for the mac.

Test: none
Change-Id: I9aea1861365c0da041c665e14e3e86cb802ad697
2020-04-17 14:46:41 -07:00
Peter Collingbourne
3c1f492ee1 Merge "libunwindstack: Add Memory::ReadTag() function for reading memory tags." am: b416a925ab
Change-Id: I5a748b08e866cda1fd33c3b0d40b4bf8c9a094c5
2020-04-17 18:33:05 +00:00
Peter Collingbourne
b416a925ab Merge "libunwindstack: Add Memory::ReadTag() function for reading memory tags." 2020-04-17 18:16:05 +00:00
Nikita Ioffe
b0c6174a30 Merge "Cleanup logic in KillZramBackingDevice" am: 1e98e552c6
Change-Id: I23f2ce900d81c89662839e7c0899272afb93439d
2020-04-17 15:18:29 +00:00
Nikita Ioffe
1e98e552c6 Merge "Cleanup logic in KillZramBackingDevice" 2020-04-17 15:03:56 +00:00
Nikita Ioffe
a3be996673 Cleanup logic in KillZramBackingDevice
Since this function is used in userspace reboot, we need to be more
diligent with error handling, e.g.:

* If init fails to read /sys/block/zram0/backing_dev, then fail and
fallback to hard reboot.
* Always call swapoff.
* Always reset zram.
* Tear down loop device only if zram is backed by a loop device.

Test: adb reboot userspace
Bug: 153917129
Change-Id: I4709da1d08cf427ad9c898cfb2506b6a29f1d680
Merged-In: I4709da1d08cf427ad9c898cfb2506b6a29f1d680
(cherry picked from commit a840d405eb)
2020-04-17 12:28:25 +01:00
Josh Gao
da03311c3f Merge "adb: fix feature sets on devices that don't have them." am: 10f8f5e363
Change-Id: Ieebf1b914d0ef08be0b5bb16698d05cf72001109
2020-04-17 04:57:30 +00:00
Josh Gao
10f8f5e363 Merge "adb: fix feature sets on devices that don't have them." 2020-04-17 04:43:16 +00:00
Josh Gao
fb4616b200 adb: fix feature sets on devices that don't have them.
Previously, we weren't distinguishing between nonexistent devices and
devices that don't support features, resulting in lots of stuff being
broken for pre-N devices.

Bug: http://b/154272158
Test: adb shell on a JB emulator
Change-Id: I0058b2a60678e1ad0503f5abac30157be976c9c4
2020-04-16 19:39:05 -07:00
Yifan Hong
5eb4567853 Merge "libsnapshot clients: Add missing dep." am: 7b28054c05
Change-Id: I1d9372806c6baec1fd34566b9af1a82c62f5ac7f
2020-04-17 01:09:10 +00:00
Yifan Hong
7b28054c05 Merge "libsnapshot clients: Add missing dep." 2020-04-16 23:57:06 +00:00
Tom Cherry
1d17dee517 Merge "liblog: return -EPERM if a log_is_loggable() returns false" am: 6b76de04f7
Change-Id: I2202cbd85a630d3f59229fa74a873fa2abb9c85c
2020-04-16 20:32:54 +00:00
Tom Cherry
6b76de04f7 Merge "liblog: return -EPERM if a log_is_loggable() returns false" 2020-04-16 20:13:04 +00:00
Yifan Hong
66f0115b05 libsnapshot clients: Add missing dep.
libsnapshot* uses update_metadata-protos. This
used to be optimized out, but now that SnapshotManager is
virtual, CreateUpdateSnapshots can no longer be optimized out.

Bug: 148956645
Test: compiles
Change-Id: Ib67cafd156308bf5a477996ec32eb786f8e896db
2020-04-16 13:12:41 -07:00
Tom Cherry
1ff17fcebb liblog: return -EPERM if a log_is_loggable() returns false
This was the previous behavior, so retain it.

Bug: 119867234
Test: logging unit tests
Change-Id: I088f760cc274a4a42d72477eb4e2e8d23c613a8a
2020-04-16 12:55:30 -07:00
Treehugger Robot
11f33e3f6c Merge "Re-enable libsnapshot ImageManagerTest" am: 8c6d5bf83c
Change-Id: I6a9216203282fba4eafc6002c648aed6974403e2
2020-04-16 17:32:13 +00:00
Treehugger Robot
8c6d5bf83c Merge "Re-enable libsnapshot ImageManagerTest" 2020-04-16 17:20:41 +00:00
Tom Cherry
14a581c26d Merge "liblog: cleanup log_read.h header" am: f0dafccb38
Change-Id: I525447771f7a3066733608902bae40c5dd12b6d2
2020-04-16 15:32:11 +00:00
Tom Cherry
f0dafccb38 Merge "liblog: cleanup log_read.h header" 2020-04-16 15:19:29 +00:00
Martijn Coenen
7dcfb7eaaa Merge "Rename external storage properties." am: f0122aa14d
Change-Id: I2e630c9168dfe43649de910e150f095f1950a12a
2020-04-16 08:21:01 +00:00
Martijn Coenen
f0122aa14d Merge "Rename external storage properties." 2020-04-16 08:06:52 +00:00
Peter Collingbourne
c71e0a652c libunwindstack: Add Memory::ReadTag() function for reading memory tags.
This uses an experimental Linux kernel API for reading the tags across
processes using ptrace.

Bug: 135772972

Test: Unit tests pass.
Change-Id: Ib1a09d9219166011de80cf250b756bb8a4bcdb0a
2020-04-16 00:23:45 -07:00
Tianjie Xu
f7a7c57f2e Merge "Handle the invalid timestamp in zipfile" am: 585ff01946
Change-Id: I58518b92ec01aea0c5e0b585d58bfb7a7f1d9d64
2020-04-16 04:49:40 +00:00
Tianjie Xu
585ff01946 Merge "Handle the invalid timestamp in zipfile" 2020-04-16 04:33:35 +00:00
Christopher Ferris
9edcf7cc6e Merge "Add benchmarks for symbol reading." am: 9be6d30cc0
Change-Id: I1aa7e73452479366fdb6ea12219f50699e65b700
2020-04-16 01:47:11 +00:00
Christopher Ferris
9be6d30cc0 Merge "Add benchmarks for symbol reading." 2020-04-16 01:25:29 +00:00
Alessio Balsini
42a608162d Re-enable libsnapshot ImageManagerTest
ImageManagerTest had been temporarily disabled because flaky.
This test looks stable now, re-enable it.

Bug: 148889015
Test: atest vts_libsnapshot_test [-- --abi x86]
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I858661fed7f58d1e2857ed88f5d8e0f5220bf8c2
2020-04-16 00:11:55 +00:00
Treehugger Robot
c933da92d6 Merge "macOS build fix: no SOCK_CLOEXEC on darwin." am: 8fbb0d8de0
Change-Id: Ia6e3030492ce8d017c58a4d6f77a1496fab92343
2020-04-15 23:40:20 +00:00
Treehugger Robot
8fbb0d8de0 Merge "macOS build fix: no SOCK_CLOEXEC on darwin." 2020-04-15 23:38:53 +00:00
Treehugger Robot
4644ebeb93 Merge "Documented range of event logtags used by Android Automotive." am: a010dd7b50
Change-Id: I9746fcf79fcdac85b4b6ab8be46f4a6495c77c29
2020-04-15 23:34:48 +00:00
Tianjie
426bf3a1f1 Handle the invalid timestamp in zipfile
The month field is one based in the zipfile modification time. And
it causes an overflow converting it to struct tm. Switch to type to
signed integer to suppress the sub-overflow.

Bug: 153882979
Test: parse the problematic zipfile
Change-Id: Iaf47bcc7f83d61b18c9e7a98bb6ab3936c9257e3
2020-04-15 16:32:42 -07:00
Treehugger Robot
a010dd7b50 Merge "Documented range of event logtags used by Android Automotive." 2020-04-15 23:22:28 +00:00
David Anderson
7ccda0b1bd Merge "libsnapshot: Add a simple script and gtest to simulate power failures during snapshot-merge." am: 0bd13b7be9
Change-Id: Ib871832f6387bc4f8d2064119cd9c7763ec76a8b
2020-04-15 23:10:03 +00:00
David Anderson
0bd13b7be9 Merge "libsnapshot: Add a simple script and gtest to simulate power failures during snapshot-merge." 2020-04-15 22:51:20 +00:00
Treehugger Robot
a1c8b995fb Merge "macOS build fix: no off64_t on darwin." am: 63f2be8f56
Change-Id: Id025b6c3f020840f980c66a8a4e22efbec219aaa
2020-04-15 22:33:33 +00:00
Treehugger Robot
63f2be8f56 Merge "macOS build fix: no off64_t on darwin." 2020-04-15 22:24:03 +00:00
Felipe Leme
76024d755a Documented range of event logtags used by Android Automotive.
Test: N/A
Bug: 153900032

Change-Id: I2e35d56f89becea33c4a4b7fb6af8de3ccbb087a
2020-04-15 14:40:21 -07:00
Elliott Hughes
cbe30fb952 macOS build fix: no SOCK_CLOEXEC on darwin.
We can't use the sysdeps.h copy of this code, so for now add yet
another copy & paste. We should come up with something better in
libbase, but let's get the macOS build fixed first.

Test: builds on mac
Change-Id: Ifb059990d7091f3d91b54e684f4ee14afe69c28b
2020-04-15 21:28:01 +00:00
Christopher Ferris
a9e19097ed Add benchmarks for symbol reading.
Add a number of benchmarks to time how long it takes to look
up symbols.

Test: Ran benchmarks on device.
Change-Id: Iab7aab3f60c2c7056395beca3d36263420bcb5dc
2020-04-15 14:03:21 -07:00
Treehugger Robot
18ddd43a95 Merge "first_stage_init: add hook to exec a shell script" am: 00c2625fd1
Change-Id: Ia56a483698341e66e9abddd75b808f8cc6dcb8ba
2020-04-15 20:11:19 +00:00
Treehugger Robot
00c2625fd1 Merge "first_stage_init: add hook to exec a shell script" 2020-04-15 19:56:56 +00:00
Treehugger Robot
9d01f0e64f Merge "first_stage_init: increase serial console tries to 50" am: 0919f10fa2
Change-Id: I7a529b7383e906afc4418a788a79691c407c52d8
2020-04-15 18:58:17 +00:00