Commit graph

58145 commits

Author SHA1 Message Date
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
Tom Cherry
542c688b0d Merge "logd: remove SocketClient from LogBuffer and LogBufferElement" am: 227dd4f807
Change-Id: I9e9fdaa8b54acba3f2e9d9848c6e3cbbd7d5484f
2020-05-15 19:12:21 +00:00
Tom Cherry
4e9bf955d6 logd: remove class LogCommand, rename LogCommand.cpp to LogPermissions.cpp
class LogCommand isn't needed, so remove it.  Since the rest of
LogCommand.cpp only has to do with permissions, rename it
appropriately.

Test: logging unit tests
Change-Id: I32d09c74d00b6e50083e46832eca3dd886b46682
2020-05-15 11:58:47 -07:00
Tom Cherry
227dd4f807 Merge "logd: remove SocketClient from LogBuffer and LogBufferElement" 2020-05-15 18:45:21 +00:00
Tom Cherry
a8c7f30651 logd: don't use libcutils properties
This is the only non-socket usage of libcutils.

Test: logging unit tests
Change-Id: Ia9877ddb32da4955a818299c109e5c639423a9fd
2020-05-15 10:26:09 -07:00
Neil Fuller
d3a1957f28 Merge "Revert "libsnapshot_fuzzer: Add tests"" am: 75f8236bb9
Change-Id: I04220d5d5158161e13dbfff4d30c726461b93c48
2020-05-15 16:07:09 +00:00
Neil Fuller
75f8236bb9 Merge "Revert "libsnapshot_fuzzer: Add tests"" 2020-05-15 15:49:54 +00:00
Neil Fuller
254b9046f7 Revert "libsnapshot_fuzzer: Add tests"
This reverts commit 51bfe08d84.

Reason for revert: Investigating possible connection to http://b/156689792

Change-Id: Idd779815940e3835bc0b86103ef016141d48ce7f
2020-05-15 10:37:56 +00:00
Treehugger Robot
7a98a642fd Merge "Passing additional flags to incremental installation." am: f947d50395
Change-Id: I0d4bdaabfa252bba51e9df6ce56b65909a445197
2020-05-15 06:06:46 +00:00
Treehugger Robot
f947d50395 Merge "Passing additional flags to incremental installation." 2020-05-15 05:53:14 +00:00
Tom Cherry
283c9a1c00 logd: remove SocketClient from LogBuffer and LogBufferElement
In the future, we'll want to be able to write to outputs that are not
necessarily a libsysutils SocketClient, for example host tests of
LogBuffer.  Therefore, we add a LogWriter class to be used instead of
SocketClient.

Test: logging unit tests
Change-Id: I4385be65e14e83a635691a7ba79e9bf060e49484
2020-05-14 19:53:45 -07:00
Treehugger Robot
2a5c09dbfe Merge "Temporarily disable init_kill_services_test." am: e31d8bf133
Change-Id: Iec949ad9336738d8d9e062b0d816da0a567fa63c
2020-05-15 02:36:02 +00:00
Treehugger Robot
50a558fb4e Merge changes from topic "remove_default_prop" am: a782da9b3e
Change-Id: Icdc97a1e365c0acdb5e320aa87d3bb9afda7c2a0
2020-05-15 02:35:03 +00:00
Jiyong Park
cbdb311d35 /vendor/default.prop is removed. am: 8569552ec2
Change-Id: I9dd205c5dfc0485f482f6240fc74c7fe43d4c8ec
2020-05-15 02:35:00 +00:00
Treehugger Robot
e31d8bf133 Merge "Temporarily disable init_kill_services_test." 2020-05-15 02:34:43 +00:00
Treehugger Robot
a782da9b3e Merge changes from topic "remove_default_prop"
* changes:
  Remove /system/etc/prop.default
  /vendor/default.prop is removed.
2020-05-15 02:12:49 +00:00
Mark Salyzyn
ffa52e9c6f init: support wait timeout with more precision
A one second timeout is so coarse and can affect boot time when
the possibility that the file does not exist.  Switch to accepting
a floating point number for seconds for the wait for file command.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 151950334
Test: wait_for_file sleep 0.05 reports an appropriate delay
Change-Id: I8d8ed386519ab54270b05ce91663d0add30f12e7
2020-05-15 01:18:24 +00:00
Alex Buynytskyy
04aa5bedcc Passing additional flags to incremental installation.
Bug: 150803885
Test: atest adb_test adbd_test fastdeploy_test
Change-Id: Ifa9b9e570259d35eb0121817bbb791044c6efcfd
2020-05-14 13:58:47 -07:00
Yifan Hong
930eb139b7 Merge changes from topic "snapshot_fuzz" am: fa8bf5be4e
Change-Id: I2f6758bd5878edc26a428a48ce16193a637dba60
2020-05-14 20:51:28 +00:00
Yifan Hong
fa8bf5be4e Merge changes from topic "snapshot_fuzz"
* changes:
  libsnapshot_fuzzer: Add tests
  libsnapshot_fuzzer: add initial corpus
  libsnapshot_fuzzer: Attempt to cleanup env before and after
  libsnapshot_fuzzer: add new test directive to switch slot
  libsnapshot_fuzzer: mount data image
  libsnapshot_fuzzer: also create snapshots dir
  libsnapshot_fuzzer: Add ZERO to operation types
