Commit Graph

68730 Commits

Author SHA1 Message Date
Treehugger Robot a40d51ad32 Merge "fastboot driver: add virtual dtor to ImageSource." am: 4f898d4e33
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1645934

Change-Id: I3400cb20aca9408667e5a88b79b9d4199e093a50
2021-03-24 00:30:45 +00:00
Treehugger Robot 4f898d4e33 Merge "fastboot driver: add virtual dtor to ImageSource." 2021-03-24 00:10:31 +00:00
Hridya Valsaraju b3ebe7cd10 Add legacy-align parameter to DmabufHeapAlloc()
The parameter is intended to make the API backwards compatible with
legacy ION devices. It will be ignored for devices that support DMA-BUF
heaps.

Test: build
Bug: 154310076
Change-Id: Ic5b49269283caa7d05d9468f8ed7f02e1b3c1f1e
Merged-In: Ic5b49269283caa7d05d9468f8ed7f02e1b3c1f1e
2021-03-23 16:51:40 -07:00
David Srbecky 847b2a371f Adjust libunwindstack MapInfo API
Test: m debuggerd_test
Change-Id: I63a2379bad3ace4755ae48bf0a83eaa0070f9077
2021-03-23 23:20:37 +00:00
Treehugger Robot 669af0aa1e Merge "Populate more emulator properties to `ro.boot.`" am: 5d5e16db57
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1624567

Change-Id: I702f66ecf9fdbb2393f639bedc983763ce01b65e
2021-03-23 19:53:29 +00:00
Treehugger Robot 5d5e16db57 Merge "Populate more emulator properties to `ro.boot.`" 2021-03-23 19:09:29 +00:00
Yifan Hong c8715002ab fastboot driver: ftrucate64->ftruncate.
Also, -D_FILE_OFFSET_BITS=64 so that off_t is always
64 bits.

This fixes mac build.

Test: forrest

Change-Id: I584e136a5f3ca9874fd5364cc4c93f8b1e8feb19
2021-03-23 11:14:22 -07:00
Mathew Inwood a60a0027ff Merge "Set /system/xbin permissions to 750." am: 9a74174efe
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1403669

Change-Id: I6f6503badec93ecd1652b6fb3890d513231c77c2
2021-03-23 11:47:09 +00:00
Mathew Inwood 9a74174efe Merge "Set /system/xbin permissions to 750." 2021-03-23 11:25:21 +00:00
satayev 45b9ab2f77 Merge "Revert^2 "Exec_start derive_classpath on post-fs-data."" am: baf2168da7
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1645674

Change-Id: I581d74f91f76ebb0773211c82583b24147206dcb
2021-03-23 10:32:44 +00:00
satayev baf2168da7 Merge "Revert^2 "Exec_start derive_classpath on post-fs-data."" 2021-03-23 10:10:00 +00:00
Treehugger Robot fddb2e3b98 Merge "Do not populate `ro.kernel.qemu` in `ProcessKernelCmdline`" am: e37b6f4f67
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1649687

Change-Id: I0e28d698dc4afe168503d6e52282ba1ac010ed40
2021-03-23 10:05:08 +00:00
Treehugger Robot e37b6f4f67 Merge "Do not populate `ro.kernel.qemu` in `ProcessKernelCmdline`" 2021-03-23 09:08:33 +00:00
Treehugger Robot b72da0a270 Merge "fastboot device: Disallow implicit conversion from unique_fd to int." am: 2af0504896
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1649753

Change-Id: I8045784bd2781f2d483a12467275770650cacf9a
2021-03-23 08:48:33 +00:00
Treehugger Robot 39c2816ab0 Merge "fastboot driver: Disallow implicit conversion from unique_fd to int." am: 981f79be3c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1649706

Change-Id: Ic141b5e50fba26cbe62619cfe6c812fbf8d154b4
2021-03-23 08:43:29 +00:00
Josh Gao b73f119916 Merge "libdebuggerd: store process uptime." am: 777148f9f2
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1612831

