Commit graph

77839 commits

Author SHA1 Message Date
Akilesh Kailash
06b537adda libsnapshot: Store index of COW ops vector
Using vector + unordered_map to retrieve the index in
a COW op vector consumes significant memory; this
is a problem especially when there are hundreds
of thousands of operations.

Instead, just store the index of the COW op vector
during pre-processing.

On Pixel, peak memory usage when all the partitions
are mapped:

Without patch:
	RssAnon:	  118804 kB
With path:
	RssAnon:	   55772 kB

Additionally, post OTA reboot, memory usage further goes
down as the partition merge completes.

Bug: 237490659
Test: OTA on Pixel
Ignore-AOSP-First: cherry-pick from aosp
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: Icc68a9688ceb89572821cee2dac689779f5e7c11
2022-08-12 20:53:32 +00:00
Stephen Crane
6e48a1e579 storageproxy: Report fsync failures with a distinct error code am: cf458bae1e
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19517837

Change-Id: I0cec6b12306b037503160b56ceecdb95acc4bde3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-04 20:30:33 +00:00
Stephen Crane
19ddf44919 storageproxy: Support POST_COMMIT sync for all commands am: 5b02ed521c
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19517836

Change-Id: I3aeeb035f1168bd2c9bdbba43ddd014c92d8a8c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-04 20:30:31 +00:00
Stephen Crane
cf458bae1e storageproxy: Report fsync failures with a distinct error code
Fsync failures are special because they may indicate a failure of an
operation before the current operation. Report these cases as a new,
distinct error.

Test: Cause fsync failure and check error response
Bug: 239105007
Change-Id: Ie9d4a1949586e90006256c975786e21ced655e66
Merged-In: Ie9d4a1949586e90006256c975786e21ced655e66
(cherry picked from commit 1c75d1e3a7)
2022-08-03 19:06:40 +00:00
Stephen Crane
5b02ed521c storageproxy: Support POST_COMMIT sync for all commands
Previously we did not support STORAGE_MSG_FLAG_POST_COMMIT for anything
but RPMB operations (in which case it was a no-op). We need to support
this flag in order to store a superblock in non-secure storage, as we
need that write to commit atomically wrt all other writes.

Test: com.android.storage-unittest.nsp
Bug: 228793975
Change-Id: Ia453c1916970e0b65a91e42f18b920ac4e1f01db
Merged-In: Ia453c1916970e0b65a91e42f18b920ac4e1f01db
(cherry picked from commit 57770a5318)
2022-08-03 19:05:53 +00:00
Akilesh Kailash
a70049022b Flush after every 2MB merge of replace ops.
This will be in sync with incremental OTA's where the sync
is done every 2MB. This improves performance on devices
with low memory.

Merge times for full OTA may increase by couple of seconds but
that is ok given it decreases the memory footprint.

Bug: 237490659
Test: OTA
Ignore-AOSP-First: cherry-pick from aosp
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: Ic2c8d2ffdbdb677e0c4d44e5de68ce8ccf86df34
2022-08-01 16:32:11 +00:00
Akilesh Kailash
365ac4e348 Reduce priority of merge threads
Currently, when daemon is spin up, it runs at the highest
priority with nice value set to -20. This can potetially
lead to a problem in a busy system especially after OTA
reboot when all the merge threads are running in parallel.

Now that we reduced the number of merge threads in-flight
to 2, we reduce the priority as well by setting the nice
value to -5. The other threads which serve I/O's
from dm-user (from root filesystem) still runs at higher
priority. We need this because post OTA reboot, these
threads serve I/O's until merge is completed.

Merge threads on the other hand can run at a relatively
lower priority. We need to make sure that there
is always forward progress even in a busy system
and hence set the priority to -5 as compared
to default value of 0.

No boot time regressions observed.

Output of NICE value of merge and worker threads post OTA reboot:

1 S     0   427   451     1 0  39 -20  64 2314640 dev_r+ ?      00:00:00 8
1 S     0   427   486     1 4  39 -20  64 2314640 dev_r+ ?      00:00:02 8
1 S     0   427   487     1 4  39 -20  64 2314640 dev_r+ ?      00:00:02 8
1 S     0   427   488     1 3  39 -20  64 2314640 dev_r+ ?      00:00:02 8
5 R     0   427   634     1 1  24  -5  64 2314640 0    ?        00:00:00 8
5 R     0   427   935     1 5  24  -5  64 2314640 0    ?        00:00:02 8

