Commit graph

2155 commits

Author SHA1 Message Date
Tianjie Xu
23c7af797a Merge "Add ability to show "installing security update"" into nyc-dev
am: 5823dd46df

* commit '5823dd46df9667c43e8fc3f5ff79987b7432da3f':
  Add ability to show "installing security update"

Change-Id: Ibe1667e9bd721d73a972f9c21a322c8ea088dc63
2016-05-02 17:47:52 +00:00
Tianjie Xu
5823dd46df Merge "Add ability to show "installing security update"" into nyc-dev 2016-05-02 17:38:17 +00:00
Tao Bao
f13662a349 recovery: Always log the update attempt.
am: 5687001895

* commit '568700189528c69a6cdd7a246127ce01463e033d':
  recovery: Always log the update attempt.

Change-Id: I48f3199c4640a17ae022879082f8de9948d94925
2016-05-02 16:32:41 +00:00
Tao Bao
5687001895 recovery: Always log the update attempt.
An OTA may be skipped due to low battery. But we should always log it to
understand why an update _fails_ to apply.

Bug: 27893175
Change-Id: I50a3fbbb3e51035e0ac5f1cca150e283852825c3
2016-04-29 15:41:25 -07:00
Tianjie Xu
35926c4b89 Add ability to show "installing security update"
Add a new command "--security" to boot commands. If this command is
observed as part of BCB, choose a different background text picture
for installing stage in recovery UI. As a result, users will see
"installing security update" instead of "installing system update"
when applying a security update package.

Bug: 27837319
Change-Id: I2e2253a124993ecc24804fa1ee0b918ac96837c5
2016-04-29 12:19:43 -07:00
Elliott Hughes
a7f7e7093e Merge "Improve the layout-related comments." into nyc-dev
am: 343eb72

* commit '343eb722ddd0146e5c752419b3ff9537cfa2d31d':
  Improve the layout-related comments.

Change-Id: Ia765c16883d92c6a00846413e8ada372952e8cbf
2016-04-28 02:40:39 +00:00
TreeHugger Robot
343eb722dd Merge "Improve the layout-related comments." into nyc-dev 2016-04-28 02:36:12 +00:00
Tianjie Xu
d57691e094 Merge "Update background text for recovery UI" into nyc-dev
am: eeca191

* commit 'eeca191f383d1fda6b1153cf4f443cafff7d7328':
  Update background text for recovery UI

Change-Id: I8b959e81da42baa1e95813bf6cab9a2fe374bb11
2016-04-28 00:58:33 +00:00
Tianjie Xu
eeca191f38 Merge "Update background text for recovery UI" into nyc-dev 2016-04-28 00:48:32 +00:00
Elliott Hughes
75191f32a5 Merge "Update recovery UI." into nyc-dev
am: 2f1eedd

* commit '2f1eedded83eea1956ee8b4d391000584588f094':
  Update recovery UI.

Change-Id: I881497ab669ef7e105a208c4c17062e6dc321380
2016-04-28 00:44:24 +00:00
Elliott Hughes
a369104971 Improve the layout-related comments.
Bug: http://b/26548285
Change-Id: I20ae75c4ec2dc64b982a047dba498ebda029c90d
2016-04-27 17:40:11 -07:00
Elliott Hughes
2f1eedded8 Merge "Update recovery UI." into nyc-dev 2016-04-28 00:31:21 +00:00
Tianjie Xu
a15708f45b Update background text for recovery UI
Pull in new translations and regenerate the background strings for
recovery UI.

Bug:27837319
Bug:26548285
Change-Id: I274938a5039421b947878da82336443e9647df24
2016-04-27 15:30:54 -07:00
Baligh Uddin
a42bca8555 Merge "Import translations. DO NOT MERGE" into nyc-dev
am: 47a7899  -s ours

* commit '47a78999ea8719359bf704db3bbe96db214d51fd':
  Import translations. DO NOT MERGE

