Commit graph

89860 commits

Author SHA1 Message Date
Akilesh Kailash
f46889dc60 Merge "create_snapshot: Build the binary as static" into main am: c398bfd879
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3100189

Change-Id: I471ddfd481fc5b7e5fec61f375f6f94eb3fa48ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-25 06:18:28 +00:00
Akilesh Kailash
c398bfd879 Merge "create_snapshot: Build the binary as static" into main 2024-05-25 06:01:33 +00:00
Akilesh Kailash
81f1da48bc create_snapshot: Build the binary as static
Build it statically so that it gets easy to be deployed
in lab host without additional shared dependency.

Bug: 342328623
Test: Build create_snapshot; ldd create_snapshot
Change-Id: Ie788ba34bfff38cf78f29ad41d912dcad3bf77de
Signed-off-by: Akilesh Kailash <akailash@google.com>
2024-05-25 03:47:52 +00:00
Android Build Coastguard Worker
7cde84dc36 Snap for 11889377 from 577261cf25 to 24Q3-release
Change-Id: I3e1d339ff25e74460ce6b12739578ab1517cc6ee
2024-05-25 03:24:20 +00:00
Sijie Chen
577261cf25 Merge "[Berberis][CrashReporting] Add riscv case for thread local retrieve" into main am: f11349ef4d am: 61749a123e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3097682

Change-Id: I3720c900399219f2cc62914c73c7160a3e10637f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 19:25:34 +00:00
Sijie Chen
61749a123e Merge "[Berberis][CrashReporting] Add riscv case for thread local retrieve" into main am: f11349ef4d
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3097682

Change-Id: I29caab646074e2fd3cd0c34af9f026065e56b0dc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 19:08:31 +00:00
Sijie Chen
f11349ef4d Merge "[Berberis][CrashReporting] Add riscv case for thread local retrieve" into main 2024-05-24 18:50:43 +00:00
Peter Collingbourne
a4170b93d5 Merge "Remove fs_config lines for /data/*test*." into main am: 694712b5d8 am: 1e4cf5be94
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3102279

Change-Id: I80bcff199decd29b1c38c98fb7eeca26e55d0550
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 18:07:49 +00:00
Peter Collingbourne
1e4cf5be94 Merge "Remove fs_config lines for /data/*test*." into main am: 694712b5d8
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3102279

Change-Id: I3a05e7a4d58bba60ca720e0364c8383c7b3273e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 17:56:10 +00:00
Peter Collingbourne
694712b5d8 Merge "Remove fs_config lines for /data/*test*." into main 2024-05-24 17:45:56 +00:00
Bart Van Assche
e15076520a Merge "Make more DeviceHandler member functions private" into main am: 7bbb008d57 am: 112d0b11f5
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3101419

Change-Id: I73aec71a374245c5a2bbea97c8dd8fdfe14aeb1d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 16:37:58 +00:00
Bart Van Assche
262f1e8096 Create the /dev/sys/block/by-name/zoned_device symbolic link
This link will be used to change the sysfs attributes of the zoned block
device from an .rc file.

Bug: 335708738
Change-Id: I99f74c121e7d9da404c0564860c03ac1efe6c6d8
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
2024-05-24 09:36:46 -07:00
Bart Van Assche
112d0b11f5 Merge "Make more DeviceHandler member functions private" into main am: 7bbb008d57
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3101419

Change-Id: I7e1cbcba91c7608704890a2a0f2d6092a8b7ef27
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 16:21:17 +00:00
Bart Van Assche
7bbb008d57 Merge "Make more DeviceHandler member functions private" into main 2024-05-24 16:03:35 +00:00
Yi Kong
45a32494de Merge "Fix build with ToT libc++" into main am: c0305b145f am: 7c74d6ca60
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3100441

Change-Id: I1e25f6d58c597f42886a884bfe9b41a92e22ef16
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 01:51:45 +00:00
Yi Kong
7c74d6ca60 Merge "Fix build with ToT libc++" into main am: c0305b145f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3100441

Change-Id: I9be076510a08abdd42cd0fcfc9e25434382f4aa0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 01:26:05 +00:00
Kiyoung Kim
09c36ff479 Merge "Move sanitizer.libraries.txt definition into Soong" into main am: d301af07bf am: 3e6d7d3e57
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3074124

Change-Id: I03391a4363315a69161fd9c403ea28de6cda3491
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 01:16:46 +00:00
Yi Kong
c0305b145f Merge "Fix build with ToT libc++" into main 2024-05-24 01:04:47 +00:00
Kiyoung Kim
3e6d7d3e57 Merge "Move sanitizer.libraries.txt definition into Soong" into main am: d301af07bf
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3074124

