Commit graph

10865 commits

Author SHA1 Message Date
Kelvin Zhang
55a0bb8856 Rotate logs on every boot
Currently, recovery-persist only rotates the logs if it can parse
/sys/fs/pstore/pmsg-ramoops-0 . Change this behavior to always rotate
last kernel log if present. This helps collect more debug logs when
troubleshooting boot failures.

Test: reboot device, make sure logs are rotated
Change-Id: I41da2eda3c6c241e90208af888e9e35bec0474fe
2023-05-30 06:39:56 -07:00
Steven Moreland
0e8d497ee1 Merge "Explicit init .rc user." 2023-04-24 18:19:00 +00:00
Steven Moreland
98322a3775 Explicit init .rc user.
Set the user explicitly.
Bug: 276813155
Test: boot

Change-Id: I26ee9db2a82dc89b35e551782b6b1d942e72c8cd
2023-04-14 16:12:23 +00:00
Roy Luo
772939db8b Merge "Configure USB gadget maximum power" 2023-04-06 08:00:18 +00:00
Roy Luo
fe37b5ebbc Configure USB gadget maximum power
The default 2mA would be applied if the field is left
unconfigured. Configure the gadget to use full power.

Test: boot to userspace fastbootd and recovery
Bug: 277022505
Change-Id: I18abd98b62f5ce8d35062debad8100d87140bdba
2023-04-06 00:27:51 +00:00
Treehugger Robot
d97f317e0d Merge "Add ZSTD dependency for recovery" 2023-03-17 18:55:07 +00:00
Kelvin Zhang
04a9449c30 Add ZSTD dependency for recovery
In prepartion for adding ZSTD support to OTA.

Bug: 274129758

Change-Id: I036a6a21eaac2eb5b31aaec072f2eb28bbc622aa
2023-03-17 17:23:30 +00:00
Treehugger Robot
aff08259ec Merge "Allow brick OTA package to be sideloaded in recovery" 2023-03-15 02:55:18 +00:00
Kelvin Zhang
170ad59954 Allow brick OTA package to be sideloaded in recovery
Makes testing easier, brick packaegs can now be tested directly in
recovery w/o having to go through GOTA.

Test: adb sideload brick_ota.zip
Bug: 273561331
Change-Id: I48214dc03e63b69e61fc217bc3f58923bb90a9a6
2023-03-14 17:10:42 -07:00
Kelvin Zhang
00bfe128f9 Merge "Require serialno field for brick OTA package on release-key devices" 2023-03-14 23:42:36 +00:00
Kelvin Zhang
2a8c6e0842 Require serialno field for brick OTA package on release-key devices
Bug: 273561331
Test: th
Change-Id: Ifba030dca61275bb05bc5a8b62413830d28ba2d4
2023-03-14 12:29:52 -07:00
Jaewan Kim
6f24f52f79 Merge "Stop mentioning about ALLOW_ADBD_NO_AUTH" am: 19e9af0a99
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2477204

Change-Id: I4ab6209dd454424ad149a7275b9e2e7e7623ba9e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 17:59:56 +00:00
Jaewan Kim
19e9af0a99 Merge "Stop mentioning about ALLOW_ADBD_NO_AUTH" 2023-03-08 17:34:24 +00:00
Elliott Hughes
a3954457b0 Stop mentioning about ALLOW_ADBD_NO_AUTH
ALLOW_ADBD_NO_AUTH is removed, so better not mention it.

Test: Build
Change-Id: Id9d730475165a38cf340e10febffe2e5a9da6725
2023-03-08 16:00:37 +00:00
Bill Yi
643d8b4bf9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie22d022ae68259aa2740b6ce8b74796cf5a006b3
2023-02-26 20:26:23 -08:00
Treehugger Robot
4139617b9e Merge "Revert "Fix doing silent update,power cut/restoration,screen is turned on"" am: 33f7eaccd3
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2434913

Change-Id: I0a4daa69ce8f464ea88a6ce1dd47725c537ce7a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-15 08:18:32 +00:00
Treehugger Robot
33f7eaccd3 Merge "Revert "Fix doing silent update,power cut/restoration,screen is turned on"" 2023-02-15 07:30:34 +00:00
Gregory Montoir
4a4ada9e9c Revert "Fix doing silent update,power cut/restoration,screen is turned on"
This reverts commit d43ec47f3b.

