Commit graph

89702 commits

Author SHA1 Message Date
Jooyung Han
f91503bd18 Clean up userspace-reboot (#2)
Bug: 292469129
Test: CtsInitTestCases
Test: system/core/bootstat/boot_reason_test.sh
Change-Id: I00deb50c5634ade6b69d5b6bf4d08c5101e0beb8
2024-08-09 16:17:20 +09:00
Jooyung Han
e34549af33 Clean up userspace-reboot
The feature was deprecated last year.

Bug: 292469129
Test: atest CtsInitTestCases
Change-Id: I826502770ab3fa566be57a33829f1103efa893fb
2024-08-09 15:58:53 +09:00
Christopher Ferris
6d85bb3ef5 Merge "Small clean-up of debuggerd test." into main 2024-08-08 21:03:02 +00:00
Treehugger Robot
9da55b8cf7 Merge "Revert "libsnapshot: compile tests for both 32 and 64 bit"" into main 2024-08-08 06:50:11 +00:00
Akilesh Kailash
873ae91b95 Revert "libsnapshot: compile tests for both 32 and 64 bit"
This reverts commit 2317bbad07.

Reason for revert: b/358254699

Change-Id: Icb9dc0d48f3e39a45a69f9aa36f9bfe46d27e37a
2024-08-08 05:29:52 +00:00
Akilesh Kailash
0fe7deb212 Merge "libsnapshot: compile tests for both 32 and 64 bit" into main 2024-08-08 00:12:31 +00:00
Sandeep Dhavale
2007e0cc83 Merge "snapuserd: remove implicit assumption about dm-user in BufferSink" into main 2024-08-07 22:44:44 +00:00
Christopher Ferris
df5ae06d4c Small clean-up of debuggerd test.
For the debuggerd_test.cpp tests, don't include any libdebuggerd
internal headers.

Test: Compiles and unit tests pass.
Change-Id: I6335dc9e09992f5725a24fc45a8356efab7158e6
2024-08-07 21:29:26 +00:00
Akilesh Kailash
20d170fcb4 Merge "snapuserd_test: skip test if dm-user kernel driver is absent" into main 2024-08-07 21:05:31 +00:00
Akilesh Kailash
2317bbad07 libsnapshot: compile tests for both 32 and 64 bit
Bug: 352605053
Test: th
Change-Id: I0566e237d1151c705d61623be4b496d73b9ec3ea
Signed-off-by: Akilesh Kailash <akailash@google.com>
2024-08-07 10:57:41 -07:00
Akilesh Kailash
a880e5675b snapuserd_test: skip test if dm-user kernel driver is absent
Bug: 357487459
Test: snapuserd_test
Change-Id: I8458f223fc35fcfa042588e67a30c5bb273b0277
Signed-off-by: Akilesh Kailash <akailash@google.com>
2024-08-07 10:52:03 -07:00
Sandeep Dhavale
3df2dc1aae snapuserd: remove implicit assumption about dm-user in BufferSink
This removes implicit assumption that BufferSink can only be used with
dm-user. User of BufferSink can specify size of header during
BufferSink::Initialize to reserve the space for the header.

Also get rid of now unused structure dm_user_payload and
dm_user_message.

Test: TH
Test: ota
Test: vts_snapused_test
Bug: 357711761
Change-Id: I1e550393ce1f0277fe215015fa6948ad3c3b68ba
Signed-off-by: Sandeep Dhavale <dhavale@google.com>
2024-08-07 09:47:39 -07:00
Chung-Kai (Michael) Mei
3e464e6e26 Merge "libmodprobe: use ordered map for deterministic module loading" into main 2024-08-07 02:04:25 +00:00
Chungkai Mei
55c047fd44 libmodprobe: use ordered map for deterministic module loading
To ensure stable loading of parallel modules, switch to an ordered map structure. This will prevent potential dependency issues and conflicts.

Bug: 314213605
Change-Id: I8e00678e18417550b3be0c4228e4908a830e648c
Signed-off-by: Chungkai Mei <chungkai@google.com>
2024-08-06 04:05:25 +00:00
Treehugger Robot
7cf5f08147 Merge "libcutils: Split uevent_open_socket()" into main 2024-08-05 20:55:31 +00:00
Eric Biggers
48931daf85 Merge "fs_mgr: Remove deprecated mount option" into main 2024-08-05 19:11:24 +00:00
Tiffany Yang
ccb950f9ed Merge "init: Wait for /dev/hvc1 during ARCVM first-stage mount" into main 2024-08-05 18:37:56 +00:00
Bart Van Assche
8e62c8a9b4 libcutils: Split uevent_open_socket()
The best time to attach a BPF filter to a socket is before a socket
starts receiving data. Netlink sockets start receiving data after bind()
has been called. uevent_open_socket() calls socket() and bind(). Hence
split uevent_open_socket() into two functions: one function that calls
socket() and another function that calls bind().

Bug: 203462310
Change-Id: Ia41dee4683358cf9fbb6288fad863cd4f4ac9924
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2024-08-05 09:31:24 -07:00
Treehugger Robot
ac68a8b797 Merge "Refactor init.environ.rc to append than replace" into main 2024-08-02 08:27:03 +00:00
Inseob Kim
3ce6cb9b6e Refactor init.environ.rc to append than replace
Bug: 353429422
Test: boot
Change-Id: Ibd432fa39fc75f8b49ae26fbc6b74f11fb3f771d
2024-08-02 15:55:39 +09:00
Richard Chang
96265b3420 Merge "fs_mgr: check available space before creating zram backing device" into main 2024-08-02 02:53:44 +00:00
Treehugger Robot
b17468d16c Merge "Reland "Migrate init.environ.rc module to Soong"" into main 2024-08-02 02:28:10 +00:00
Treehugger Robot
7c49e7dd42 Merge "Format if Encryption was Interrupted" into main 2024-08-02 00:41:55 +00:00
Ilya Byckevich
d60a2aa199 fs_mgr: Remove deprecated mount option
Mount option "nomblk_io_submit" was deleted from
upstream kernel v3.9 in 36ade451a5d736e61ac8302b64aacc5acb5e440f
and has not reappeared since then.
Now it only generates 'Ignoring removed nomblk_io_submit option'
in the logs

Test: manual
Change-Id: Ie609e7d3d38e808eeede1f1c55435ed027726025
2024-08-01 17:34:52 +00:00
Richard Chang
6c277195ab fs_mgr: check available space before creating zram backing device
This CL adds a check to ensure that there is enough free space on
the device before creating the zram backing device.
If there is not enough space, the zram backing device will not be
created.

Adding a system property 'ro.zram_backing_device_min_free_mb' to
define the minimum free space reserved for booting.
If the property is not set, skip the available space check.

Bug: 322821637
Bug: 326877642
Test: Fill up userdata, enlarge zram backing device size on next
boot.

Change-Id: I135b4beee2a8a21f8214f6579368a8d0d8792255
2024-08-01 04:21:11 +00:00
Inseob Kim
b7fa335ed8 Reland "Migrate init.environ.rc module to Soong"
Makefile module still remains to handle post install commands. We're
going to move that to somewhere else as a followup.

Relanding with a fix for hwasan build.
HWADDRESS_SANITIZER_GLOBAL_OPTIONS is set by Soong's MakeVars, so we
can't refer the variable on soong config modules. Instead, as the
variable is hard-coded, this change hard-codes options in Android.bp.

Bug: 353429422
Test: boot cuttlefish w/ and w/o USE_SOONG_DEFINED_SYSTEM_IMAGE
Test: boot shiba with SANITIZE_TARGET=hwaddress
Change-Id: I4f61d7f800e0563c49dec0151d4a648ce9814bc9
2024-08-01 03:30:56 +00:00
Arve Hjønnevåg
be8f723e64 Merge changes Ibaa89dd0,I7ca0a7e7,Ib2ef34df into main
* changes:
  trusty: keymint: Add commandline option to specify device name
  trusty: keymaster: Add commandline option to specify device name
  trusty: gatekeeper: Add device option
2024-08-01 00:19:49 +00:00
Liana Kazanova
f8aaabecef Merge "Revert "Migrate init.environ.rc module to Soong"" into main 2024-07-31 20:49:29 +00:00
Liana Kazanova
bd153e76db Revert "Migrate init.environ.rc module to Soong"
Revert submission 3197177-init_environ_rc_soong

Reason for revert: DroidMonitor: Potential culprit for b/356587212 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Reverted changes: /q/submissionid:3197177-init_environ_rc_soong

Change-Id: I3834d7f76f4baef747f3536167ad9bd2d2a474b4
2024-07-31 17:56:36 +00:00
Jerome Gaillard
aad52527fd Merge "Remove Windows-specific code from Trace.h" into main 2024-07-31 17:27:32 +00:00
Jerome Gaillard
b654f2c287 Remove Windows-specific code from Trace.h
libcutils builds for Windows, so there is no need to handle Windows
differently in Trace.h.
    
Bug: 322360037
Test: build libutils for Windows

Change-Id: If17de95a2222c7d17c74988695d68754f06957ea
2024-07-31 15:52:09 +00:00
Arve Hjønnevåg
b4158e2599 trusty: keymint: Add commandline option to specify device name
Bug: 300338484
Test: VtsAidlKeyMintTargetTest (emulator subset)
Change-Id: Ibaa89dd0a3db65565101c0a37303c7155f999fb7
2024-07-31 08:21:53 +00:00
Arve Hjønnevåg
31154a9e60 trusty: keymaster: Add commandline option to specify device name
Bug: 300338484
Test: VtsAidlKeyMintTargetTest (emulator subset)
Change-Id: I7ca0a7e72b55fcf9e9b015f68425b67c778aca9e
2024-07-31 08:21:50 +00:00
Arve Hjønnevåg
2fea1dd4ab trusty: gatekeeper: Add device option
Add commandline option to specify the trusty device to use.

Bug: 300338484
Test: VtsHalGatekeeperTargetTest
Change-Id: Ib2ef34dfc104c65119a98937280ae9db74417766
2024-07-31 08:21:47 +00:00
Treehugger Robot
2ed904d8ea Merge "Migrate init.environ.rc module to Soong" into main 2024-07-31 05:37:30 +00:00
Inseob Kim
fcbb743d86 Migrate init.environ.rc module to Soong
Makefile module still remains to handle post install commands. We're
going to move that to somewhere else as a followup.

Bug: 353429422
Test: boot with and without USE_SOONG_DEFINED_SYSTEM_IMAGE
Change-Id: I85ec048e6e57981ad4496ea90762aa34bd9a5ca1
2024-07-31 13:10:41 +09:00
Daniel Rosenberg
9ca9303b05 Format if Encryption was Interrupted
If we're partially through setting up metadata encryption, failures
leave the partition in a known bad state, and we can avoid an eventual
boot into recovery by taking the format path.

Bug: 351704691
Test: Inserted debug code to reboot during initial encryption setup
      Verified device boots successfully on second attempt
Change-Id: I2d8591fa68ab0656e42b7b12f69001a5897e1a61
2024-07-30 18:13:42 -07:00
Chaitanya Cheemala (xWF)
4d73a9d9ad Merge "Revert "Set block device as RO/RW before mount"" into main 2024-07-30 09:47:57 +00:00
Chaitanya Cheemala (xWF)
1f00f794e6 Revert "Set block device as RO/RW before mount"
This reverts commit c6dfdbb761.

Reason for revert: Likely culprit for b/356319388  - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: Ibd85b26a02f0278676f330c6825d3cb15eefe3fc
2024-07-30 09:05:17 +00:00
Treehugger Robot
785961673b Merge "Set block device as RO/RW before mount" into main 2024-07-30 04:06:38 +00:00
Treehugger Robot
69c7daf1a7 Merge "Add trusty_rkp_set_uds_cert for UdsCert provisioning" into main 2024-07-29 15:53:54 +00:00
Daniel Zheng
ed25450792 Merge "libsnapshot: add test for merge_size param" into main 2024-07-25 04:23:03 +00:00
Daniel Zheng
11f08531f9 Merge "libsnapshot: cap merge op count" into main 2024-07-25 04:22:51 +00:00
Daniel Zheng
39fe6e1d38 libsnapshot: add test for merge_size param
Add test to make sure that setting the protobuf successfully propogates
the gflag argument to snapuserd_handler.

Bug: 332255580
Test: th
Change-Id: Ic7a008bee7dd3ca29faa0a5409f0513f1551bf37
2024-07-24 15:21:51 -07:00
Daniel Zheng
1fbba3ed0d libsnapshot: cap merge op count
Set op processing window during snapshot merge from the build. The lower
the merge count, the lower the memory strain during the merge process

Bug: 332255580
Test: verify merge_size propogates to snapuserd daemon
Change-Id: Ic7770115bca963d923a7a276897c5deac30f9faf
2024-07-24 15:19:43 -07:00
Treehugger Robot
f2c1d4e7bf Merge "charger: fix show qustion mark when start to draw UI" into main 2024-07-24 02:58:16 +00:00
Tommy Chiu
5c1378a5ff Add trusty_rkp_set_uds_cert for UdsCert provisioning
Bug: 330791928
Test: trusty_rkp_set_uds_cert /data/rkp_uds_cert_test.xml
Change-Id: I368be346197099ff6d3fe7a09d666791faada040
2024-07-23 15:41:45 +00:00
Jiyong Park
b6b55fc945 Merge "Update visibility according to the change AVF directories layout" into main 2024-07-23 07:21:23 +00:00
Treehugger Robot
0c76dcb89a Merge "Add adb-remount-sh to presubmit & kernel-presubmit group." into main 2024-07-23 02:53:09 +00:00
Akilesh Kailash
30b3d9e62c Merge changes I6826b287,Ia8e6db89 into main
* changes:
  Skip tests if vendor partition is on Android S
  libsnapshot: Address GRF config when updating from Android S config
2024-07-22 20:05:07 +00:00