Commit graph

56678 commits

Author SHA1 Message Date
Treehugger Robot
5dbd893784 Merge "fix some liblp file access for win32" 2020-03-05 03:01:41 +00:00
Peter Collingbourne
017a0acdca Merge "Create a ProcessInfo structure with the process-wide information from the crasher." 2020-03-05 01:25:14 +00:00
Haoran.Wang
f7d1a07952 fix some liblp file access for win32
The file accessing API in liblp don't work on win32. Add the O_BINARY
to correct the file stream access.
This patch follow the AOSP change 829979.

Change-Id: I97180e2f07cacf109a86593b6a12975597552053
Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
2020-03-05 08:34:52 +08:00
Automerger Merge Worker
e5e921b20a Merge "Refine the exported DSU status" am: 14ce87c7da
Change-Id: Ia92dfa7617cd0f921a8f307e86931510bfefc2a8
2020-03-04 09:34:58 +00:00
Howard Chen
14ce87c7da Merge "Refine the exported DSU status" 2020-03-04 09:16:47 +00:00
Automerger Merge Worker
0545b24520 Merge "snapshotctl: init reports merge statistics" am: 81f46d954b
Change-Id: I8a37c9888292d9fa7a386d81e449e87b71ea9bb9
2020-03-03 21:22:00 +00:00
Automerger Merge Worker
2a8ffdaa2e Merge "snapshotctl: send snapshot merge report metrics" am: 4d3857512a
Change-Id: Ieab97b84d894e4e3a304a9a506e9a448cc0fdf0e
2020-03-03 21:21:58 +00:00
Treehugger Robot
81f46d954b Merge "snapshotctl: init reports merge statistics" 2020-03-03 21:06:10 +00:00
Treehugger Robot
4d3857512a Merge "snapshotctl: send snapshot merge report metrics" 2020-03-03 21:06:10 +00:00
Alessio Balsini
a296f20f4f snapshotctl: init reports merge statistics
Enable the --report flag in init rc script to collect and send snapshot
merge statistics after OTA.

Bug: 138817833
Test: statsd_testdrive
Change-Id: Ie32a2c6d7d1671ca2b1846c6a8d33cea2ab22a4c
Signed-off-by: Alessio Balsini <balsini@google.com>
2020-03-03 11:47:39 -08:00
Automerger Merge Worker
51230e4acf Merge "fastbootd: use FastbootDevice::GetCurrentSlot to get current slot suffix" am: 220b6ebd05
Change-Id: I498a98bc3e2d3c2b0bbba70763bcf9bd1d489704
2020-03-03 12:20:41 +00:00
Treehugger Robot
220b6ebd05 Merge "fastbootd: use FastbootDevice::GetCurrentSlot to get current slot suffix" 2020-03-03 12:03:38 +00:00
Automerger Merge Worker
025b239f1e Merge changes Ic2af40b8,I9c8cfebe am: 824f0095b0
Change-Id: I239af47affe95ebbf3f019e579cbe050e1d5766d
2020-03-03 06:38:55 +00:00
Treehugger Robot
824f0095b0 Merge changes Ic2af40b8,I9c8cfebe
* changes:
  Reland "adb: turn CHECKs into an error + transport restart."
  Reland "adb: daemon: Assign valid fd to usb_handle ep0 file descriptor"
2020-03-03 06:29:55 +00:00
Automerger Merge Worker
670c58dbd8 Merge "Disable AdbPairingConnectionTest#MultipleClientsOnePass." am: 49d4dd23ca
Change-Id: I2a8a1dc3bbe26c5a88df8259c215bde32b39868a
2020-03-03 00:47:39 +00:00
Automerger Merge Worker
115af190e2 Merge "fs_mgr: remain elapsed time of fsck in prop" am: 5d4855680d
Change-Id: I057410e062f702c8543e5c9ca9f02c926d80c023
2020-03-03 00:47:32 +00:00
Joshua Duong
49d4dd23ca Merge "Disable AdbPairingConnectionTest#MultipleClientsOnePass." 2020-03-03 00:36:22 +00:00
Jaegeuk Kim
5d4855680d Merge "fs_mgr: remain elapsed time of fsck in prop" 2020-03-03 00:33:49 +00:00
Josh Gao
7b3048446d Reland "adb: turn CHECKs into an error + transport restart."
This reverts commit 2547f740ea.

Bug: http://b/134695864
Bug: http://b/133872605
Test: manually unplugged/replugged
Change-Id: Ic2af40b81354138a7842eb93aacc303885ac952e
2020-03-02 13:55:04 -08:00
Josh Gao
bfe3dac36d Reland "adb: daemon: Assign valid fd to usb_handle ep0 file descriptor"
This reverts commit ba4684c2b2.

