Commit graph

82777 commits

Author SHA1 Message Date
Bart Van Assche
f4a3d72ee8 Revert "Updating Attributes on task_profiles.json"
This reverts commit 92153fb955.

Bug: 261857030
Ignore-AOSP-First: this change is for the U branch only.
Change-Id: I99417707f0d0b8c7dca3927b6ce9d52436621f4e
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2023-05-12 16:35:01 -07:00
Bart Van Assche
878406e7f1 Revert "task_profiles.json: Convert tabs into spaces"
This reverts commit 6ad747ac2d.

Bug: 261857030
Ignore-AOSP-First: this change is for the U branch only.
Change-Id: I93447b71146e6e9297ef49026d90dc4c35b91244
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2023-05-12 16:34:02 -07:00
Maciej Żenczykowski
65803e0327 Merge "remove inprocess tethering" into udc-dev 2023-05-12 15:44:24 +00:00
Martin Stjernholm
7c9c8f52e7 Run art_boot before odsign.
It's necessary to have the right dalvik.vm.* flags in place when they
are validated by odrefresh.

Test: See the other CL in the topic.
Bug: 281850017
Ignore-AOSP-First: Will cherry-pick to AOSP later
Change-Id: Ib64790dde97faaa6b62ead2c1c8dd53c97f97f9c
2023-05-11 16:02:30 +01:00
Maciej Żenczykowski
778d7e80a6 remove inprocess tethering
Test: TreeHugger
Bug: 279942846
(cherry picked from https://android-review.googlesource.com/q/commit:e37468b295851b97db07936e15f53af660607cb4)
Merged-In: Ia3a5d289cceac96d310e04fbae3588789cc859ca
Change-Id: Ia3a5d289cceac96d310e04fbae3588789cc859ca
2023-05-08 21:16:00 +00:00
Akilesh Kailash
ac9fbbcb05 libsnapshot: Turn off vabc_legacy_tests on presubmit
Temporarily turn off these tests until root cause is found.

Bug: 279009697
Test: presubmit
Signed-off-by: Akilesh Kailash <akailash@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:defe8381aac9d461f6de8690b5917771b5f6752f)
Merged-In: I90f695fac318b71871ff60c1f74c90265437687d
Change-Id: I90f695fac318b71871ff60c1f74c90265437687d
2023-05-02 22:09:32 +00:00
Vincent Donnefort
e80a6b6dd4 ramdisk_node_list: Add urandom node
Bionic requires random numbers to init the shadow call stack. Those
numbers are obtained via the syscall getrandom (non-blocking) and will
fallback to /dev/urandom if the former fails.

When loading pKVM modules, we are so early in the boot process that the
only source of entropy for the linux RNG are the architecture random
number generators... which might be available on some platforms. Without
any source of entropy, the only way of generating a random number is to
try to generate some, which is what the bionic fallback expects via
urandom.

As a consequence, add the urandom node to the initramfs.

Bug: 274876849
Merged-In: I111e2db53fabd63d070b8e9ab9c52faebf484ab3
Change-Id: I34a0e3f7c72de7344512366d4a96183b445edc2e
2023-05-02 09:48:21 +00:00
Suren Baghdasaryan
4a8c1461ff libprocessgroup: implement task profile validity checks
Provide profile validity check functions for cases when user wants to
check whether a profile can be successfully applied before actually
applying it. Add test cases to cover new APIs.

Also add a wrapper function for framework code to call it.

Bug: 277233783
Test: atest task_profiles_test
Test: manually verify freezer with outdated cgroup configuration
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Li Li <dualli@google.com>
Change-Id: Iefb321dead27adbe67721972f164efea213c06cb
Merged-In: Iefb321dead27adbe67721972f164efea213c06cb
2023-05-01 11:51:31 -07:00
Christopher Ferris
da10417125 Merge "Re-add code to skip gettings logs on logd crashes." into udc-dev 2023-04-27 00:51:04 +00:00
Automerger Merge Worker
fc6633c303 Merge "[automerger skipped] Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev am: 5141eaf353 -s ours" into android13-tests-dev am: 5658f34653 am: 5f2eb20c94 am: e755101e9e am: 2064e9397a
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563951