2020-05-14 20:41:08 +00:00
Treehugger Robot
e22844007e Merge "init: failed to set sys.usb.controller" am: 7c1c167307
Change-Id: Ic07e38c5bd3dac7404ec4ae742dcafb15c835769
2020-05-14 19:17:17 +00:00
Treehugger Robot
7c1c167307 Merge "init: failed to set sys.usb.controller" 2020-05-14 18:57:31 +00:00
Steven Moreland
bd68757d44 Temporarily disable init_kill_services_test.
This is causing some device instability.

Bug: 156380383
Test: n/A
Change-Id: I2ae34618db94df8fddab262311bd8e383642e10f
2020-05-14 16:58:33 +00:00
Jiyong Park
c688e8fcce Remove /default.prop
The file is removed. init no longer needs to read it.

Bug: 117892318
Test: TH passes on non-Treble devices.
Change-Id: Idc4127bad66db24c7033b47c41b9eb85a5e0a5cd
2020-05-14 17:09:26 +09:00
Jiyong Park
c068d0e0ef Remove /system/etc/prop.default
Contents that were in /system/etc/prop.default are now in
/system/build.prop.

The content is placed at the top of build.prop to keep the existing
order between the two files.

Caveat #1: /prop.default still remains for non-Treble devices.

Caveat #2: ReadFileSymbolicLink test was changed to read /system/bin/ps
because /prop.default is no longer guaranteed to exist.

Bug: 117892318
Test: TH passes
Test: inspect  /system/build.prop and check if it has contents from
the old /system/etc/prop.default file

Change-Id: I0d3f96c1656dfe02bfa0e801680f7fa887afd1d9
2020-05-14 16:19:33 +09:00
Jiyong Park
8569552ec2 /vendor/default.prop is removed.
It is merged to /vendor/build.prop. However, for backwards
compatibility, the old file is read on devices running R or earlier.

Bug: 117892318
Test: TH passes
Test: inspect  /vendor/build.prop and check if it has contents from
the old /vendor/default.prop file
Change-Id: I994cc85fc0765bc9233e9799bcb670a23180f068
2020-05-14 16:19:32 +09:00
Mark Salyzyn
150687b87d init: failed to set sys.usb.controller
With GKI we find in certain situations the timing of the drivers
loading is delayed as compared to a monolithic kernel.  This
introduces a race where during second stage init, the attributes
inside /sys/class/udc/ might not be set by the time
SetUsbController() is called.

To address this, we also call SetUsbController() until the property
sys.usb.controller is set at the bottom of the event loop.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 151950334
Test: make sure user space fastbootd comes up reliably for a GKI kernel
Change-Id: Iececd8ffa3e6641554d215d622d8dab72d85d34d
2020-05-13 17:56:31 -07:00
Christopher Ferris
d6831f57e5 Merge "Add new LocalUpdatableMaps benchmarks." am: 5133bbfd34
Change-Id: I712f9c4ce5cfd0f4693e9645f1a9f935f11725ea
2020-05-14 00:41:39 +00:00
Christopher Ferris
5133bbfd34 Merge "Add new LocalUpdatableMaps benchmarks." 2020-05-14 00:18:27 +00:00
Tom Cherry
01ae2552ea Merge "logd: enable LTO" am: 17e8605bcf
Change-Id: Iec29c3588b0dffe1973bd2841ae8724dc95b866b
2020-05-13 21:03:48 +00:00
Tom Cherry
17e8605bcf Merge "logd: enable LTO" 2020-05-13 20:51:57 +00:00
Nikita Ioffe
0936da291c Merge "Make /data/apex/active world readable" am: ae6cab0406
Change-Id: I52ddb243530a894ebcf3cdceb47dd6a475158ff6
2020-05-13 20:32:25 +00:00
Nikita Ioffe
ae6cab0406 Merge "Make /data/apex/active world readable" 2020-05-13 20:15:12 +00:00