Bug: http://b/129283234
Test: manually unplugged/replugged
Change-Id: I9c8cfebe09b2855cab986068273a835a13247b77
2020-03-02 13:45:52 -08:00
Hridya Valsaraju
45719a8f07 fastbootd: use FastbootDevice::GetCurrentSlot to get current slot suffix
Using FastbootDevice::GetCurrentSlot to get the current slot suffix
instead of reading the same from the device's boot control HAL
is required to account for the prior set_active commands issued via
fastbootd in the same boot.

Test: fuzzy_fastboot
--gtest_filter=Conformance.Slots:Conformance.SetActive --gtest_repeat=10
Bug: 146589281

Change-Id: I2edb0f024d93c2483659623423ef5c69c717c7af
2020-03-02 13:14:11 -08:00
Joshua Duong
2e1ee8ee51 Disable AdbPairingConnectionTest#MultipleClientsOnePass.
Will re-enable once flaky failure is fixed.

Bug: 150529485
Bug: 150388912

Test: atest adb_pairing_connection_test doesn't run above test.
Change-Id: I63ac3fc2fd2d289b977dd3b9f6eccfb65866769c
2020-03-02 12:56:59 -08:00
Automerger Merge Worker
7ca2c0ddf2 Merge "fsck.f2fs: enable cache" am: 6576db1d1c
Change-Id: I8e79b35a9a3bc7dd7565319998b1746e591938af
2020-03-02 19:32:53 +00:00
Treehugger Robot
6576db1d1c Merge "fsck.f2fs: enable cache" 2020-03-02 19:18:27 +00:00
Jaegeuk Kim
c461e16d05 fsck.f2fs: enable cache
Bug: 149418646
Bug: 149844577
Bug: 111241572
Bug: 134988435
Change-Id: I8f5a9701442302339f7b5880133a960e89114b55
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2020-03-02 09:18:53 -08:00
Automerger Merge Worker
f53cca4d26 Merge "Observe new apexd status value of "activated" as required." am: 2f11663fc9
Change-Id: I9d279cc422fcae2bf8828081d7304de10baf9832
2020-03-02 10:33:47 +00:00
Oli Lan
2f11663fc9 Merge "Observe new apexd status value of "activated" as required." 2020-03-02 10:24:21 +00:00
Automerger Merge Worker
aebe5f91b0 Merge "Fix missing Result::ok() call in init" am: 8d144f6612
Change-Id: I37ecbf07fe122fa4998f3cb174e96e49b94f5181
2020-03-01 15:24:03 +00:00
Bernie Innocenti
8d144f6612 Merge "Fix missing Result::ok() call in init" 2020-03-01 15:14:39 +00:00
Automerger Merge Worker
ea7af90e3e Merge "Mark updatable APEXes" am: ab8a7e35ec
Change-Id: Iaa4dba96e1ad565094c054d6d35b2e6b845d3c09
2020-03-01 00:41:22 +00:00
Jiyong Park
ab8a7e35ec Merge "Mark updatable APEXes" 2020-03-01 00:39:18 +00:00
Automerger Merge Worker
def80b3e9d Merge changes from topic "userspace-reboot-bootstrap-namespace" am: 3efe4c37ea
Change-Id: I3d9b641eb81a2ceb247a543fc02ed01003d4474f
2020-02-29 13:13:59 +00:00
Nikita Ioffe
3efe4c37ea Merge changes from topic "userspace-reboot-bootstrap-namespace"
* changes:
  Stop & Resume property service when switching to bootstrap namespace
  Reset post_data_ and services_update_finished_ on userspace reboot
2020-02-29 13:04:17 +00:00
Automerger Merge Worker
e149e6a7b8 Merge changes Ie4313c7a,I0f40b1f2 am: dc4585cbfa
Change-Id: I2679a03e8f3364c7f0bc517026db9145575a9e47
2020-02-29 06:11:34 +00:00
David Anderson
dc4585cbfa Merge changes Ie4313c7a,I0f40b1f2
* changes:
  snapshotctl: Not necessary to link to libdm.
  libdm: Make static std::string inline for DmTargetDefaultKey.
2020-02-29 05:58:08 +00:00
Bernie Innocenti
50dfcb02c8 Fix missing Result::ok() call in init
Test: m init
Change-Id: Ifc11f856704e6f8d08764b6ba2876423992fb8c2
2020-02-29 05:57:04 +00:00
Peter Collingbourne
843f7e645d Create a ProcessInfo structure with the process-wide information from the crasher.
We're now passing around a couple of addresses for GWP-ASan in addition
to abort_msg_address and fdsan_table_address, and I'm going to need to add
more of them for MTE. Move them into a data structure in order to simplify
various function signatures.