Change-Id: Id8c03e62c3f223cf83c624c7e3a44e179f0ce3bc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 19:41:55 +00:00
Automerger Merge Worker
6fb1d54d05 [automerger skipped] Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev am: 5141eaf353 -s ours am: 51349daf08 -s ours am: ab913fe979 -s ours am: 1b6291a3c2 -s ours am: fa5640a8fa -s ours
am skip reason: skipped by user dvander

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563951

Change-Id: Icdd09a55cc8e5f56f591162c51b9eb68e3e0c279
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 19:41:51 +00:00
Automerger Merge Worker
2064e9397a Merge "[automerger skipped] Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev am: 5141eaf353 -s ours" into android13-tests-dev am: 5658f34653 am: 5f2eb20c94 am: e755101e9e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563951

Change-Id: I9864873bf7362c9fd9c7bd1faa963d52d4da9c29
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 18:57:01 +00:00
Automerger Merge Worker
fa5640a8fa [automerger skipped] Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev am: 5141eaf353 -s ours am: 51349daf08 -s ours am: ab913fe979 -s ours am: 1b6291a3c2 -s ours
am skip reason: skipped by user dvander

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563951

Change-Id: Ia8421e84ebb896ca1fc48ac17b7f94ede9481fcb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 18:56:59 +00:00
Automerger Merge Worker
6140a0ae58 Merge "[automerger skipped] Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev am: 5141eaf353 -s ours" into android13-tests-dev am: 5658f34653 am: 5f2eb20c94 am: 3a3dc70496
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563951

Change-Id: I104ed4ed8f34ea2e104ccb7ceea03f4ce5f7286a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 18:54:57 +00:00
Automerger Merge Worker
0b83b6164d [automerger skipped] Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev am: 5141eaf353 -s ours am: 51349daf08 -s ours am: ab913fe979 -s ours am: 0ce6dfc29b -s ours
am skip reason: skipped by user dvander

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563951

Change-Id: Iae222133f6aca750f919f12b17e51ddf8dc59b6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 18:54:54 +00:00
Automerger Merge Worker
e755101e9e Merge "[automerger skipped] Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev am: 5141eaf353 -s ours" into android13-tests-dev am: 5658f34653 am: 5f2eb20c94
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563951

Change-Id: I0023fbab9c72348714f4fea1d6c4fb07ad691fbb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 18:13:22 +00:00
Automerger Merge Worker
1b6291a3c2 [automerger skipped] Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev am: 5141eaf353 -s ours am: 51349daf08 -s ours am: ab913fe979 -s ours
am skip reason: skipped by user dvander

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563951

Change-Id: I451f0ca23524448306ed399fa671bfd5773211ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 18:13:20 +00:00
Automerger Merge Worker
3a3dc70496 Merge "[automerger skipped] Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev am: 5141eaf353 -s ours" into android13-tests-dev am: 5658f34653 am: 5f2eb20c94
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563951

Change-Id: I0ab3d6009f2cc39c3a96e96fb604d07c9d552c25
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 18:12:41 +00:00
Automerger Merge Worker
0ce6dfc29b [automerger skipped] Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev am: 5141eaf353 -s ours am: 51349daf08 -s ours am: ab913fe979 -s ours
am skip reason: skipped by user dvander

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563951

Change-Id: I383424667a119afdced42a47e888f8aaa04b0a98
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 18:12:39 +00:00
Automerger Merge Worker
5f2eb20c94 Merge "[automerger skipped] Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev am: 5141eaf353 -s ours" into android13-tests-dev am: 5658f34653
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563951

Change-Id: Ib9046976f60bdcf354530c146fcdb8dff9e8a90f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 17:45:27 +00:00
Automerger Merge Worker
ab913fe979 [automerger skipped] Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev am: 5141eaf353 -s ours am: 51349daf08 -s ours
am skip reason: skipped by user dvander

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563951