Bug: 245680635
Reason for revert: SoC specific solution, not standardized and documented for use by other OEMs.

Change-Id: Ide437e0db9d072c1199a715bac8014bc3f041ceb
2023-02-15 01:36:06 +00:00
Treehugger Robot
365c8c0b54 Merge "Reduce logs in update_verifier" am: f891951d07
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2423949

Change-Id: Ie228a0747c380efc4e35d7929956970ecbdcc3ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-06 23:05:15 +00:00
Treehugger Robot
f891951d07 Merge "Reduce logs in update_verifier" 2023-02-06 21:33:31 +00:00
Kelvin Zhang
27c731c706 Reduce logs in update_verifier
update_verifier logs to kernel log, reduce unnecessary log lines to
avoid throttling.

Test: th
Bug: 265715753
Change-Id: I57b5dcfbf04eebc62fdf96abf0c91d7df5e0f0ea
2023-02-06 12:20:53 -08:00
Treehugger Robot
df7a91962e Merge "Update health AIDL HAL to V2" am: e3ebedd279
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2317272

Change-Id: Ie231495e3296e2ca67706622de041b577112791b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-24 01:20:03 +00:00
Treehugger Robot
e3ebedd279 Merge "Update health AIDL HAL to V2" 2023-01-24 00:52:34 +00:00
Xin Li
f4d5465366 Merge tm-qpr-dev-plus-aosp-without-vendor@9467136
Bug: 264720040
Merged-In: I9ca1643c37cf1ccdfecff4bfd0f405718be75669
Change-Id: Id93e1d5501f36d130c985433ad73c4b9d1c91a88
2023-01-11 22:46:05 -08:00
Bill Yi
eb2fde62f7 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 1788ccc385 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ic58d7cffef7b3ed8bf8e07c8da5c0b74e3ade794
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-03 22:48:46 +00:00
Bill Yi
1788ccc385 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9ca1643c37cf1ccdfecff4bfd0f405718be75669
2022-12-29 20:40:13 -08:00
Jack Wu
6b39dee45d Update health AIDL HAL to V2
Bug: 251425963
Test: Build
Change-Id: I471f8fb9c7eb1044ea0b920d55728613188bfbdf
Signed-off-by: Jack Wu <wjack@google.com>
2022-12-24 13:13:18 +00:00
Bill Yi
a28ff36205 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: b904bdb445 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I96cd220c1661d3754f35e15d9172ad6b4b737880
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 06:14:04 +00:00
Bill Yi
b904bdb445 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I966dc384c93bb8ff1fc53620f8f69fce32f81000
2022-12-19 01:04:29 -08:00
Bill Yi
15f6446114 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into stage-aosp-master am: 0be94ca37d -s ours
am skip reason: subject contains skip directive

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

