Commit graph

89088 commits

Author SHA1 Message Date
Elliott Hughes
c088de1879 libc++fs is part of libc++ now.
Change-Id: I2be806de736377e77bb49e4b3b9f72e25f7d717a
2024-06-04 16:47:32 +00:00
Nate Myren
cdd4cb7db8 Merge "Revert^2 "Only write appcompat properties if flag is defined"" into main 2024-05-31 01:31:38 +00:00
Treehugger Robot
276eabe757 Merge "Revert^2 "Set ro.fstype.data when /data is mounted"" into main 2024-05-30 21:25:26 +00:00
Kelvin Zhang
915f32d892 Revert^2 "Set ro.fstype.data when /data is mounted"
062eb59a83

Change-Id: I20c4d4c17e4a314eb8754ed9c03db3dd8e3a5d0f
2024-05-30 19:11:11 +00:00
Peter Collingbourne
68cf5b2239 Merge "Add fs_config entry for *.rc files." into main 2024-05-30 00:54:48 +00:00
Priyanka Advani
58a38f4681 Merge "Revert "Set ro.fstype.data when /data is mounted"" into main 2024-05-29 23:58:59 +00:00
Kelvin Zhang
062eb59a83 Revert "Set ro.fstype.data when /data is mounted"
Revert submission 3095293-fstype

Reason for revert: breaks build cf_x86_64_only_phone-next-userdebug

Reverted changes: /q/submissionid:3095293-fstype

Change-Id: I2d1b2561ec7a3d8ea954b375153dce1a936d0294
2024-05-29 23:26:19 +00:00
Peter Collingbourne
49ecca71b5 Add fs_config entry for *.rc files.
Android init will refuse to read files that are world writable. Since
adb push makes files world writable by default, this means that adb
pushed rc files cannot be read by init. Fix it by adding an fs_config
entry for *.rc that sets their permissions to 644 root:root.

Bug: 343370899
Change-Id: If9c4dd4796caae6d177d9fdeef880949e5639648
2024-05-29 14:24:52 -07:00
Treehugger Robot
ac7923211e Merge "Set ro.fstype.data when /data is mounted" into main 2024-05-29 17:49:18 +00:00
Daniel Zheng
0381ebefc4 Merge changes I115b6b98,Iff84c0df,Ice13f58e,I5302a9a2 into main
* changes:
  libsnapshot: set num merge threads
  snapshot_proto add build configuration variables
  update supported compression methods
  libsnapshot: get read_ahead_size from build
2024-05-29 17:29:31 +00:00
Seth Moore
24e39aff4a Merge "Use shared trusty OWNERs file" into main 2024-05-29 15:01:19 +00:00
Treehugger Robot
0b64326377 Merge "init: 'user root' check use vendor API" into main 2024-05-29 13:27:16 +00:00
Steven Moreland
5088e588f7 init: 'user root' check use vendor API
This changes user root to use the year date format
that vendor API uses.

Previously this still applied to V devices, which switched
to using API level 202404 after 35.

They recommend the year/date form, and there is no
constant for this.

Bug: 340953047
Test: service_test
Change-Id: I5ba8d1251c877a785e41f0cfcc35d7cb0776f8c7
2024-05-29 00:05:26 +00:00
Nate Myren
b9e0545c85 Revert^2 "Only write appcompat properties if flag is defined"
This reverts commit 6d8304aa46.

Reason for revert: resubmission

Change-Id: Ifb66efa2b1b7a734302316259690950306af99ec
2024-05-28 23:40:59 +00:00
Seth Moore
b1a58e12dd Use shared trusty OWNERs file
Change-Id: I20f118c39927f56890a37eaa059249db5285e59b
2024-05-28 23:00:10 +00:00
Tomasz Wasilczyk
50095020db Merge "Fix libutils_binder_sdk build warnings" into main 2024-05-28 20:13:03 +00:00
Tomasz Wasilczyk
e028a195d0 Merge "Mark libutils_binder_sdk as snapshot supported" into main 2024-05-28 20:11:34 +00:00
Snehal Koukuntla
82bc07f911 Merge "[Trusty][Metrics] Update struct to add is_crash on the NS side" into main 2024-05-28 17:14:31 +00:00
Tomasz Wasilczyk
0a2a015e39 Fix libutils_binder_sdk build warnings
-Wclass-memaccess
-Winvalid-offsetof
-Wsequence-point
-Wzero-as-null-pointer-constant (turned on in ag/4503295)

Bug: 285204695
Test: m libutils_binder_sdk
Change-Id: I5b988f498cb8e0cf04617a4f7fd41ba9970d321d
2024-05-28 09:51:20 -07:00
Tomasz Wasilczyk
7badb51d22 Mark libutils_binder_sdk as snapshot supported
Bug: 302718225
Test: https://r.android.com/2803466
Change-Id: I3a26e1c4c63e0ed6de896ef31eb56f3a3a6bba01
2024-05-28 09:49:49 -07:00
Bart Van Assche
ba9d7116fb Merge "Create the /dev/sys/block/by-name/zoned_device symbolic link" into main 2024-05-28 13:47:05 +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
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
694712b5d8 Merge "Remove fs_config lines for /data/*test*." into main 2024-05-24 17:45:56 +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
7bbb008d57 Merge "Make more DeviceHandler member functions private" into main 2024-05-24 16:03:35 +00:00
Yi Kong
c0305b145f Merge "Fix build with ToT libc++" into main 2024-05-24 01:04:47 +00:00
Kiyoung Kim
d301af07bf Merge "Move sanitizer.libraries.txt definition into Soong" into main 2024-05-24 00:39:00 +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
110308e5ab Merge "Remove VNDK definition(s)" into main 2024-05-23 00:38:19 +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
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
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
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
edbddd3097 Merge "firmware_handler: Print full FW path before loading" into main 2024-05-21 16:16:02 +00:00
Treehugger Robot
0d8a598b40 Merge "init: delay 'user root' test to W+" into main 2024-05-21 15:43:26 +00:00
Steven Moreland
a8a2c5a7e1 init: delay 'user root' test to W+
We'll make it a build time check in V after this.

Due to being a runtime flog, it was hard to spot and
debug, so delaying.

Bug: 340953047
Test: boot, CtsInitTestCases
Change-Id: Ica1a1c780e230c88615dad7937404d2b0fe9c68f
2024-05-20 22:05:00 +00:00
Treehugger Robot
e77a69d0b1 Merge "No longer require root for PermissiveMteTest" into main 2024-05-20 12:41:30 +00:00
Snehal
4334a6320c [Trusty][Metrics] Update struct to add is_crash on the NS side
Bug: 340509044

Change-Id: I4547286c5cefa3caaf1bf1c30f205145fb5e689c
2024-05-17 17:01:32 +00:00