Bug: 237490659
Test: Full and incremental OTA
Ignore-AOSP-First: cherry-pick from aosp
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: I6791dd72ccd8cd5bba6eff663bb3f9598bce7ed2
2022-08-01 16:32:04 +00:00
Akilesh Kailash
2c0161be6a Tune snapshot-merge performance
Currently, there is one thread per partition
for snapshot merge. When all these threads are
run in parallel, this may stress the system
as the merge threads are both CPU and I/O bound.

Allow only two merge threads to be in-flight
at any point in time. This will ensure that there
is forward progress done with respect to snapshot-merge
and only two cores are used as against using
5-6 cores.

Additionally, system and prodcut partitions are merged
first. This is primarily because /root is mounted
of system partition and faster the merge completes
on /system partition, we can switch the dm tables
immediately. There is no change in the merge phase
from libsnapshot perspective. This prioritization
is based on each merge phase. If the system partition
merge is in second phase, then it takes priority
in that phase.

As a side benefit, this should also
reduce the memory usage when merge is in-flight
given that we now limit the threads.

There is slight delay in overall merge time as
we now throttle the merge.

No boot time regressions observed.

Full OTA:

Merge time (Without this patch): 42 seconds
Merge time (With this patch): 46 seconds

Incremental OTA:

Merge time (Without this patch): 52 seconds
Merge time (With this patch): 57 seconds

system partition merge completes in the first ~12-16 seconds.

App-launch (COLD) on Pixel:

Baseline (After snapshot-merge is completed when there is no daemon):
==========================

Chrome: 250
youtube: 631
camera: 230

==========================

Without this patch when snapshot-merge is in-progress (in ms):

Full - OTA

Chrome: 1729
youtube: 3126
camera: 1525

==========================

With this patch when snapshot-merge is in-progress (in ms):


Full - OTA

Chrome:  1061
youtube: 820
camera: 1378

Incremental - OTA (350M)

Chrome: 495
youtube: 1442
camera: 641
=====================

Bug: 237490659
Ignore-AOSP-First: cherry-pick from aosp
Test: Full and incremental OTA
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: I887d5073dba88e9a8a85ac10c771e4ccee7c84ff
2022-08-01 16:31:20 +00:00
Christopher Ferris
c5ad522fef Revert "Add support for only starting 64 bit zygote."
This reverts commit da94c7f650.

Reason for revert: It appears this change slows down boot on normal devices.

Technically, this change is not necessary, but it prevents starting the secondary and having it throw an error in the only run 64 bit zygote config. But it's easier to throw the error than slow down boot up.

Bug: 238971179

Test: Verified that on a 64 with 32 config, the secondary zygote
Test: starts but exits.
Change-Id: I7ab0496a402db83e70168d52e5d5911b82a3b06a
Merged-In: I7ab0496a402db83e70168d52e5d5911b82a3b06a
(cherry picked from commit 3fa3f861d4)
2022-07-15 00:57:54 +00:00
David Anderson
2d4337f5bf vts_fs_test: Only require EROFS in T+ kernels. am: aee8ddbc46 am: 0375a89f9a am: c134d822c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19293151

Change-Id: Ieb67be49ae75dbec728417916f0f7f26001df94b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-15 00:35:49 +00:00
David Anderson
14356b9e10 Revert "Do not enforce EROFS for android-T and below." am: 3282850933 am: 8504d681de am: 71a91e72a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19293150

Change-Id: Ia6230fc5adb061398ad2551baf5661714ff27c6b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-15 00:35:28 +00:00
David Anderson
c134d822c5 vts_fs_test: Only require EROFS in T+ kernels. am: aee8ddbc46 am: 0375a89f9a
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19293151

Change-Id: If5813a6f87a33d0e597f43e1aaa873a419aa32d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-15 00:17:54 +00:00
David Anderson
71a91e72a8 Revert "Do not enforce EROFS for android-T and below." am: 3282850933 am: 8504d681de
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19293150

