Commit Graph

58386 Commits

Author SHA1 Message Date
Treehugger Robot 947a960f19 Merge "Optimizing install-multi-package to use ABB." am: bd05d33ce7
Change-Id: Id1ed403fdc083ff1a9073db6153fdc1ac22928c5
2020-05-19 06:56:04 +00:00
Treehugger Robot bd05d33ce7 Merge "Optimizing install-multi-package to use ABB." 2020-05-19 06:27:46 +00:00
Treehugger Robot 22e35247eb Merge "Incremental install mode for install-multi." am: 3eb41352c5
Change-Id: Ib2666899505ed33bf2916611435311421d593139
2020-05-19 06:14:16 +00:00
David Anderson 0d2bcd4afe libsnapshot_test: Fix running on DSUs.
Because DSUs mount userdata via a fiemap, libfiemap has trouble creating
additional fiemaps on top of it. The complex stacking of dm-linear is
not supported. For other libfiemap tests we've hacked around this
limitation. If LpMetadata is in a folder named "test", we allow the
backing device search to stop at a dm node, whereas otherwise it would
need to stop at a physical device.

However this was not quite enough for vts_libsnapshot_test, because (1)
the test folder was not included in the pattern match, and (2)
CreateLogicalPartition() could not handle device-mapper names, as it
expects a named physical partition. Addressing both of these allows the
tests to pass on DSUs.

Bug: 156713441
Test: vts_libsnapshot_test on DSU
Change-Id: Ie7ee70e31dff0809a5f0c402ed132d80dd03d9b1
2020-05-19 06:02:37 +00:00
Treehugger Robot 3eb41352c5 Merge "Incremental install mode for install-multi." 2020-05-19 06:00:40 +00:00
Alex Buynytskyy a64d4f81a4 Optimizing install-multi-package to use ABB.
Bug: 150803885
Test: atest adb_test adbd_test
Test: adb install-multi-package Picsart_9.30.5.apk Pinterest_6.54.0.apk
Change-Id: I2fcd093e61afdd16d481194e1d5f8f66acf6a66c
2020-05-19 04:29:34 +00:00
Alex Buynytskyy c06d01e2d9 Incremental install mode for install-multi.
Bug: 150803885
Test: atest adb_test adbd_test fastdeploy_test
Change-Id: I242104267273bac21ab41390d3e77a434ffa565d
2020-05-19 04:29:27 +00:00
Joshua Duong 1b0de1b97d Merge changes from topic "adb-mdns" am: 7ce4a267f5
Change-Id: Ic6f82f881955e933a57fb3663a085f254c83fa26
2020-05-19 00:49:08 +00:00
Joshua Duong 7ce4a267f5 Merge changes from topic "adb-mdns"
* changes:
  adb pair: allow passing password as command-line argument.
  Change adb auto-connect to use mdns instance name.
  'adb pair' by mdns instance name.
  'adb connect' by mDNS service name.
  Add mDNS service instance name parser.
2020-05-19 00:30:06 +00:00
Treehugger Robot 21d4718069 Merge "base: delete abi compatibility shims." am: 64979d3726
Change-Id: I39dbc644e5039949a0f22bcd8a9179f541d45ed4
2020-05-18 23:15:45 +00:00
Treehugger Robot 64979d3726 Merge "base: delete abi compatibility shims." 2020-05-18 22:59:39 +00:00
Tom Cherry a515197266 logd: build liblogd and its test on host
Plus the various fixups needed for building on host.

Test: run these tests on host
Change-Id: I85e6c989068f80c5a80eaf5ad149fdad0a045c08
2020-05-18 15:54:06 -07:00
Tom Cherry 43f3f761f0 logd: add LogBufferTest.cpp
Add a standalone test of log buffers that does not interact with the
logd running on the device.

Test: this new test
Change-Id: Ie4ecc50289ef164aa47cc72ddeeb9b28e776db94
2020-05-18 15:51:08 -07:00
Elliott Hughes 935d755063 Merge "libsparse: use memory-mapping on Windows too." am: 0314dbaecf
Change-Id: I83312afd7ebd5dfbc4934052623ed1292c5b06d8
2020-05-18 22:48:31 +00:00
Tom Cherry bd80e5678f liblog: remove unused log_time functions, inline the others
One of the reasons that logcat and logd statically include liblog is
to access the symbols in log_time.cpp, which we do not expose
otherwise.  Except for strptime(), which will be handled in a separate
CL, these symbols are either small enough to inline in the header or
unused and can be removed.