Bug: 135772972
Change-Id: Ie01e1bd93a9ab64f21865f56574696825a6a125f
2020-02-28 19:12:19 -08:00
Automerger Merge Worker
a9dc5bd711 Merge "Remove pairing_auth, pairing_connection from recovery." am: ad9d034e7d
Change-Id: I35ffbb402b920fd219898b08f0c0c331450812d6
2020-02-29 01:08:45 +00:00
David Anderson
478e1c191c snapshotctl: Not necessary to link to libdm.
The symbols are provided by libfs_mgr_binder.

Bug: 149942628
Test: snapshotctl builds
Change-Id: Ie4313c7add5c71bb9614a4d97eec41329425f23d
2020-02-28 17:04:36 -08:00
David Anderson
1a17e18f17 libdm: Make static std::string inline for DmTargetDefaultKey.
Bug: 149942628
Test: snapshotctl w/ ASAN build
Change-Id: I0f40b1f29e46bc9afaf19d8c21d62280e2c01074
2020-02-28 17:04:36 -08:00
Jaegeuk Kim
24d2a296bf fs_mgr: remain elapsed time of fsck in prop
Bug: 149595111
Bug: 149844577
Bug: 138909685
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I8f11ca2680558dc54efd6788ee0dd56e5d65a356
2020-02-28 17:00:22 -08:00
Joshua Duong
ad9d034e7d Merge "Remove pairing_auth, pairing_connection from recovery." 2020-02-29 00:47:44 +00:00
Automerger Merge Worker
d9bc96443f Merge changes Ib97acc6d,Id5bbfd6d,I4dfc3f52 am: 14c65f6fb6
Change-Id: I696a7447d2c073904b77240b62fcaff24f0c9433
2020-02-28 23:39:33 +00:00
Josh Gao
14c65f6fb6 Merge changes Ib97acc6d,Id5bbfd6d,I4dfc3f52
* changes:
  adbd: add runtime-configurable logging.
  adbd: add usb thread spawn logging.
  base: add CachedProperty.
2020-02-28 23:17:49 +00:00
Automerger Merge Worker
f2f69268b5 Merge "libsystem/libsync: Update OWNERS" am: e7e778bdef
Change-Id: I7d97838a143f457095edaaefafc5255c54a4e054
2020-02-28 21:09:39 +00:00
Josh Gao
52d0b67f19 adbd: add runtime-configurable logging.
Add some requested logging options that can be turned on at runtime
without having to restart adbd.

Bug: http://b/141959374
Test: manual
Change-Id: Ib97acc6d199e0b91238a6758e18b7cb75f8688d9
2020-02-28 12:58:42 -08:00
Treehugger Robot
e7e778bdef Merge "libsystem/libsync: Update OWNERS" 2020-02-28 20:53:41 +00:00
Joshua Duong
0f53d1794a Remove pairing_auth, pairing_connection from recovery.
Also remove statically linking libc++, because these libraries are not
exported native shared libraries.

We are slightly over the 12MB limit for ramdisk recovery size, so let's
remove the adb pairing libraries, since they won't be used in recovery
mode.

These are only used in normal boot mode, and currently, only by adb
client. The pairing server is used by system server.

Bug: 150317254

Test: Check size of ramdisk-recovery.img in walleye, walleye-hwasam
build to be under 12MB. Also verify installed-files-recovery.txt no
longer contains libadb_pairing*.
Also put phone into recovery mode, check system/lib64 for no
libadb_pairing*.

Change-Id: Ida7c4fdc9dda2b09091b853feac8df8f125e4274
Merged-In: Ida7c4fdc9dda2b09091b853feac8df8f125e4274
(cherry picked from commit afc2cf0dec)
Exempt-From-Owner-Approval: cherry-pick
2020-02-28 20:45:43 +00:00
Marissa Wall
8cb4c488c5 libsystem/libsync: Update OWNERS
marissaw@ is leaving Android.

Test: Compiles
Bug: 150462113
Change-Id: I63334466cc1b429c16f0011dcf4b43aa92324a6c
2020-02-28 10:50:50 -08:00
Alessio Balsini
5b210b0a6c snapshotctl: send snapshot merge report metrics
Add the --report flag to spshotctl to submit Android metrics on the final state
of the snapshot merge operation, the duration if the merge is completed in a
single session, or the number of reboots that happened before completing the
merge.

Bug: 138817833
Bug: 148138124
Test: m + OTA + statsd_testdrive
Change-Id: Id657f33963bb9926553fa6eeb1721a5229f11e87
Signed-off-by: Alessio Balsini <balsini@google.com>
Merged-In: Id657f33963bb9926553fa6eeb1721a5229f11e87
2020-02-28 10:46:07 -08:00