David Anderson
b10db488c1
Merge "sh_binary_host for 'adb-remount-test.sh'." am: 4aaff2b264
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2116135
Change-Id: I331d01d7cb2526357e7e695b5014dd6f5efa6b7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-13 18:30:17 +00:00
David Anderson
4aaff2b264
Merge "sh_binary_host for 'adb-remount-test.sh'."
2022-06-13 18:06:11 +00:00
Yi-yo Chiang
0d9240f898
Merge "Auto enable usb adb if booting with debug ramdisk" am: 155bba8b0c
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2119852
Change-Id: Ia48b9e86f53cbc5e6f86c6979ae73baa79b09967
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-10 12:38:54 +00:00
Yi-yo Chiang
155bba8b0c
Merge "Auto enable usb adb if booting with debug ramdisk"
2022-06-10 12:08:34 +00:00
Akilesh Kailash
62482af6a1
Merge "snapuserd: Update verification" am: 2ba3ae310e
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2038964
Change-Id: If13a32e7719876f4160803eba9cf157575fd367b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 23:03:33 +00:00
Akilesh Kailash
2ba3ae310e
Merge "snapuserd: Update verification"
2022-06-09 22:43:32 +00:00
Jaegeuk Kim
2af8162621
Merge "Add zoned device support" am: 3f9c8a8c3a
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2115359
Change-Id: I50295036d99166f8defd404d7e55e1cc93efee25
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 15:09:58 +00:00
Jaegeuk Kim
3f9c8a8c3a
Merge "Add zoned device support"
2022-06-09 14:53:25 +00:00
jiajia tang
a1c8f00e70
sh_binary_host for 'adb-remount-test.sh'.
...
"adb-remount-test.sh" is sh_binary,
not cc_prebuilt_binary.
Test: m
Test: cd system/core/fs_mgr; mma
Change-Id: Ie5e2446f87d38905d728e2c5a76f6f02381d10ce
Signed-off-by: jiajia tang <tangjiajia@xiaomi.com>
2022-06-08 22:05:06 +00:00
Akilesh Kailash
f790606591
snapuserd: Update verification
...
Initiate update verification from daemon. This will help
in two ways:
1: We avoid reading everything into page-cache. Since,
low end devices are already short on memory, we don't
want to read and populate page-cache which can slow
down boot.
2: During boot, once the selinux transition is done, daemon
is all ready to kick off the verification since verity is
already setup. Note that we are still guarded by update_verifier.
Update_verifier will still block marking new slot as
boot success until the verification is completed. So, there
is no change in the behavior.
Bug: 193863442
Test: Full and incremental OTA on Pixel 6
Incremental OTA of 500M (Monthly OTA)
Boot-time (Without this patch): 38 seconds
Boot-time (With this patch): 32 seconds
Full OTA of 2.2G:
Boot-time (Without this patch): 27 seconds
Boot-time (With this patch): 21 seconds
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: I4f17db19bdd0dd261902c670be6212862d861fe1
2022-06-08 20:26:10 +00:00
Jaegeuk Kim
e67e570028
Add zoned device support
...
Format f2fs zoned device.
Bug: 172378121
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ic7f564ce5786c635ee1e1f6d0b33c1f4d08f780a
2022-06-08 13:12:15 -07:00
Yi-Yo Chiang
70c53f5d52
Auto enable usb adb if booting with debug ramdisk
...
If booting with debug ramdisk (ro.force.debuggable is true), override
the persistent property "persist.sys.usb.config" to always enable adb.
This ensures a consistent debug experience. The developer can expect
that after debug ramdisk (debug boot image) is flashed,
1. Device is rootable with (adb root)
2. adb is enabled automatically
3. no-auth (if $ADB_VENDOR_KEYS is used)
Bug: 223517900
Test: 1. Flash & boot user build, verify device doesn't have usb
debugging enabled.
2. Reboot to bootloader and flash vendor_boot-debug.img.
3. Boot and verify usb debugging is automatically enabled.
4. Enter Developer Options and manually turn off usb debugging.
5. Reboot and verify that usb debugging is automatically enabled.
Change-Id: I729e961d645f2dd521ead8ca30b5cb8eb1d9f909
2022-06-08 23:07:13 +08:00
Kean Mariotti
c0e0892a5a
Merge "Revert "Set the log callback earlier for showing system property set denials"" am: 526fbe2a37
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2118487
Change-Id: I016b315fb5b79b330125a0d1ca746a7430144f16
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 09:32:41 +00:00
Kean Mariotti
526fbe2a37
Merge "Revert "Set the log callback earlier for showing system property set denials""
2022-06-08 09:07:42 +00:00
Kean Mariotti
3a6040eb71
Revert "Set the log callback earlier for showing system property set denials"
...
This reverts commit 8c224faa24
.
Reason for revert: 235312897
Change-Id: I80684c80bb6f97853449d429bbf948c07d4cb651
2022-06-08 07:57:53 +00:00
Alex Hong
219306f683
Merge "Set the log callback earlier for showing system property set denials" am: af74368a36
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1684665
Change-Id: I1698ef9d4f862497325ef1f96f8b78f732889ea6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 05:53:21 +00:00
Alex Hong
af74368a36
Merge "Set the log callback earlier for showing system property set denials"
2022-06-08 05:37:22 +00:00
Treehugger Robot
5bfe8317b3
Merge "Implement GetRootOfTrust" am: 7e25d3e8fa
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2115452
Change-Id: Ie005e4728e08610dd4ae1449b589219a8af25b7e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-07 22:59:45 +00:00
Treehugger Robot
7e25d3e8fa
Merge "Implement GetRootOfTrust"
2022-06-07 22:43:20 +00:00
Shawn Willden
396bc3f964
Implement GetRootOfTrust
...
Bug: 219076736
Test: VtsAidlKeyMintTargetTest
Change-Id: I8485360f253ca20f008c5df5090e79c1781fbb4f
2022-06-07 13:19:23 -06:00
Daniel Angell
17cfc1aee4
Merge "Increase num_retries to reduce likelihood of test flake" am: f3e2a9d5c4
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2116279
Change-Id: I241db49f5ab836465c35e00256119594e7859f39
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06 23:48:20 +00:00
Daniel Angell
f3e2a9d5c4
Merge "Increase num_retries to reduce likelihood of test flake"
2022-06-06 23:31:35 +00:00
Daniel Angell
6c2d812508
Increase num_retries to reduce likelihood of test flake
...
Flakiness was observed in this build:
https://android-build.googleplex.com/builds/pending/P35853772/qemu_generic_arm32_gicv3_test_debug/latest/view/logs/build_error.log
But most other builds do not have this issue.
Bug: 234788755
Change-Id: I4cf7d05a56eb678164bf0006bfb190442d6d4e03
2022-06-06 21:25:17 +00:00
David Drysdale
fe5cf1222e
Merge "Make crate vendor_available" am: ad226c11a9
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2105625
Change-Id: Ib5bf4008fd52ae0d1baabae86549e68de8afa045
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06 07:08:46 +00:00
David Drysdale
ad226c11a9
Merge "Make crate vendor_available"
2022-06-06 06:49:13 +00:00
Treehugger Robot
7fa8f7a530
Merge "libprocessgroup: Handle temporarily non-empty group removal failure" am: 6cd136fc61
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2108506
Change-Id: I5fd23f113a484f4eb0d2b2b33038934b880a4dd0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-04 00:19:38 +00:00
Treehugger Robot
6cd136fc61
Merge "libprocessgroup: Handle temporarily non-empty group removal failure"
2022-06-03 23:11:06 +00:00
Suren Baghdasaryan
fd933786d8
libprocessgroup: Handle temporarily non-empty group removal failure
...
Cgroup removal fails with EBUSY if there are active processes or threads
still alive in the cgroup. Occasionally a thread or a process might be
stuck in an interruptible sleep and take some time during exit. In such
cases attempts to remove the cgroup it belongs to will fail. This
results in occasional leftover cgroups. These empty unused cgroups
consume memory.
Ensure RemoveProcessGroup always retries and increase the retries to
keep trying for 2 secs before giving up. In majority of cases only a few
retries are needed but in rare cases a thread can be blocked for longer
time, therefore the number of retries is set large enough to cover them.
Bug: 233319780
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I2e4bb1f7b7e19c904c85faea7bbabbfdef9c8125
2022-06-03 21:15:14 +00:00
Treehugger Robot
e8ee78b0db
Merge "Added libinit_headers to Android.bp" am: ac9b59ed5a
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1985237
Change-Id: I525571a16ff5956f50db66d7d0068eab29524b92
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-03 09:16:59 +00:00
Treehugger Robot
ac9b59ed5a
Merge "Added libinit_headers to Android.bp"
2022-06-03 08:57:08 +00:00
David Anderson
2904defef3
Merge "fastbootd: Add better logging for flashing failures." am: a090418340
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2114494
Change-Id: I5df6e04eeb6b937e634714160e1ae17678e03faf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-03 05:52:50 +00:00
David Anderson
a090418340
Merge "fastbootd: Add better logging for flashing failures."
2022-06-03 05:20:12 +00:00
Akilesh Kailash
1aae2b57f6
Merge "init: Set oom_score_adj to snapuserd process" am: cb3ef68f22
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2114498
Change-Id: I194a210259959840130a7d4bbfa13c2f5f027e49
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 21:32:49 +00:00
Akilesh Kailash
cb3ef68f22
Merge "init: Set oom_score_adj to snapuserd process"
2022-06-02 21:16:20 +00:00
Akilesh Kailash
4ffe8a3109
init: Set oom_score_adj to snapuserd process
...
When a process is started as a native service,
oom_score_adj is set to -1000 so that processes
are unkillable by lmkd.
During boot, snapuserd process is not started as a service;
hence, we need to set the oom_score_adj explicitly else in
the event of low memory situation, lmkd can kill the
process thereby device can never boot.
Bug: 234691483
Test: th and OTA on Pixel
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: Ic2c85aa470522b4bc847a16b4f5cebfc528ed3cf
2022-06-02 20:49:03 +00:00
David Anderson
5b8a2a6e55
Merge "libsparse: Don't spam errors in sparse_file_import_auto." am: bed6eea329
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2113794
Change-Id: I80ad198d682f7884aaf8b1546e250707a734f4e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 18:18:29 +00:00
David Anderson
bed6eea329
Merge "libsparse: Don't spam errors in sparse_file_import_auto."
2022-06-02 17:57:54 +00:00
David Anderson
954ff922ea
fastbootd: Add better logging for flashing failures.
...
Bug: 233980876
Test: builds, fastboot flashall
Change-Id: Icc81ac4d9a4ca76f7eb757df5524d95f488fcd8c
2022-06-01 22:46:35 -07:00
David Anderson
a7fd7b1689
libsparse: Don't spam errors in sparse_file_import_auto.
...
This function is intended for use on sparse or non-sparse files. But
when used on non-sparse files, it unintentionally reports errors when
trying to detect if the file is sparse or not.
Since the behavior is the same whether or not the detection fails, this
patch disables verbose errors during the import. Verbose errors are
turned on if a resparse is needed.
Bug: 210846593
Test: fastboot flashall
Change-Id: I8404ca7a67adc7fba8a3ac7b4ffa18abfbcafa9d
2022-06-01 18:36:04 -07:00
Christopher Ferris
c6ec681fac
Merge "Fix scudo fault address processing." am: d17cefe7e4
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2108505
Change-Id: I0bd7fe5b7095b8df3cac88128c8449ba08cc023e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-01 20:42:56 +00:00
Christopher Ferris
d17cefe7e4
Merge "Fix scudo fault address processing."
2022-06-01 20:20:09 +00:00
Thiébaud Weksteen
46e8d29a4f
Merge "Add documentation on mkdir about seclabel" am: 715ecbfb23
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2110586
Change-Id: I4eca56a15db5ef54eaa7ed92cdc83622fb4d7d54
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-31 23:38:19 +00:00
Christopher Ferris
316ae4ccbb
Merge "Fix fallback paths for dumping threads." am: 9d11a1d5bd
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2107292
Change-Id: If46f26d5c13473918283307d99e2179e0796c2e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-31 23:38:09 +00:00
Thiébaud Weksteen
715ecbfb23
Merge "Add documentation on mkdir about seclabel"
2022-05-31 23:27:22 +00:00
Christopher Ferris
9d11a1d5bd
Merge "Fix fallback paths for dumping threads."
2022-05-31 23:16:58 +00:00
Treehugger Robot
aa8e5fffa8
Merge "[trusty] Bump number of ACVP arguments to match boringssl" am: 762543a34f
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2107185
Change-Id: I4146ac22f8c8f1ebb1a5ef822c5fa749cbee44b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-31 17:04:45 +00:00
Shaju Mathew
d056df414c
Merge "Configuration for preprocessor symbol ALLOW_DISABLE_VERITY (followup for: f61f41494e
)." am: 8b6dcf4432
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2106730
Change-Id: I381bc291030f05dac550c10c915055369ed5ceaf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-31 17:04:22 +00:00
Treehugger Robot
762543a34f
Merge "[trusty] Bump number of ACVP arguments to match boringssl"
2022-05-31 16:53:06 +00:00
Shaju Mathew
8b6dcf4432
Merge "Configuration for preprocessor symbol ALLOW_DISABLE_VERITY (followup for: f61f41494e
)."
2022-05-31 16:44:55 +00:00
Yi Kong
ef016a5d00
Merge "Fix incorrect use of TEMP_FAILURE_RETRY" am: 127616da9c
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2110285
Change-Id: I12cc25b5f71a974912f82b3dbc2bc069fb2d0ca5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-31 05:28:08 +00:00