Test: logging unit tests
Change-Id: I1f8cfbb779aef79fc7d5b6d0050438fe5f0e0e2c
2020-05-18 15:40:26 -07:00
Elliott Hughes 0314dbaecf Merge "libsparse: use memory-mapping on Windows too." 2020-05-18 22:33:57 +00:00
Tom Cherry e929409aa5 Merge "logd: make liblogd just the core logd functionality" am: ff3be3155d
Change-Id: I8b8ea1bb78808bbb24038ff111c1f8e68cef1ace
2020-05-18 22:18:40 +00:00
Tom Cherry ff3be3155d Merge "logd: make liblogd just the core logd functionality" 2020-05-18 22:06:42 +00:00
Treehugger Robot 705539c80e Merge "adb: don't cache failure to get features." am: 7cd7b68f5d
Change-Id: I7e4aa9f971502f5c9d5eb8b87d492977ba2f4eeb
2020-05-18 21:28:13 +00:00
Joshua Duong dcba5c9257 adb pair: allow passing password as command-line argument.
Bug: 155194845

Test: adb pair <host>
Test: adb pair <host> <pairing code>
Change-Id: I9813b5812a98524109a4c90cb089eab652da06fa
2020-05-18 14:24:10 -07:00
Joshua Duong 04d207d315 Change adb auto-connect to use mdns instance name.
This change will fix reconnects when the ip address and port changes for
the same mdns instance name.

Bug: 152886765

Test: 'adb pair <mdns_instance>' and wait for auto-connect.
'adb devices' | grep <mdns_instance
On device, toggle wireless debugging off/on. Client should be able to
reconnect with the different port.

Change-Id: I9ad486534019ee70fb54c9f26ce028951eca8566
2020-05-18 14:23:01 -07:00
Joshua Duong beac509301 'adb pair' by mdns instance name.
Bug: 152886765

Test: Turn on wireless debugging > "Pair with Pairing Code". On client,
> adb pair <mdns_instance>

Change-Id: I8f15c3ea17f3ac02205064f64aca0167bf5d2ad5
2020-05-18 14:23:01 -07:00
Joshua Duong 7ebc595736 'adb connect' by mDNS service name.
Bug: 152886765

Test: $ANDROID_HOST_OUT/nativetest64/adb_test/adb_test
Test: test_adb.py

Change-Id: I7e93ceca7cdf913060bbc5afe824593a9922c6d9
2020-05-18 14:22:52 -07:00
Treehugger Robot 7cd7b68f5d Merge "adb: don't cache failure to get features." 2020-05-18 21:12:28 +00:00
Josh Gao 3dc6710974 base: delete abi compatibility shims.
It's been a year, so references to these in master's vendor blobs
should be gone by now.

Test: treehugger
Change-Id: I090145e69f82e7ee78d66b0b92141bda56250837
2020-05-18 14:07:36 -07:00
Yifan Hong b6b5a11f3c Merge changes from topic "libsnapshot_fuzzer_test" am: 1dc4e19f2a
Change-Id: Icf37d8aa5504058f964f4f1169132e82ff608b1c
2020-05-18 20:28:42 +00:00
Yifan Hong 1dc4e19f2a Merge changes from topic "libsnapshot_fuzzer_test"
* changes:
  libsnapshot_fuzzer: Properly unmap images
  Reland "libsnapshot_fuzzer: Add tests"
2020-05-18 20:18:07 +00:00
Tom Cherry 73953968fe logd: make liblogd just the core logd functionality
liblogd: LogBuffer classes and their support, LogReaderList and
LogReaderThread
logd: liblogd + the socket code that connects liblogd to liblog and
therefore the world.

The goal here is to test liblogd offline of the socket connections or
the device.

Also, convert libaudit.c -> libaudit.cpp and modernize a bit.