Change-Id: I3362e0253e48acbc36303471e2020d77ee76bdba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 19:05:25 +00:00
Bill Yi
6e253ed28f [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 331c830f27 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I6ee6574d12bcb180d66eed9a5c51c15d9166f4a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 19:05:17 +00:00
Bill Yi
0be94ca37d Merge "Import translations. DO NOT MERGE ANYWHERE" into stage-aosp-master 2022-12-05 18:22:29 +00:00
Treehugger Robot
3229e21a86 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: a70f6d22e6 -s ours am: fcbe39e97d -s ours
am skip reason: subject contains skip directive

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

Change-Id: If93570d884884436f3cc35b611dc5a0d38c6831d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 19:37:20 +00:00
Bill Yi
7e35c0bb72 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: c8817e7acc -s ours am: e541f5b339 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I262b0e742f3695bfdf94c60ba1663c74ea049a99
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 19:37:04 +00:00
Treehugger Robot
fcbe39e97d [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: a70f6d22e6 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I4280b17cc2f9e24610f11d08b8996d110c7023e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 18:45:23 +00:00
Bill Yi
e541f5b339 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: c8817e7acc -s ours
am skip reason: subject contains skip directive

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

Change-Id: I6b562a18ed10d9ce5b4cf95cf0ff61bbda9a3e1b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 18:45:06 +00:00
Treehugger Robot
a70f6d22e6 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-12-04 17:54:15 +00:00
Bill Yi
331c830f27 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6336403b03cb47bf394d4fdebe31115d1e0511f2
2022-12-03 11:45:41 -08:00
Bill Yi
c8817e7acc Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I067c002f71262a9be7bccff04f9f297192f81096
2022-12-03 11:28:30 -08:00
Bill Yi
1100299052 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 80267eba5d -s ours
am skip reason: subject contains skip directive

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

Change-Id: I9cdbb0d355ca479addf3cc5e583cbab033e84ef9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 20:54:54 +00:00
Bill Yi
80267eba5d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I242fd8d1a2309f4b64c88df8d4eac840ccb0eca2
2022-11-16 04:29:52 -08:00
Treehugger Robot
f131a19753 Merge "Fix errorprone warnings that should be errors" am: 05480411c5 am: bfaf8b288b
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2256446

Change-Id: I5a6a570a1b24a4de9c3cfdb580caeaab35a9bb53
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 00:13:53 +00:00
Treehugger Robot
bfaf8b288b Merge "Fix errorprone warnings that should be errors" am: 05480411c5
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2256446

Change-Id: I1c7a2a51a7fc97d19a899c2220c407b0cd875ad3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-20 23:45:22 +00:00
Treehugger Robot
05480411c5 Merge "Fix errorprone warnings that should be errors" 2022-10-20 23:11:41 +00:00
Bill Yi
d147802272 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: d1e5cf0eae -s ours
am skip reason: subject contains skip directive

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

Change-Id: I9e747a47a21675ad5c45cf7e4fb79eed4ec170f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 01:10:37 +00:00
Cole Faust
e587589cda Fix errorprone warnings that should be errors
This commit is part of a large scale change to fix errorprone
errors that have been downgraded to warnings in the android
source tree, so that they can be promoted to errors again.
The full list of changes include the following, but not all
will be present in any one individual commit:

BadAnnotationImplementation
BadShiftAmount
BanJNDI
BoxedPrimitiveEquality
ComparableType
ComplexBooleanConstant
CollectionToArraySafeParameter
ConditionalExpressionNumericPromotion
DangerousLiteralNull
DoubleBraceInitialization
DurationFrom
DurationTemporalUnit
EmptyTopLevelDeclaration
EqualsNull
EqualsReference
FormatString
FromTemporalAccessor
GetClassOnAnnotation
GetClassOnClass
HashtableContains
IdentityBinaryExpression
IdentityHashMapBoxing
InstantTemporalUnit
InvalidTimeZoneID
InvalidZoneId
IsInstanceIncompatibleType
JUnitParameterMethodNotFound
LockOnBoxedPrimitive
MathRoundIntLong
MislabeledAndroidString
MisusedDayOfYear
MissingSuperCall
MisusedWeekYear
ModifyingCollectionWithItself
NoCanIgnoreReturnValueOnClasses
NonRuntimeAnnotation
NullableOnContainingClass
NullTernary
OverridesJavaxInjectableMethod
ParcelableCreator
PeriodFrom
PreconditionsInvalidPlaceholder
ProtoBuilderReturnValueIgnored
ProtoFieldNullComparison
RandomModInteger
RectIntersectReturnValueIgnored
ReturnValueIgnored
SelfAssignment
SelfComparison
SelfEquals
SizeGreaterThanOrEqualsZero
StringBuilderInitWithChar
TreeToString
TryFailThrowable
UnnecessaryCheckNotNull
UnusedCollectionModifiedInPlace
XorPower

See https://errorprone.info/bugpatterns for more
information on the checks.

Bug: 253827323
Test: m RUN_ERROR_PRONE=true javac-check
Change-Id: I9393ceac22201e2bde4d5af7ec13e90d94956ed7
2022-10-15 21:33:27 -07:00
Bill Yi
d1e5cf0eae Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I49504e35c1adce5761e22c46c858fca0eada73cf
2022-10-15 15:15:41 -07:00
Treehugger Robot
e089b78334 Merge "Only check for powerwash in A/B ota packages" am: 56bca1f2d5 am: 31d74fa4ea
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2256203

Change-Id: I980e9a342f7ca39adb7a9c611afff695ba5a68e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-14 21:00:51 +00:00
Treehugger Robot
31d74fa4ea Merge "Only check for powerwash in A/B ota packages" am: 56bca1f2d5
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2256203

Change-Id: I97b0be09883a1b1737388241a338f50cf4196603
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-14 20:32:11 +00:00
Treehugger Robot
56bca1f2d5 Merge "Only check for powerwash in A/B ota packages" 2022-10-14 20:04:25 +00:00