Change-Id: I0d1466a9bc6a4c3b28f468001407b751cb684f24
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-24 00:57:38 +00:00
Kiyoung Kim
d301af07bf Merge "Move sanitizer.libraries.txt definition into Soong" into main 2024-05-24 00:39:00 +00:00
Android Build Coastguard Worker
1fe3de7f38 Snap for 11881322 from f0b9f0b6f4 to 24Q3-release
Change-Id: I6ac3618f6232dd8383e763a4ca44e601dffa3507
2024-05-23 23:24:06 +00:00
Daniel Zheng
43b2abf797 libsnapshot: set num merge threads
Read number of merge threads from build. In the case that this isn't
specified, fallback to our default.

**THIS doesn't seem to be currently working. It looks like we can't
directly read the property here?

Test: th
Change-Id: I115b6b987699759168d34239d030cfcd0238b1b4
2024-05-23 15:22:48 -07:00
Daniel Zheng
09e081f98e snapshot_proto add build configuration variables
We are adding low memory device configurables. Post OTA reboot, these
values need to be read during 1st stage init and set. Since .ro props
aren't available at this stage, we need to flush these configurables to
snapshot_protos that lives under /Metadata

Bug: 332255580
Test: th
Change-Id: Iff84c0dfe9c6931ea13165b380e11cee6343ce91
2024-05-23 14:31:05 -07:00
Daniel Zheng
6c0800fbbd update supported compression methods
Test: th
Change-Id: Ice13f58e6d29b8f28a4d43a86fb59e91ae9e9dde
2024-05-23 14:30:38 -07:00
Daniel Zheng
67ea4959a2 libsnapshot: get read_ahead_size from build
In the case that read ahead size is set by the build, we want to read
that property rather than use our default.