Test: build
Change-Id: If5adf5e775a251d9a703c0583be0988f48017347
2020-05-18 13:03:48 -07:00
Treehugger Robot b2a7ea7df9 Merge "Add fuzzers for libutils classes" am: f3a570b891
Change-Id: Id8078b3b9356b8d64f1596102b1be598171ad4b2
2020-05-18 18:29:11 +00:00
Treehugger Robot 873a84cabd Merge "init_kill_services_test: also reboot after" am: 25a96e44ca
Change-Id: I7e0a3f2a54328227bce20f8f5d523beedfd37cb9
2020-05-18 18:28:53 +00:00
Treehugger Robot f3a570b891 Merge "Add fuzzers for libutils classes" 2020-05-18 17:49:57 +00:00
Treehugger Robot 25a96e44ca Merge "init_kill_services_test: also reboot after" 2020-05-18 17:42:29 +00:00
Treehugger Robot e30bd97fb0 Merge "fastbootd: Support TCP protocol." am: 4222040bd5
Change-Id: Ia03a350df3b352237710d1f5d9e9c860f7efa4af
2020-05-18 17:26:15 +00:00
Treehugger Robot 4222040bd5 Merge "fastbootd: Support TCP protocol." 2020-05-18 17:05:43 +00:00
Tom Cherry 6026d7b8df Merge "logd: don't use libcutils properties" am: e82dcdcdf0
Change-Id: Ie3d958ad666449865896c7cf3b21f913b5963fec
2020-05-18 15:53:00 +00:00
Tom Cherry 70ed426169 Merge "logd: remove class LogCommand, rename LogCommand.cpp to LogPermissions.cpp" am: 00d490e0fa
Change-Id: I7b9f9cd73fd1dd4e85fa1678c852bd05eb132b90
2020-05-18 15:52:48 +00:00
Tom Cherry e82dcdcdf0 Merge "logd: don't use libcutils properties" 2020-05-18 15:37:03 +00:00
Tom Cherry 00d490e0fa Merge "logd: remove class LogCommand, rename LogCommand.cpp to LogPermissions.cpp" 2020-05-18 15:36:55 +00:00
Treehugger Robot 5d439ee439 Merge "init: support wait timeout with more precision" am: fba5028d56
Change-Id: If84d2ba22b5b8b14fbaeeb53903f572235a177be
2020-05-18 13:30:31 +00:00
Treehugger Robot fba5028d56 Merge "init: support wait timeout with more precision" 2020-05-18 13:14:36 +00:00
Treehugger Robot 48820ea719 Merge "add API to get hash descriptor" am: cc20ae7733
Change-Id: I20698a52515c5298b88a23cdd932f252a8341c6d
2020-05-18 07:15:34 +00:00
Treehugger Robot cc20ae7733 Merge "add API to get hash descriptor" 2020-05-18 07:02:12 +00:00
Jiyong Park 1bbda75329 Merge "Set apex_available property" am: 747eb1a6b7
Change-Id: I136a937dd66191966450d3fa36a372ebb1850372
2020-05-18 06:03:43 +00:00
Jiyong Park 747eb1a6b7 Merge "Set apex_available property" 2020-05-18 05:46:22 +00:00
Jiyong Park 16a932a4ef Set apex_available property
The marked library(ies) were available to the APEXes via the
hand-written whitelist in build/soong/apex/apex.go. Trying to remove the
whitelist by adding apex_available property to the Android.bp of the
libraries.

Exempt-From-Owner-Approval: cherry-pick from internal

Bug: 150999716
Test: m
Merged-In: I54db09314c7236a227f04281a439c1d5dc56ef2c
Change-Id: I54db09314c7236a227f04281a439c1d5dc56ef2c
(cherry picked from commit a2606921b2)
2020-05-18 13:30:25 +09:00
Jooyung Han 46b2c1a386 Merge "backtrace: Set min_sdk_version" am: 6ee70c0dd3
Change-Id: Idfc2b28eaf8bfbe6da66d91ff8677e732570913a
2020-05-18 03:54:04 +00:00
Jooyung Han 6ee70c0dd3 Merge "backtrace: Set min_sdk_version" 2020-05-18 03:35:19 +00:00
Steve Muckle a90bfdd874 add API to get hash descriptor
The GKI verification VTS test will need to examine the boot partition's
hash descriptor, so add support to access this descriptor.

Bug: 148800209
Test: atest AvbTest#Boot
Change-Id: I92e32f61a265671ae0940c44147391f73776e66a
2020-05-17 17:06:59 -07:00
Treehugger Robot 362543a898 Merge "Remove /default.prop" am: f464e6e0ac
Change-Id: I400171b99269e7ac48c96d06d3dbc3f866c48aaa
2020-05-16 08:54:00 +00:00
Treehugger Robot f464e6e0ac Merge "Remove /default.prop" 2020-05-16 08:39:56 +00:00