Change-Id: I4b32d46afcacfc6f94ecd083ddc036b34a19e87f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-15 00:17:38 +00:00
David Anderson
0375a89f9a vts_fs_test: Only require EROFS in T+ kernels. am: aee8ddbc46
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19293151

Change-Id: I39fdaf697f69dcb1dabe6c7f8c4f8793d4e3854a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 23:57:53 +00:00
David Anderson
8504d681de Revert "Do not enforce EROFS for android-T and below." am: 3282850933
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19293150

Change-Id: I9f1bb4005459345e536f04cef5f26aa2277963d8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 23:57:36 +00:00
David Anderson
aee8ddbc46 vts_fs_test: Only require EROFS in T+ kernels.
Bug: 237765186
Test: vts_fs_test
Ignore-AOSP-First: cherry-pick
Change-Id: I294535953bfbe0f246347487b746d3adf2fca1aa
Merged-In: I294535953bfbe0f246347487b746d3adf2fca1aa
2022-07-14 17:47:51 +00:00
David Anderson
3282850933 Revert "Do not enforce EROFS for android-T and below."
This reverts commit a571d4a9bc.

Reason for revert: Incorrect fix

Bug: 237765186
Ignore-AOSP-First: cherry-pick
Change-Id: I6586c8e53cc89418d1802807a1a2e108f7e825d3
Merged-In: I6586c8e53cc89418d1802807a1a2e108f7e825d3
2022-07-14 17:47:47 +00:00
Andrew Chant
5db0449a87 Merge "Add support for only starting 64 bit zygote." into tm-d1-dev am: 5fcd22acc7
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19272483

Change-Id: Ie2a189e55f5359d3b74542b8a364124fbc0d0b51
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 00:55:06 +00:00
Andrew Chant
5fcd22acc7 Merge "Add support for only starting 64 bit zygote." into tm-d1-dev 2022-07-14 00:36:37 +00:00
Christopher Ferris
70052ec848 Add support for only starting 64 bit zygote.
This is part of the changes that will allow creating a single
system image but a different set of properties will either
start or not start the secondary zygote.

Bug: 227482437

Test: Verified that secondary doesn't start with same system image
Test: with ro.zygote set to zygote64 and abilists set appropriately.
Test: Verified that secondary does not start when restarting netd.
Test: Verified that secondary does start with same system image
Test: with ro.zygote set to zygote64_32 and abilists set appropriately.
Test: Verified that secondary does start when restarting netd.
Test: Verified that a 64 bit device only starts the primary.
Test: Verified that a 32 bit device only starts the primary.
Change-Id: Id37a223c73f9a61868b2e26450ef4b6964f7b496
Merged-In: Id37a223c73f9a61868b2e26450ef4b6964f7b496
2022-07-13 20:00:50 +00:00
P.Adarsh Reddy
6bc4d48268 Do not enforce EROFS for android-T and below. am: b2182ee8e0 am: ea705b6886 am: ee8996c310
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19263117

Change-Id: Ie5bc1e56106af916cfb9eaa89240d03d200ad944
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 17:59:11 +00:00
Benergy Meenan Ravuri
b6654eba7c Check userspace snapshots only for API level >= T am: 9591090a17 am: 6a7cb89655 am: f2e9b1e06a
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19263116

Change-Id: I7cedbd7b5fdbba00c9b835cae535981b8f056fc6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 17:59:10 +00:00
Akilesh Kailash
4cbca2930d libsnapshot: Fix vts_libsnapshot_test.SnapshotUpdateTest#FullUpdateFlow am: 299717115e am: 4327290387 am: 2e094636ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19263115

Change-Id: Ic6e4266568069b0a20b038cf1ce9e54783304b01
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 17:59:08 +00:00
P.Adarsh Reddy
ee8996c310 Do not enforce EROFS for android-T and below. am: b2182ee8e0 am: ea705b6886
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19263117

Change-Id: Iae9aa098fe96311f8f489c33054048c95b5c51ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 17:43:00 +00:00
Benergy Meenan Ravuri
f2e9b1e06a Check userspace snapshots only for API level >= T am: 9591090a17 am: 6a7cb89655
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19263116