Change-Id: If34b4be21c2bb75300c5aaf9fd1ef03a22a5f001
2016-04-27 22:04:19 +00:00
Elliott Hughes
faf36e04ed Update recovery UI.
* Use new animation.
* Use new non-holo progress bars.
* Use recommended spacing for recovery UI.

Bug: http://b/26548285
Change-Id: I8411e89d6a6a9ce638b8645e19e5082d0d968cee
2016-04-27 14:46:01 -07:00
Baligh Uddin
47a78999ea Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-04-27 21:18:01 +00:00
Baligh Uddin
abd0988011 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-04-27 21:17:58 +00:00
Bill Yi
e84e73a018 Import translations. DO NOT MERGE
am: ca5003e  -s ours

* commit 'ca5003e0336ebe4b8260172ed8183c5ae9095018':
  Import translations. DO NOT MERGE

Change-Id: I51c2cfd99a9c6d25cd3da1344229dba7885cc101
2016-04-26 22:48:43 +00:00
Bill Yi
a00435652a Import translations. DO NOT MERGE
Change-Id: Id48a7d573bdfd417975bb1054eb6a2453a151bf8
Auto-generated-cl: translation import
2016-04-26 15:06:53 -07:00
Bill Yi
ca5003e033 Import translations. DO NOT MERGE
Change-Id: I3383f51c68573c3e350f1bad5fce90be5643edb0
Auto-generated-cl: translation import
2016-04-26 15:04:31 -07:00
Baligh Uddin
9f5565bd10 Import translations. DO NOT MERGE
Change-Id: Idd1fdeee52a77d6fb4ecc271b6fdfc41e62b2bd0
Auto-generated-cl: translation import
2016-04-26 13:38:33 -07:00
Baligh Uddin
4315841f74 Import translations. DO NOT MERGE
Change-Id: I2c06d0cb0aa43c69f4f4b8c0ce6f7a81dbd00dba
Auto-generated-cl: translation import
2016-04-26 13:35:32 -07:00
Bill Yi
d210dc0478 Import translations. DO NOT MERGE
am: e59f5de  -s ours

* commit 'e59f5de5772f16a9969d655d5b184d0f75d664b9':
  Import translations. DO NOT MERGE

Change-Id: I06b45f12e41dff2da3d4538cbf35203008372cea
2016-04-25 12:53:24 +00:00
Bill Yi
e59f5de577 Import translations. DO NOT MERGE
Change-Id: I9706fca12f3c0a19019c41ba0eaf395ac53ba0b1
Auto-generated-cl: translation import
2016-04-24 22:28:28 -07:00
Tao Bao
2f9be55172 Merge "recovery: Dump the signature in the zip package." into nyc-dev
am: 34ca089

* commit '34ca0892f4ae440becbe8097e7b68cd5a6d494d3':
  recovery: Dump the signature in the zip package.

Change-Id: I674e1a43aafe0140371b123bb7e14fc928c43988
2016-04-22 23:49:58 +00:00
Tao Bao
34ca0892f4 Merge "recovery: Dump the signature in the zip package." into nyc-dev 2016-04-22 23:36:50 +00:00
Elliott Hughes
87b0654f00 Go back to the old ear-wiggling Android animation.
am: 692941be79

* commit '692941be79fd765f8873d810ae627a917dfd791b':
  Go back to the old ear-wiggling Android animation.

Change-Id: I7258a81b7068a98d005b98bd4c2bbad38485366d
2016-04-21 23:16:19 +00:00
Elliott Hughes
692941be79 Go back to the old ear-wiggling Android animation.
But keep the new code so we can easily test new animations when we have them.

This change includes tbao's de-interlace script, plus a one-liner that's
necessary to play the animation at the correct speed when there's no
progress bar showing. (This was always a bug, it's just way more noticeable
when your animation only has 7 frames.)

Bug: http://b/28316654
Bug: http://b/26548285
Change-Id: I32c601c352d6be235d1b44f14fca7e125defd77d
2016-04-21 14:26:14 -07:00
Tianjie Xu
4cc6145423 Merge "Regenerate background text imgs in recovery" into nyc-dev
am: df093c1512