Change-Id: I7575285c98982b37280010fdad4e3cad63aca518
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 17:45:20 +00:00
Automerger Merge Worker
5658f34653 Merge "[automerger skipped] Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev am: 5141eaf353 -s ours" into android13-tests-dev 2023-04-26 17:05:37 +00:00
Automerger Merge Worker
51349daf08 [automerger skipped] Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev am: 5141eaf353 -s ours
am skip reason: skipped by user dvander

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563951

Change-Id: I1fdf41caf785e5149dbdea83a0e74f18db63886a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 17:04:31 +00:00
Automerger Merge Worker
5141eaf353 Merge "Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664" into android12L-tests-dev 2023-04-26 02:45:46 +00:00
Treehugger Robot
2316bf2eaf Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev am: b880578664
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563951

Change-Id: Iefd00dd6629a0850cffb7a4a170d8c831a7c2007
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 02:45:43 +00:00
Treehugger Robot
b880578664 Merge "libsnapshot: Fix test failures on certain configurations." into android12-tests-dev 2023-04-26 02:13:15 +00:00
David Anderson
6727d5840b libsnapshot: Fix test failures on certain configurations.
Due to how CF is built and tested, VABC is enabled even when not
supported by the kernel. To work around this add some logic in
libsnapshot and the test harness to recognize this situation and
silently flip off the VABC flag.

This also fixes the -force_mode option to vts_libsnapshot_test, so that
it will skip tests that aren't supported by the device.

Bug: 264279496
Test: vts_libsnapshot_test on android12-gsi with 11-5.4 kernel
Change-Id: I9279d8d400cac5cd504a7ae91f254aae57fa856d
2023-04-25 23:50:48 +00:00
Christopher Ferris
3a81dda861 Re-add code to skip gettings logs on logd crashes.
Also add new unit tests to verify this behavior.

Bug: 276934420

Test: New unit tests pass.
Test: Ran new unit tests without pthread_setname_np call and verified
Test: the tests fail.
Test: Force crash logd and verify log messages are not gathered.
Test: Force crash a logd thread and verify log messages are not gathered.
Change-Id: If8effef68f629432923cdc89e57d28ef5b8b4ce2
Merged-In: If8effef68f629432923cdc89e57d28ef5b8b4ce2
(cherry picked from commit bda1064160)
2023-04-25 14:53:31 -07:00
Daniel Zheng
17d95b6412 Merge "Added test for parsing bad input" am: cf1ca03836 am: 104348c545 am: c146c47404
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2536490

Change-Id: Ie77414df0bd362a29cc79b69f8e0db821e716f95
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 01:11:53 +00:00
Daniel Zheng
c146c47404 Merge "Added test for parsing bad input" am: cf1ca03836 am: 104348c545
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2536490

Change-Id: I5982511a3a59074a535b60501c81258ecf2f0815
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 00:29:25 +00:00
Daniel Zheng
104348c545 Merge "Added test for parsing bad input" am: cf1ca03836
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2536490

Change-Id: I25350bbd21565f1bd22469b3c9fa3c088ed86850
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 23:49:08 +00:00
Daniel Zheng
cf1ca03836 Merge "Added test for parsing bad input" 2023-04-20 23:08:20 +00:00
Daniel Zheng
935ee1f971 Added test for parsing bad input
Test: fastboot_test
Change-Id: I04fc24741987bc88a490b2084189dfd8f3714582
2023-04-20 14:11:06 -07:00
Daniel Zheng
cd7d78c67d Merge "Added test for version check" am: 13af2f46a8 am: c36aa998a4 am: 76aa2000a7
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2534111

Change-Id: I570d7d6cecc70debe5834e9b2585d1da84e208b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 20:38:11 +00:00
Daniel Zheng
76aa2000a7 Merge "Added test for version check" am: 13af2f46a8 am: c36aa998a4
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2534111

