Commit graph

10699 commits

Author SHA1 Message Date
Akilesh Kailash
b53f8264ce Merge "update_verifier: Verify blocks" am: 5614437de3 am: b71f7757be
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2039129

Change-Id: I58c7e33784418c9576ced53af4b379c1fcd32ad8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 23:45:04 +00:00
Treehugger Robot
f6f84d04b2 Merge "Fix logical bugs around access() POSIX call" am: e50efc781a
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2118747

Change-Id: Ic3c0ce1161b34d3edc2966d4622fc45460ca335d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 23:11:02 +00:00
Akilesh Kailash
b71f7757be Merge "update_verifier: Verify blocks" am: 5614437de3
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2039129

Change-Id: I53d5a16f78d647dbec57abc51b5d5208313443e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 23:03:33 +00:00
Treehugger Robot
e50efc781a Merge "Fix logical bugs around access() POSIX call" 2022-06-09 22:50:35 +00:00
Akilesh Kailash
5614437de3 Merge "update_verifier: Verify blocks" 2022-06-09 22:43:32 +00:00
Akilesh Kailash
dc1f6dadef update_verifier: Verify blocks
Check if the block verification was already done
by snapuserd daemon - If so, skip the verification
process. If daemon failed to verify the block,
update_verifier will fallback and continue
the verification.

Bug: 193863442
Test: OTA
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: I18946fb730376f19cce0738bd6765d5f5d0248b6
2022-06-08 06:28:08 +00:00
Artem Yudin
0cd72a9b62 Fix logical bugs around access() POSIX call
According to docs of access():
If the specified access is permitted, access() returns 0.
If the given file cannot be accessed in the specified way, access() returns -1

See my comment: https://android-review.googlesource.com/c/platform/bootable/recovery/+/883392/comments/e9b76d97_f4cab88d

Test: builds
Bug: 234887937
Change-Id: I5712d61e967566246603f23a62e2c7b708130b0d
2022-06-07 17:19:23 -07:00
Treehugger Robot
a3c0a22555 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 94bb8a80c7 -s ours am: 03ddefaaca -s ours am: 19bc443994 -s ours am: 9d19f91485 -s ours
am skip reason: subject contains skip directive

Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2115719

Change-Id: I56833cca2dcabd8ee88d7dbf6896fc16607c5366
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06 21:54:06 +00:00
Bill Yi
dd716c7189 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: dff2898c21 -s ours am: 0a0ee7645c -s ours am: 7bba14c4db -s ours am: b480508c02 -s ours
am skip reason: subject contains skip directive

Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2115719

Change-Id: I0d6210a80c63556d9e74a8ca5fe01fad1f0bd538
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06 21:53:54 +00:00
Treehugger Robot
9d19f91485 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 94bb8a80c7 -s ours am: 03ddefaaca -s ours am: 19bc443994 -s ours
am skip reason: subject contains skip directive

Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2115719

Change-Id: I7f6aedf2af4b4c53322fc03796a2e055cdb698e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06 21:28:27 +00:00
Bill Yi
b480508c02 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: dff2898c21 -s ours am: 0a0ee7645c -s ours am: 7bba14c4db -s ours
am skip reason: subject contains skip directive

Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2115719

Change-Id: I255029290c406ca0382c5cc1e01d24b5535fac9b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06 21:28:15 +00:00
Treehugger Robot
19bc443994 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 94bb8a80c7 -s ours am: 03ddefaaca -s ours
am skip reason: subject contains skip directive

Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2115719