* commit 'df093c15121df40693519d2a1c703cf1684423d5':
  Regenerate background text imgs in recovery

Change-Id: If4c878b2ffd03189107ed24e1cd3e9e88833024c
2016-04-21 01:05:46 +00:00
Tianjie Xu
df093c1512 Merge "Regenerate background text imgs in recovery" into nyc-dev 2016-04-21 00:55:51 +00:00
Tianjie Xu
210b0a5a20 Merge "Fix matches_locale function" into nyc-dev
am: 8b86373

* commit '8b86373fd954276b18a6fba81afbe42c9caa49d3':
  Fix matches_locale function

Change-Id: I9494f416b12cba3c63972096137ddaf805bc453b
2016-04-20 22:12:11 +00:00
Tianjie Xu
8b86373fd9 Merge "Fix matches_locale function" into nyc-dev 2016-04-20 21:55:30 +00:00
Tianjie Xu
2430e2978b Fix matches_locale function
matches_locale was expecting input locale string to have at most one
underscore; as a result "zh_CN_#Hans" ignores "zh_CN" and matches into
"zh". Fix the match function and add unit tests.

Bug: 27837319
Change-Id: I4e8a66f91cae6ac2a46b6bf21f670d5ea564c7c8
2016-04-20 14:50:35 -07:00
Tao Bao
e179276f7d recovery: Dump the signature in the zip package.
We have been occasionally seeing "signature verification failed" error
message when applying an update. Make more verbose output to help
debugging.

Bug: 28246534
Change-Id: Id83633adc9b86b3fd36abbb504e430f0816f12e4
2016-04-20 14:44:29 -07:00
Elliott Hughes
0e5292104b Merge "Remove trailing punctuation from recovery strings." into nyc-dev
am: 4eec72d

* commit '4eec72d2cf8c1be0068feffc804035dab756c78d':
  Remove trailing punctuation from recovery strings.

Change-Id: If9529323c0933f88f8d28a450589d2864af19ad2
2016-04-20 15:21:34 +00:00
Elliott Hughes
5be36da651 Decrease OTA package verification times further.
am: dd895d0

* commit 'dd895d0adaa691a078f18a95a7f5ac0eaf776cae':
  Decrease OTA package verification times further.

Change-Id: I2d7da4a19c3fc52cae1dedc6e26201fe0f972d37
2016-04-20 15:21:34 +00:00
Elliott Hughes
4eec72d2cf Merge "Remove trailing punctuation from recovery strings." into nyc-dev 2016-04-20 15:14:47 +00:00
Elliott Hughes
ebcdea85e3 Remove trailing punctuation from recovery strings.
Bug: http://b/26548285
Change-Id: I235c620532e1759bfc76a4486409a4404f1c8c6a
2016-04-19 16:17:42 -07:00
Elliott Hughes
dd895d0ada Decrease OTA package verification times further.
Timing from Nexus 5X:

      89 MiB OTA update package: 1.4 s -> 0.6 s (decreased by 57%)
    1196 MiB OTA update package: 8.0 s -> 7.5 s (decreased by 6%)

Bug: http://b/28135231
Change-Id: Id91f2ad15df2bffb9f8a4b4ec5a57657a02847ec
2016-04-19 15:24:38 -07:00
Tianjie Xu
494cf65176 Regenerate background text imgs in recovery
Add a image for "installing security update"; and make the text
looks larger in the image. Also extend the length of string
wrapper for high definition devices, so the text will fit better
on the screen.

Bug: 22465983
Bug: 27837319
Change-Id: I2a8b7437f96a834660d6d8d8861c722dcde812f2
2016-04-18 16:49:42 -07:00
Elliott Hughes
e8d0ecccf7 Merge "Update the system update animation." into nyc-dev 2016-04-15 19:53:19 +00:00
Elliott Hughes
498cda6ef6 Update the system update animation.
Switch to a Wear-like intro/loop system. We don't have an intro yet,
but hopefully this will let Wear delete more code when they move to N.
Unlike them, we don't hard-code the number of frames: we just look to
see what we have available. We do hard-code the fps though.