Bug: 332255580
Test: th
Change-Id: I5302a9a275d284be6c68edab9e13aae1128eb699
2024-05-23 14:30:37 -07:00
Peter Collingbourne
01edc0939f Remove fs_config lines for /data/*test*.
These lines were originally added to avoid needing to manually chmod
+x files pushed to these directories on the device, but adb push now
automatically copies the x bit from the host for paths without an
fs_config, so they should no longer be necessary.

Bug: 341415989
Change-Id: I83007dfe05de7b86c26373460af1f199a6d21147
2024-05-23 14:26:14 -07:00
Bart Van Assche
254436b3ae Make more DeviceHandler member functions private
Make all member functions private that are not called from outside
DeviceHandlermember functions.

Bug: 335708738
Change-Id: Ibe2e5f6b8b45a79b5be59665627e0a46de4e439a
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
2024-05-23 12:45:40 -07:00
Sijie Chen
75ed08fb0b [Berberis][CrashReporting] Add riscv case for thread local retrieve
As title.

Bug: 339287219
Test: NA
Change-Id: Ia75659330d1203f4f1fbaf019d41cb72c3986cd4
2024-05-23 17:11:47 +00:00
Yi Kong
0e8f64bb50 Fix build with ToT libc++
system/core/fs_mgr/libsnapshot/include/libsnapshot/cow_reader.h:174:33: error: no template named 'vector' in namespace 'std'
  174 |     bool GetSequenceDataV2(std::vector<uint32_t>* merge_op_blocks, std::vector<int>* other_ops,
      |                            ~~~~~^

Test: Build with ToT libc++
Change-Id: I1858b30bd4eb6df39411a60a64d6bf16d2a7bfa6
2024-05-24 00:48:35 +09:00
Kiyoung Kim
f0b9f0b6f4 Merge "Remove VNDK definition(s)" into main am: 110308e5ab am: 100fed0179
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2997418

Change-Id: I3f61e8e0b8242679e4733c15c992a85d9a7466cb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-23 01:06:09 +00:00
Kiyoung Kim
100fed0179 Merge "Remove VNDK definition(s)" into main am: 110308e5ab
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2997418

Change-Id: I6241a5aaf34259c9bb91b9816bdec0bcf8431747
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-23 00:49:28 +00:00
Kiyoung Kim
110308e5ab Merge "Remove VNDK definition(s)" into main 2024-05-23 00:38:19 +00:00
Bart Van Assche
b681a33b50 Merge "init: Use std::string_view instead of std::string where appropriate" into main am: ba1e0bdd6c am: 5fab2df330
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3097899

Change-Id: Ia7fbfda7cbbcdff5bc85deb3a27585d14a8960c3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 23:51:12 +00:00
Bart Van Assche
5fab2df330 Merge "init: Use std::string_view instead of std::string where appropriate" into main am: ba1e0bdd6c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3097899

Change-Id: Icf04ae4e10795809b02c64dbe160e57bf4507bd1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 23:33:19 +00:00
Android Build Coastguard Worker
5684b1e0f4 Snap for 11876238 from cd78675274 to 24Q3-release
Change-Id: Id65ef23cb67808e7306018defb206346f4289a83
2024-05-22 23:25:27 +00:00
Bart Van Assche
ba1e0bdd6c Merge "init: Use std::string_view instead of std::string where appropriate" into main 2024-05-22 23:16:30 +00:00
Bart Van Assche
564d970bd0 init: Use std::string_view instead of std::string where appropriate
Slightly reduce the time that is required to start the init process by
changing two static std::string variables into std::string_view variables.

Change-Id: Ib683a603da5f3d8968b26453b12544fed8a6397f
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2024-05-22 16:14:23 -07:00
Kelvin Zhang
78c65e52a8 Set ro.fstype.data when /data is mounted
Test: th
Bug: 341216848
Change-Id: I8adf12661eeb790bf0beb80409a678d53c2baea5
2024-05-22 10:42:02 -07:00
Dennis Shen
cd78675274 Merge "init.rc: add a new maps dir under /metadata/aconfig dir" into main am: cc6eaae725 am: 1e3a25ca0c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3092366

Change-Id: I769b958202ff1a250a08191c63cbf233d2a1672a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 17:33:23 +00:00
Dennis Shen
1e3a25ca0c Merge "init.rc: add a new maps dir under /metadata/aconfig dir" into main am: cc6eaae725
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3092366

Change-Id: I11fdb025ac88d79b2e0466ae92e8e05bccf5a7f2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 16:57:22 +00:00
Dennis Shen
cc6eaae725 Merge "init.rc: add a new maps dir under /metadata/aconfig dir" into main 2024-05-22 16:35:57 +00:00
Sami Tolvanen
0cd7efda2b Merge "riscv64: increase ASLR randomness for Sv48/57" into main am: f53c4a9d20 am: fb6838e403
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3095551

Change-Id: Ib5a1f894f92ae2a65d04472c5b4a8e5e32fbdfa3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 15:58:28 +00:00
Sami Tolvanen
fb6838e403 Merge "riscv64: increase ASLR randomness for Sv48/57" into main am: f53c4a9d20
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3095551

Change-Id: I8118c2db46abc02a686c6c838050fb19f9241330
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 15:44:33 +00:00
Sami Tolvanen
f53c4a9d20 Merge "riscv64: increase ASLR randomness for Sv48/57" into main 2024-05-22 15:31:05 +00:00
Dennis Shen
230f639275 init.rc: add a new maps dir under /metadata/aconfig dir
Bug: b/312444587
Test: m and avd
Change-Id: Idf19d314b51cc409e58d6a2f2ae1831bfc3d717d
2024-05-22 13:30:26 +00:00
Android Build Coastguard Worker
844f367841 Snap for 11869550 from 5ce89b125b to 24Q3-release
Change-Id: Ib06928d5b72d19528177dbdafc12ffe485dbf7e7
2024-05-21 23:24:30 +00:00
Sami Tolvanen
b87b255540 riscv64: increase ASLR randomness for Sv48/57
Linux 6.9+ supports 33 bits with Sv48 and Sv57. Increase the
maximum and update the comment.

Bug: https://github.com/google/android-riscv64/issues/1
Test: Treehugger
Change-Id: Ia2731143ad30c5febe2058d35a381c01b14d8c3c
2024-05-21 17:33:22 +00:00
Treehugger Robot
afd1b6dab4 Merge "firmware_handler: Print full FW path before loading" into main am: edbddd3097 am: 05e40f54b1
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3027812

Change-Id: I322e23b928ccd069efe4d3b290dfcd2dfdad9ac7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 17:28:28 +00:00
Treehugger Robot
05e40f54b1 Merge "firmware_handler: Print full FW path before loading" into main am: edbddd3097
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3027812

Change-Id: Ia901b2406271dc00afb4071f39d0b091b36c7ed1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 16:34:31 +00:00
Treehugger Robot
edbddd3097 Merge "firmware_handler: Print full FW path before loading" into main 2024-05-21 16:16:02 +00:00