Change-Id: Ia894c3677a4f1204296e3b8c56d0e260cc82a2d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06 21:02:08 +00:00
Bill Yi
7bba14c4db [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: dff2898c21 -s ours am: 0a0ee7645c -s ours
am skip reason: subject contains skip directive

Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2115719

Change-Id: Ibfcd2099ccd4624f145900127b364f616288e48d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06 21:01:56 +00:00
Bill Yi
5140ceb71c [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 13a9313958 -s ours am: d8fd028597 -s ours am: 9f8858bc4c -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18751378

Change-Id: I030f972ff39269e529ba47f5f48b15d4ca31486c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06 20:13:32 +00:00
Bill Yi
9f8858bc4c [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 13a9313958 -s ours am: d8fd028597 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18751378

Change-Id: I24d8bf02dee1b7203bc3899bc16498145a3fa3b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06 19:47:15 +00:00
Treehugger Robot
03ddefaaca [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 94bb8a80c7 -s ours
am skip reason: subject contains skip directive

Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2115719

Change-Id: I69ed2c017c42ceb5481ce5b18d07cfcbc3d24016
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06 19:19:22 +00:00
Bill Yi
0a0ee7645c [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: dff2898c21 -s ours
am skip reason: subject contains skip directive

Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2115719

Change-Id: I05542624f07e56108ba947438e870363b551a1f5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06 19:19:06 +00:00
Bill Yi
d8fd028597 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 13a9313958 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18751378

Change-Id: I401ac49f9875c320369cfb10dd1426252606aaa9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-06 19:14:41 +00:00
Treehugger Robot
94bb8a80c7 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-06-06 18:31:02 +00:00
Bill Yi
dff2898c21 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I743e703cb2c2e449d4f51cea3e86e4575da0e9cf
2022-06-05 22:04:18 -07:00
Bill Yi
13a9313958 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9adb95505d8382d46b08cc3daf52f8640610f76b
2022-06-05 21:40:37 -07:00
Treehugger Robot
0af756cd6f Merge "Fix memory leak in OTA verifier code" am: 65162cd9b0 am: efc4279944 am: 6e0b7fa5ec am: 1ec805514b
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2106828

Change-Id: Ic6fff9e16eea28bcd72fa96b218d3b2dd5ea5dd8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26 02:38:08 +00:00
Treehugger Robot
1ec805514b Merge "Fix memory leak in OTA verifier code" am: 65162cd9b0 am: efc4279944 am: 6e0b7fa5ec
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2106828

Change-Id: I62c95f4549322185a71ffbca79041a6346abd16d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26 02:12:20 +00:00
Treehugger Robot
6e0b7fa5ec Merge "Fix memory leak in OTA verifier code" am: 65162cd9b0 am: efc4279944
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2106828

Change-Id: I75f7925aaacd1fa51bfef443465bb264b66ded2d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 23:38:00 +00:00
Treehugger Robot
efc4279944 Merge "Fix memory leak in OTA verifier code" am: 65162cd9b0
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2106828

Change-Id: I1bf6b0d986f44aac1a34ed60a9147d5e051a88cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 23:09:27 +00:00
Treehugger Robot
65162cd9b0 Merge "Fix memory leak in OTA verifier code" 2022-05-25 22:38:57 +00:00
Kelvin Zhang
063bc24564 Fix memory leak in OTA verifier code
StartIteration() allocates some memory, which are release in
EndIteration(). Since we never called EndIteration(), these
memories are leaked.

Test: th
Bug: 233209345
Change-Id: I71c1d6eec16b8ac20c35e180f34fec50d0baec1a
2022-05-25 14:05:48 -07:00
Bill Yi
67c4aa8d0a [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: fe7c99d955 -s ours am: bae0c14402 -s ours am: 02fab679cf -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18424200

Change-Id: I5d3246e6623b142c3c2aaa4e3a896d93411e8fb9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 23:37:19 +00:00
Bill Yi
7217e26287 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: fe7c99d955 -s ours am: ee6da527e0 -s ours am: 617b242919 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18424200

Change-Id: I22174f9753fb8c413b8faa0685d771051369e81a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 23:25:20 +00:00
Bill Yi
c65a5157fb [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: fe7c99d955 -s ours am: bae0c14402 -s ours am: 0f42625e25 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18424200

Change-Id: I6436c8a595a13e4a7eb74bdab505597c295249f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 23:00:07 +00:00
Bill Yi
02fab679cf [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: fe7c99d955 -s ours am: bae0c14402 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18424200

Change-Id: I9ad78a897a83bb6ab97455cf74e3d4b0ae85c7c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 22:42:52 +00:00
Bill Yi
0f42625e25 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: fe7c99d955 -s ours am: bae0c14402 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18424200

Change-Id: I7943a6d2bd2f99ca82faaa32a5f6dd81edaaf168
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 22:41:05 +00:00
Bill Yi
617b242919 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: fe7c99d955 -s ours am: ee6da527e0 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18424200

Change-Id: I70864df5de46380a46d806a3d71c00d0ad8f3cf4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 22:35:22 +00:00
Bill Yi
bae0c14402 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: fe7c99d955 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18424200

Change-Id: I2ee8223dc68abe163acd6fa791e7fe9be8a48a38
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 22:27:03 +00:00
Bill Yi
ee6da527e0 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: fe7c99d955 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18424200

Change-Id: I577d04f71dc3c94b1cf318df0b74b82d1798123e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 22:24:34 +00:00
Automerger Merge Worker
805150e18f Merge "[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 284ba5bc6c -s ours am: 0fd758b644 -s ours am: 1499a58c40 -s ours am: 28ff3603fb -s ours" into tm-qpr-dev-plus-aosp 2022-05-18 21:16:15 +00:00
Bill Yi
e99066ff04 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 284ba5bc6c -s ours am: 0fd758b644 -s ours am: 1499a58c40 -s ours am: 28ff3603fb -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18397908

Change-Id: Ife1379431fd4b04e4f872c568d50cbbeea273cfc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 21:15:07 +00:00
Bill Yi
28fc30ab25 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 284ba5bc6c -s ours am: 0fd758b644 -s ours am: 1499a58c40 -s ours am: b0fe516035 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18397908

Change-Id: Ie513ee5f5e4444bbefa5f0e8e280a0e319f1e38a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 21:14:35 +00:00
Bill Yi
28ff3603fb [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 284ba5bc6c -s ours am: 0fd758b644 -s ours am: 1499a58c40 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18397908

Change-Id: I900a577f4ae1d614ecb33a28ba8ac72b1b4e0cae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 21:01:51 +00:00
Bill Yi
b0fe516035 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 284ba5bc6c -s ours am: 0fd758b644 -s ours am: 1499a58c40 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18397908

Change-Id: Ib0b93ee94ba3df41ae3297e89ca3e2a30dbc72bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 21:01:31 +00:00
Bill Yi
194382f7e0 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 284ba5bc6c -s ours am: 0fd758b644 -s ours am: ee3c7b6677 -s ours am: ecf782293d -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18397908

Change-Id: I5f28f8911430fc992ffaf79e71ccfb77056e3790
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 20:58:04 +00:00
Bill Yi
ecf782293d [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 284ba5bc6c -s ours am: 0fd758b644 -s ours am: ee3c7b6677 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18397908

Change-Id: Ie9032ee78da9ce4c6296ce9c045c519d5da1f79e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 20:45:21 +00:00
Bill Yi
1499a58c40 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 284ba5bc6c -s ours am: 0fd758b644 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18397908

Change-Id: Ia71cc5ec4aa01e1f92d39bd879ce2039b336f91c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 20:44:47 +00:00
Bill Yi
ee3c7b6677 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 284ba5bc6c -s ours am: 0fd758b644 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18397908

Change-Id: I0cefa8a958c0631a840d253dff66b207e17b14f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 20:19:59 +00:00
Bill Yi
fe7c99d955 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib90d1ccd45b3e2621fe151472941329cceccd64b
2022-05-16 20:14:49 -07:00
Bill Yi
3203d15ba5 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 357ae4bdac -s ours am: d8d7f1033b -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18397386

Change-Id: I7f0288a47be24d57219fb383ac333fade01f522e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 22:11:46 +00:00
Bill Yi
3e78dd15f4 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 03281a2b5e -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18397385

Change-Id: I411eaebada7dfd6932b3421fe0d643f017f7ea00
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 22:07:07 +00:00
Bill Yi
0fd758b644 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 284ba5bc6c -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18397908

Change-Id: Ib8fa79cb44cb6ac814091e6d4a48f573c39924d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 14:21:12 +00:00
Bill Yi
9722d6b963 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 357ae4bdac -s ours am: 156abc9950 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18397386

Change-Id: I64adc27306e35eeb843f40f8bc7d2998bc04e4c4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 09:10:22 +00:00
Bill Yi
156abc9950 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 357ae4bdac -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/18397386

Change-Id: I5b311260a781076d19d994801fb63fe12d7d6df5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 08:15:24 +00:00