Also add a graphics test mode so you can see a demo of the UI components
without having to actually apply an OTA.

Also fix a bug where default locale is null rather than en-US: it's
more useful to show _some_ text if we don't have a locale (which should
only be during development anyway).

Bug: http://b/26548285
Change-Id: I63422e3fef3c41109f924d96fb5ded0b3ae7815d
2016-04-14 22:44:23 -07:00
Elliott Hughes
70ae70b81e Explicitly set the font face and color.
This matches what the UI folks asked us to use.

Also fix the locale parsing code.

Bug: http://b/27837319
Bug: http://b/22465983
Bug: http://b/26548285
Change-Id: I316a6e1f44855313dd983950abf21b543be7ffc0
2016-04-14 17:18:41 -07:00
Elliott Hughes
8febafa67e Use BoringSSL instead of mincrypt to speed up package verification.
This changes the verification code in bootable/recovery to use
BoringSSL instead of mincrypt.

Cherry-pick of 452df6d99c, with
merge conflict resolution, extra logging in verifier.cpp, and
an increase in the hash chunk size from 4KiB to 1MiB.

Bug: http://b/28135231
Change-Id: I1ed7efd52223dd6f6a4629cad187cbc383d5aa84
2016-04-13 16:39:56 -07:00
Yabin Cui
a58a6dbe3d uncrypt: split libbootloader_message_writer for reuse.
init and vold also need to write bootloader message, so
split this function from uncrypt into a separate library.

Bug: 27176738
Change-Id: If9b0887b4f6ffab6162d9cb47a6ceb7eedd60b4d
2016-04-08 11:46:56 -07:00
Bill Yi
b162551a30 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-04-05 18:44:50 +00:00
Bill Yi
c1afe830cf Import translations. DO NOT MERGE
Change-Id: Ic643d0e2d39e45d772ffb25001de45afdf923579
Auto-generated-cl: translation import
2016-04-05 11:13:59 -07:00
Mark Salyzyn
a569727609 recovery-persist: pick up both pstore console files
(cherry pick from commit 5f7111ff4d)

- Volantis console-ramoops-0 (upstream correct)
- Angler console-ramoops
- Bullhead console-ramoops
- Shamu console-ramoops

NB: Shamu also has kernel crashes in other pstore files,
    not merging them in.

Bug: 27176738
Change-Id: Ib6eef3e25475935b89252f51c960719c7860511a
2016-04-05 07:46:34 -07:00
Bill Yi
f75b6e47de Import translations. DO NOT MERGE
Change-Id: Ia0012b89f00c65ec6056d29612748e60564bab32
Auto-generated-cl: translation import
2016-04-04 17:59:17 -07:00
Mark Salyzyn
13aca598f8 recovery: use __android_log_pmsg_file_write for log files
(cherry-pick from commit a4f701af93)

- Add call to __android_log_pmsg_file_write for recovery logging.
- Add call to refresh pmsg if we reboot back into recovery and then
  allow overwrite of those logs.
- Add a new one-time executable recovery-refresh that refreshes pmsg
  in post-fs phase of init. We rely on pmsg eventually scrolling off
  to age the content after recovery-persist has done its job.
- Add a new one-time executable recovery-persist that transfers from
  pmsg to /data/misc/recovery/ directory if /cache is not mounted
  in post-fs-data phase of init.
- Build and appropriately trigger the above two as required if
  BOARD_CACHEIMAGE_PARTITION_SIZE is undefined.
- Add some simple unit tests

NB: Test failure is expected on systems that do not deliver either
the recovery-persist or recovery-refresh executables, e.g. systems
with /cache. Tests also require a timely reboot sequence of test
to truly verify, tests provide guidance on stderr to direct.

Bug: 27176738
Change-Id: I17bb95980234984f6b2087fd5941b0a3126b706b
2016-03-31 13:52:54 -07:00