Change-Id: I5c6c9c3f7138e753f7d8c43f16d2753de10ec731
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 17:42:58 +00:00
Akilesh Kailash
2e094636ab libsnapshot: Fix vts_libsnapshot_test.SnapshotUpdateTest#FullUpdateFlow am: 299717115e am: 4327290387
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19263115

Change-Id: I595a57d227bdcbf5adb4676c6e188efc48e0dad2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 17:42:57 +00:00
P.Adarsh Reddy
ea705b6886 Do not enforce EROFS for android-T and below. am: b2182ee8e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19263117

Change-Id: Iea94240e30254428bc3c1c6ddcc79784b3f3c7b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 17:25:42 +00:00
Benergy Meenan Ravuri
6a7cb89655 Check userspace snapshots only for API level >= T am: 9591090a17
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19263116

Change-Id: I750b36be179054818ba7f5f724e01f17fa7e41a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 17:25:41 +00:00
Akilesh Kailash
4327290387 libsnapshot: Fix vts_libsnapshot_test.SnapshotUpdateTest#FullUpdateFlow am: 299717115e
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19263115

Change-Id: I487a3706561233cb3834593b570c80a9abfa6b3d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-13 17:25:40 +00:00
P.Adarsh Reddy
b2182ee8e0 Do not enforce EROFS for android-T and below.
EROFS is not mandatory for android T and below,
so skip the test for those.

Bug: 237765186
Test: vts_fs_test fs#ErofsSupported
Change-Id: Iceea46f8f2d443636de504962b718a2461605591
Ignore-AOSP-First: already present in aosp/master
2022-07-12 17:58:24 +00:00
Benergy Meenan Ravuri
9591090a17 Check userspace snapshots only for API level >= T
Skip checking for userspace snapshots enabled property
for API level < T as this feature is not applicable for
GRF targets.

Bug: 236450435
Test: vts_ota_config_test
Change-Id: Ib5083f6237cdf4962aae06f166811d67cf6c385e
Ignore-AOSP-First: already present in aosp/master
2022-07-12 17:57:59 +00:00
Akilesh Kailash
299717115e libsnapshot: Fix vts_libsnapshot_test.SnapshotUpdateTest#FullUpdateFlow
Check if compression feature is enabled.

Bug: 238143011
Test: OTA
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: I77663799a5371f1de8b4e29d7c777a24249d1b7b
Ignore-AOSP-First: already present in aosp/master
2022-07-12 17:57:25 +00:00
Jason Chiu
09ab353773 bootstat: add more bootreasons
add more bootreasons for new projects

Bug: 219902794
Test: trigger apc watchdog then "adb root; adb shell bootstat -p"
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
Merged-In: I7e19c4d48fb3d5b1c49dc8688936cf1d6eea6e9c
Change-Id: If90861e8460db8bb7125097e32315c18feb327da
2022-06-28 13:21:03 +00:00
Ray Ye
1ae6338dfa Updating async trace for track trace symbols from T/U to G/H am: 621c74c063 am: bb64af6a74
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19037614

Change-Id: I9f5f44a30b1ba0453fd3cc96d7ef3aef6f3d3f21
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 20:17:20 +00:00
Akilesh Kailash
81f02d9fd7 libsnapshot: Fix vts_libsnapshot_test for GRF with Vendor on S am: ae04e7ede1 am: 55ff728d84
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/18917076

Change-Id: I947ead6761bff2ece69589b7e41b0d1e39d2a7f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 20:16:51 +00:00
Ray Ye
bb64af6a74 Updating async trace for track trace symbols from T/U to G/H am: 621c74c063
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/19037614

Change-Id: I164c27b66d3b751f530569d447c17711e2163c99
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 20:00:53 +00:00
Akilesh Kailash
55ff728d84 libsnapshot: Fix vts_libsnapshot_test for GRF with Vendor on S am: ae04e7ede1
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/18917076