Change-Id: Iad999b2745a2683412e5758bca32bb10243fee21
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 19:52:14 +00:00
Daniel Zheng
c36aa998a4 Merge "Added test for version check" am: 13af2f46a8
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2534111

Change-Id: I072c866cb791c9256da0845ae4da6f0e2de64703
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 18:30:27 +00:00
Daniel Zheng
13af2f46a8 Merge "Added test for version check" 2023-04-20 17:47:46 +00:00
Treehugger Robot
2c15f8c06e Merge "task_profiles_test: Skip this test if cgroups is read-only" am: 229d3d27d8 am: b9fd48a4e6 am: 729f7b5b55
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2549390

Change-Id: I7e195fd81ec3130381269bdce93f925b0e7c966b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 01:59:38 +00:00
Treehugger Robot
729f7b5b55 Merge "task_profiles_test: Skip this test if cgroups is read-only" am: 229d3d27d8 am: b9fd48a4e6
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2549390

Change-Id: I9e72d196602c298c2f60e39219fd41592cc6bd73
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 01:16:08 +00:00
Treehugger Robot
b9fd48a4e6 Merge "task_profiles_test: Skip this test if cgroups is read-only" am: 229d3d27d8
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2549390

Change-Id: I339db85d4bb3435c5589315a5d045d23f3498cf6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 00:44:07 +00:00
Treehugger Robot
229d3d27d8 Merge "task_profiles_test: Skip this test if cgroups is read-only" 2023-04-19 23:57:15 +00:00
Daniel Zheng
f2ea2df952 Merge "Adding Test for Parsing Flash Task" am: 0e25838886 am: 681b382764 am: dbba14a8b5
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2516536

Change-Id: I7a4fd7eab014a8d6eda6ed951ffcd3957673670b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 23:27:55 +00:00
Daniel Zheng
4955ad08a7 Merge "Added forward declaration for compilation" am: 233a5a162d am: 5eab5a8d53 am: 5cc7d0d5b9
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2516555

Change-Id: I4f8f109b821cdea76359bd530f8525050ea635e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 23:27:43 +00:00
Daniel Zheng
8fc3faec07 Merge "Pointed FlashingPlan to Interface" am: 7d67d569f3 am: ad1e0faffa am: 27072bba38
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2530984

Change-Id: I207e2356e52e0b6684571f48d5b4d13ab3f5f2bd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 23:27:32 +00:00
Daniel Zheng
d8a1fe5835 Merge "Adding fastboot_driver interface + mock" am: 3ac1e55e1e am: ee0e75bb8f am: 80414cd280
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2516535

Change-Id: Ia4c9d2d9557db6882c4c951e4117c2c3f7b2828a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 23:27:20 +00:00
Daniel Zheng
5549447981 Merge "Moving FlashallTool Definition" am: 39b1de953f am: e492706352 am: d98a11ab9d
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2515685

Change-Id: I9949eb58f07252f23e78a1d15dbd4b3c7b01436a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 23:27:08 +00:00
Daniel Zheng
fc99661859 Merge "Changing flashall to parse fastboot-info.txt" am: b7d14facd2 am: 1470b73e61 am: 33dfa1bace
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2483697

Change-Id: Ia71136619444008ead8c73feee0b7b99b931d7bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 23:26:22 +00:00
Daniel Zheng
dbba14a8b5 Merge "Adding Test for Parsing Flash Task" am: 0e25838886 am: 681b382764
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2516536

Change-Id: I20c90111f6a9777902d9589f2e18391a32ffc995
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 22:46:40 +00:00
Daniel Zheng
5cc7d0d5b9 Merge "Added forward declaration for compilation" am: 233a5a162d am: 5eab5a8d53
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2516555

Change-Id: I18e7ed80de18a7614e9ec77dc1fe29056d4eb00b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 22:46:30 +00:00
Daniel Zheng
27072bba38 Merge "Pointed FlashingPlan to Interface" am: 7d67d569f3 am: ad1e0faffa
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2530984

Change-Id: I65a56ff975445809965136db3241f13bee870651
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 22:46:21 +00:00