Change-Id: Id528d670490e4a4529717b7285bad6795c1ee317
2021-03-23 08:41:58 +00:00
Treehugger Robot 2af0504896 Merge "fastboot device: Disallow implicit conversion from unique_fd to int." 2021-03-23 06:48:02 +00:00
Treehugger Robot 981f79be3c Merge "fastboot driver: Disallow implicit conversion from unique_fd to int." 2021-03-23 06:47:52 +00:00
Josh Gao 777148f9f2 Merge "libdebuggerd: store process uptime." 2021-03-23 06:46:05 +00:00
Treehugger Robot 0f517e8d96 Merge "fastboot driver: Fix fd ownership." am: 15acff029f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1649705

Change-Id: I21a4210e4f7a84483b3f9a67d34a1bd5fd762c4f
2021-03-23 05:51:07 +00:00
Treehugger Robot 93defdc30e Merge "[LSC] Add LOCAL_LICENSE_KINDS to system/core" am: ddd5cf24dc
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1650111

Change-Id: Ie8d12024ce7264a583950f1de8a1d685a186d8bd
2021-03-23 05:50:48 +00:00
Treehugger Robot 15acff029f Merge "fastboot driver: Fix fd ownership." 2021-03-23 05:33:20 +00:00
Treehugger Robot ddd5cf24dc Merge "[LSC] Add LOCAL_LICENSE_KINDS to system/core" 2021-03-23 04:56:10 +00:00
Treehugger Robot 123c4148ca Merge "Add CLI entry point for map/unmap snapshot partitions" am: c0f3f0cee8
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1648827

Change-Id: Ib806976dfaf8bad831784ac70ffd33d6dbca9090
2021-03-23 03:52:25 +00:00
Treehugger Robot c0f3f0cee8 Merge "Add CLI entry point for map/unmap snapshot partitions" 2021-03-23 03:25:25 +00:00
Yifan Hong 07e947fc5d fastboot device: Disallow implicit conversion from unique_fd to int.
Do not use the implicit cast from unique_fd to int so
that it is clearer to the reader what the ownership model
is.

Test: pass
Change-Id: I66563eb2bd06f6a712a5afd4c6009f9b25a55de6
2021-03-22 19:30:59 -07:00
Yifan Hong 58532dfacd fastboot driver: Disallow implicit conversion from unique_fd to int.
Do not use the implicit cast from unique_fd to int so
that it is clearer to the reader what the ownership model
is.

Test: pass
Change-Id: Iaf40a6eed3fcfd001651980c865ed5efb85ac0eb
2021-03-22 19:30:59 -07:00
Yifan Hong e9f067b4eb fastboot driver: Fix fd ownership.
load_sparse_files assumes that the client maintains
the lifetime of the input fd is longer than
the output sparse_file handle.

Bug: 183409401
Bug: 183223098
Test: flash super image
Change-Id: I295b912c665577b5767a133f3148e58a22733998
2021-03-22 19:30:59 -07:00
Bob Badour 559488ce17 [LSC] Add LOCAL_LICENSE_KINDS to system/core
Added SPDX-license-identifier-Apache-2.0 to:
  fastboot/testdata/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I32847c8706facb4fe46ea8d4d6089a629cee2321
2021-03-22 19:02:03 -07:00
Josh Gao 552f3b4b9c Copy vendor.sys.usb.adb.enabled to sys.usb.adb.enabled.
Bug: http://b/182088146
Test: manual
Change-Id: Ic20dd05813d834ad077f241929030f69906bf0bf
2021-03-22 16:36:17 -07:00
Roman Kiryanov 4ddfd023cc Populate more emulator properties to `ro.boot.`
ro.boot.config.low_ram
ro.boot.dalvik.vm.heapsize
ro.boot.debug.hwui.renderer
ro.boot.debug.stagefright.ccodec
ro.boot.opengles.version

Bug: 182291166
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I4d7ee19feb13a418a95f31be7534df98dfaeb3e3
2021-03-22 14:34:36 -07:00
Roman Kiryanov 94ce40a527 Do not populate `ro.kernel.qemu` in `ProcessKernelCmdline`
The emulator migrated to `ro.boot.qemu`.

Bug: 182291166
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: Iaa3bdff5cc1efa79c21ae2dc2bdf7ec74731f66c
2021-03-22 14:18:44 -07:00
Michael Rosenfeld 2b17138b61 Merge "Add a system property to init that drops caches." am: 12744bd2ad
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1584525