Change-Id: I579b6c94d768dcca81a39f81866e02fed3e710f5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 20:00:11 +00:00
Ray Ye
621c74c063 Updating async trace for track trace symbols from T/U to G/H
Bug: 230399626
Test: atest TraceDevTest
Ignore-AOSP-First: Change from aosp/2078467 without ABI change
Change-Id: Ia927c19f544536f78c20ccef5830bd1be0cebf9b
Merged-In: Ia1b39f55c96011a9672f4d5c8763044f849d0bb2
2022-06-22 19:09:06 +00:00
Akilesh Kailash
ae04e7ede1 libsnapshot: Fix vts_libsnapshot_test for GRF with Vendor on S
If the vendor partition is on S and system partition is on T,
certain tests in vts_libsnapshot_test used to fail. This is primarily
because of inconsistent check between daemon and vts test.

vts test checks the userspace.snapshots.enabled property which is true on T
but never checks if the underlying vendor partition is on S. Hence,
vts test will enable userspace snapshots. However, daemon checks
the vendor partition and disables userspace snapshots thereby
leading to inconsistency.

This is only a problem on vts tests. The underlying OTA on devices
works fine as we have the vendor partition check.

Bug: 236311008
Test: vts_libsnapshot_test on S vendor and T system
      vts_libsnapshot_test on T vendor and T system
Ignore-AOSP-First: cherry-pick from aosp
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: Iad4f299bd2e07c9c01f5fbee6a20e2f01bf1778a
2022-06-16 22:56:14 +00:00
Shawn Willden
213bac0555 Implement GetRootOfTrust am: 18cf62712c am: 8b6990afb2
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/18868385

Change-Id: Ic8422dce80373ec297c511955e2fe5832ca57d6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 17:17:39 +00:00
Shawn Willden
8b6990afb2 Implement GetRootOfTrust am: 18cf62712c
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/18868385

Change-Id: I856bef5cf27ca209838202ca3668abbaf0f20e56
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 16:56:17 +00:00
Shawn Willden
18cf62712c Implement GetRootOfTrust
Bug: 219076736
Test: VtsAidlKeyMintTargetTest
Change-Id: I8485360f253ca20f008c5df5090e79c1781fbb4f
Merged-In: I8485360f253ca20f008c5df5090e79c1781fbb4f
Ignore-AOSP-First: already present in aosp/master
2022-06-14 10:22:43 +01:00
Akilesh Kailash
ac9d440fd0 Merge "init: Set oom_score_adj to snapuserd process" into tm-dev am: ae2837d80c am: 1f23fc8ed4
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/18720435

Change-Id: I258b629f3e5edb76aa57d4fabbdaf0e85ff66dd4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 23:56:56 +00:00
Akilesh Kailash
1f23fc8ed4 Merge "init: Set oom_score_adj to snapuserd process" into tm-dev am: ae2837d80c
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/18720435

Change-Id: Ie9f616ea996c87e871a66f1da077455b3d31fd05
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 23:40:33 +00:00
Akilesh Kailash
ae2837d80c Merge "init: Set oom_score_adj to snapuserd process" into tm-dev 2022-06-02 23:18:52 +00:00
Akilesh Kailash
1a2f870cb3 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
Ignore-AOSP-First: cherry-pick from AOSP
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: Ic2c85aa470522b4bc847a16b4f5cebfc528ed3cf
2022-06-02 21:19:46 +00:00
Stephen Crane
6c63b64cf8 [trusty] Bump number of ACVP arguments to match boringssl am: 71100bbc44 am: 1aaabb52c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/18674342

Change-Id: Ifede35ac6a874f6e11366f69f5d11f628a21c54c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 12:32:41 +00:00
Stephen Crane
1aaabb52c2 [trusty] Bump number of ACVP arguments to match boringssl am: 71100bbc44
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/18674342

Change-Id: I85b72959eec0e8ee02ce0948a109f84f9618842e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 12:09:18 +00:00
Lucas Wei
6cc7b60bc2 fastboot: Add vendor_kernel_boot am: dc97f26ef9
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/18671329

Change-Id: Ia9e0da203162f817b8dde2ef9543ad4fc62d5886
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-01 15:53:28 +00:00
Lucas Wei
dc97f26ef9 fastboot: Add vendor_kernel_boot
Bug: 234474672
Bug: 214409109
Signed-off-by: Lucas Wei <lucaswei@google.com>
Merged-In: I8b0baa887e5e2309a1cb4a602fe8f6ca9e22526b
Change-Id: I60b7ec0c160d38e01b15ed547d51a2a007bfd7f5
2022-06-01 11:42:42 +08:00