Change-Id: I1d5d33a8fdce6e69ee0de0304fce38db40144e58
2021-03-22 18:56:59 +00:00
Kelvin Zhang a406c7e2a9 Add CLI entry point for map/unmap snapshot partitions
Test: apply OTA && snapshotctl map

Change-Id: I4d50a70f9b330e313034c6057d574f985d242475
2021-03-22 13:43:14 -04:00
Michael Rosenfeld 12744bd2ad Merge "Add a system property to init that drops caches." 2021-03-22 16:04:32 +00:00
Peter Collingbourne 80e76de594 Merge "Support MTE and GWP-ASan features in proto tombstones." am: f4a40c0edd
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1627339

Change-Id: I1c7d30b1638bf3e147b9346cd47513c4510243b7
2021-03-20 00:26:06 +00:00
Peter Collingbourne cadabd2c35 Merge "[GWP-ASan] Add debuggerd end-to-end tests and remove unique wording." am: d0f5eb5716
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1625202

Change-Id: I26716f87d4425579082a5859d28ba865c5f9f1ba
2021-03-20 00:25:55 +00:00
Peter Collingbourne f4a40c0edd Merge "Support MTE and GWP-ASan features in proto tombstones." 2021-03-19 23:42:23 +00:00
Peter Collingbourne d0f5eb5716 Merge "[GWP-ASan] Add debuggerd end-to-end tests and remove unique wording." 2021-03-19 23:42:23 +00:00
Treehugger Robot 7ed64c91ac Merge "Keystore 2.0: Remove references to Keystore 1.0" am: 9ca59c387f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1625482

Change-Id: Ib41d3f4442a2eae4461d1d40a0f4d4d4804ea155
2021-03-19 20:54:13 +00:00
Treehugger Robot 9ca59c387f Merge "Keystore 2.0: Remove references to Keystore 1.0" 2021-03-19 20:24:59 +00:00
Treehugger Robot 4dc1943790 Merge "fastboot driver: Avoid use after std::move()" am: a9c8111ce6
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1645928

Change-Id: I1bed0b451d866b9e8b77a8b9ac5b964fcc317111
2021-03-19 19:36:03 +00:00
Treehugger Robot a9c8111ce6 Merge "fastboot driver: Avoid use after std::move()" 2021-03-19 19:02:48 +00:00
Yifan Hong d2e8cb5556 fastboot driver: add virtual dtor to ImageSource.
Test: Treehugger
Change-Id: Ia91d6d344186a07d90e3983c153d8170859eed5b
2021-03-19 11:46:48 -07:00
Michael Rosenfeld e853d37efd Add a system property to init that drops caches.
*   Users can't call /proc/sys/vm/drop_caches otherwise.
*   Requires change with associated SELinux permissions.

Bug: 178647679
Test: flashed user build and dropped caches; no avc denials.
Test: flashed userdebug build and dropped caches w/o root.
Change-Id: Ibc91991509f0902d1c04c958fefc0966233f0b2e
2021-03-19 10:30:01 -07:00
Akilesh Kailash 64bdd85cc8 Merge "libsnapshot:snapuserd: Cut down memory usage" am: 5338d0b27a
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1644826

Change-Id: Ie4909290894e3a620e3373f2b54e5987a6369141
2021-03-19 17:03:36 +00:00
Akilesh Kailash 5338d0b27a Merge "libsnapshot:snapuserd: Cut down memory usage" 2021-03-19 16:30:26 +00:00
Greg Kaiser f4c6ce4a10 fastboot driver: Avoid use after std::move()
Test: TreeHugger
Change-Id: I2857f6d6384c8c80809f21202dbbbfc9ed71beeb
2021-03-19 09:10:18 -07:00
satayev 52cc896997 Revert^2 "Exec_start derive_classpath on post-fs-data."
9ebc6085da

Bug: 180105615
Test: manual boot of cuttlefish and gphone emulator
Change-Id: I299df6b29194fdf41fdcb2c1f59f65241b519c8d
2021-03-19 11:21:07 +00:00
Martijn Coenen e6186ea292 Merge "Support asynchronous odsign." am: 5463f859b3
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1641659

Change-Id: Iea0eee7529a77f450217a064a1348b033a7ca3ca
2021-03-19 11:07:19 +00:00