Commit Graph

9577 Commits

Author SHA1 Message Date
Tianjie Xu 6a3646fc03 Merge "Log the last command to cache" 2018-02-08 19:53:37 +00:00
Tao Bao 95b85db9e2 Merge "Document instructions for using adb under recovery." am: 7ee7e27400 am: 41186e13b7
am: 1e7d0922c7

Change-Id: I3ee3fceb49b63b68d9aca1581c9e5fdd9233f532
2018-02-08 19:45:02 +00:00
Tao Bao 1e7d0922c7 Merge "Document instructions for using adb under recovery." am: 7ee7e27400
am: 41186e13b7

Change-Id: I400e8c56060cf52718603fff80423ec5f1780088
2018-02-08 19:40:31 +00:00
Tao Bao 41186e13b7 Merge "Document instructions for using adb under recovery."
am: 7ee7e27400

Change-Id: Ia63a213baf4c1886379003220580e42cdc0f19c2
2018-02-08 19:36:32 +00:00
Treehugger Robot 7ee7e27400 Merge "Document instructions for using adb under recovery." 2018-02-08 19:20:57 +00:00
Tao Bao c84a4ef053 Document instructions for using adb under recovery.
Fixes: 72740736
Test: N/A
Change-Id: Ifc96ed785fd80501bc6c276cb649c8cc1f05be0e
2018-02-07 20:55:33 -08:00
Tianjie Xu 284752e2bc Log the last command to cache
When performing an update, save the index and cmdline of the current
command into the last command file if this command writes to the stash
either explicitly of implicitly. This mitigates the overhead to update
the last command file for every command. I ran a simple test on angler
and the time to update 1000 times is ~2.3 seconds.

Upon resuming an update, read the saved index first; then
  1. In verification mode, check if all commands before the saved index
     have already produced the expected target blocks. If not, delete the
     last command file so that we will later resume the update from the
     start of the transfer list.
  2. In update mode, skip all commands before the saved index. Therefore,
     we can avoid deleting stashes with duplicate id unintentionally;
     and also speed up the update.

If an update succeeds or is unresumable, delete the last command file.
Bug: 69858743
Test: Unittest passed, apply a failed update with invalid cmd on angler
and check the last_command content, apply a failed update with invalid
source hash and last_command is deleted.
Change-Id: Ib60ba1e3c6d111d9f33097759b17dbcef97a37bf
2018-02-06 16:16:49 -08:00
android-build-team Robot d3997ffbce Snap for 4577102 from d5097253f6 to pi-release
Change-Id: Ic2038e503701c767f6514894f387dd377564534e
2018-01-31 17:23:38 +00:00
Tianjie Xu d5097253f6 Merge "Avoid overwrite of the error message in AbortFn" am: bded087f7d am: 20af3722d8
am: 39b6c7fcfe

Change-Id: I9545b574641fb0a9eef83142cb99a71c3ddd8902
2018-01-30 22:13:23 +00:00
Tianjie Xu 39b6c7fcfe Merge "Avoid overwrite of the error message in AbortFn" am: bded087f7d
am: 20af3722d8

Change-Id: I61b6206e807d4a10091e05e8c4b4de0c525b7d42
2018-01-30 22:02:50 +00:00
Tianjie Xu 20af3722d8 Merge "Avoid overwrite of the error message in AbortFn"
am: bded087f7d

Change-Id: I0b000ba5d8855c38e4f4b301c68c4134c0f2287d
2018-01-30 21:51:11 +00:00
Tianjie Xu bded087f7d Merge "Avoid overwrite of the error message in AbortFn" 2018-01-30 21:44:02 +00:00
gitbuildkicker 65ca66381c merge in pi-release history after reset to master 2018-01-29 14:54:05 -08:00
gitbuildkicker bef780769c merge in pi-release history after reset to master 2018-01-29 11:43:19 -08:00
Tianjie Xu 5ad802839d Avoid overwrite of the error message in AbortFn
The AbortFn() used to overwrite the error message, hiding the real
failure reported in ErrorAbort(). And we will miss the failure in
the script patterns like 'blockimageupdate() || abort()'

We will ensure there's one line break at the end of ErrorAbort's
error message; and append to the existing error message when calling
abort().

Test: Message from ErrorAbort shows up in the log
Change-Id: I3aebd06629c5129330250c7fe5e8cdead2ae85bc
2018-01-29 11:42:59 -08:00
android-build-team Robot b74a972184 Snap for 4571561 from 50d24b9ce5 to pi-release
Change-Id: I03b319848fb9b084a865d7357fb3ce6dc0a7e1dd
2018-01-28 08:20:23 +00:00
Sen Jiang 50d24b9ce5 Merge "Add update_channel field to bootloader_message_ab." am: 63eb1a4444 am: 7441ee7aff
am: cbbf671919

Change-Id: Ibd6e89736a84777088a7df4a548e11a46b3cd586
2018-01-26 01:56:48 +00:00
Sen Jiang cbbf671919 Merge "Add update_channel field to bootloader_message_ab." am: 63eb1a4444
am: 7441ee7aff

Change-Id: I390bba7bd9a76e732873f6abc03a419ec8b2f2d6
2018-01-26 01:00:05 +00:00
Sen Jiang 7441ee7aff Merge "Add update_channel field to bootloader_message_ab."
am: 63eb1a4444

Change-Id: Ie12275c2694cabcf5b934f0673ecb228d6c8c3e6
2018-01-26 00:58:01 +00:00
Sen Jiang 63eb1a4444 Merge "Add update_channel field to bootloader_message_ab." 2018-01-26 00:48:09 +00:00
big biff 5c9889e855 Merge "Add Portuguese (Portugal) translation." into android-8.1 2018-01-25 01:14:42 +01:00
Vasco Machado 6a11843c7e Add Portuguese (Portugal) translation.
Change-Id: I3ea752697cc7f085541d961a6185194badb99015
2018-01-24 02:29:00 +01:00
Sen Jiang 7191bf0492 Add update_channel field to bootloader_message_ab.
The update_channel field is used to store the Omaha update channel
if update_engine is compiled with Omaha support.

We need it to be in misc to persist through factory reset.

Bug: 72332119
Test: mma
Change-Id: Ied4fecc6e78cc69d33a36ba4d101d675100f9d82
2018-01-22 15:03:53 -08:00
Saleem Rashid 2530da84c7 GitHub: Add issue and pull request templates
Change-Id: I5b4ad0e2b1c5c6d886b8355c167ef9e137d1c349
2018-01-20 14:22:46 +01:00
big biff 4603e9d0f0 Merge "Fix typo in Micro SD to have a consistency" into android-8.1 2018-01-19 00:36:13 +01:00
big biff 306ec8853d Merge "Added missing translation in Turkish translation" into android-8.1 2018-01-19 00:34:43 +01:00
big biff ca696f0674 Merge "There are a few typos and bugs in the French translation, for example where a string is to long to be displayed in the button (overlapping / cut-offs)." into android-8.1 2018-01-19 00:33:46 +01:00
big biff a8840a1c89 Merge "Typo / Uppercase-Lowercase in German translation compared to all other translations" into android-8.1 2018-01-19 00:32:56 +01:00
big biff abe968d36d Merge "Typo and bug fixing in Dutch(NL) translation, for example where a translated string is too long to fit in button." into android-8.1 2018-01-19 00:32:25 +01:00
big biff 7e9452e242 Merge "Fix minor inconsistency in Czech translation" into android-8.1 2018-01-19 00:31:16 +01:00
big biff df10bbf26b Merge "Added missing translation(s) in Portuguese(BR)" into android-8.1 2018-01-19 00:30:35 +01:00
big biff 1592e5b0b7 Merge "Added missing translations in Swedish language file" into android-8.1 2018-01-19 00:29:59 +01:00
big biff d8646894ef Merge "Added 2 translations in Italian language file" into android-8.1 2018-01-19 00:29:15 +01:00
big biff bd09f93e59 Merge "There's a missing translaton in the Greek language file." into android-8.1 2018-01-19 00:28:13 +01:00
nkk71 98fc399c26 Use /persist as Qualcomm time fix source during early boot
* /persist can be mounted early while TWRP is parsing the fstab so
  as soon as the partition is parsed, mount and adjust the time
  accordingly.

* Store a backup settings file on /persist. Having a 2nd copy of
  the settings file in the /persist partition allows for early
  reading of the file and adjust timezone and brightness to user
  preference while still on TWRP splash.

* Add the qcom ats time offset in TWRP settings file and use it
  if no better ats file is found. This will also allow devices
  with a persist partition, but no ats files in it, to adjust
  the time offset during early boot.

* Use /persist/time/ as Qualcomm time fix source, based on
  Xuefer <xuefer@gmail.com> patch:
  https://gerrit.omnirom.org/c/27265/
  https://gerrit.omnirom.org/c/24384/

Change-Id: I6c21538eec58d87edfb639d9ce3871f33b886c1d
2018-01-17 20:42:17 +01:00
big biff baeabc5b43 Merge "Relink adbd needed in android 8.1" into android-8.1 2018-01-17 01:40:29 +01:00
android-build-team Robot 4b1d746fd1 Snap for 4545621 from bd84bd438a to pi-release
Change-Id: Ia003119a1fd2751a6ef89c74ef9eaeaefa58f258
2018-01-14 08:44:48 +00:00
Hridya Valsaraju bd84bd438a Statically link with libhealthstoragedefault
This is to add empty implementations of Health
HAL methods to report storage info.

Bug: 68388678
Test: vts-tradefed run vts -m VtsHalHealthV2_0
Change-Id: I4f093903f485519e16f39384f5c96fcd031438ba
2018-01-11 17:48:09 -08:00
Humberto Borba 3cacbfd640 libotautil: Add missed header
ZipUtil was deprecated at android-8.1 but it has been still used by
zipwrap. So this patch fixes the missed header file at new android version.

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I60bf67292021f3b63fb1ee2b8774303d9300fa12
2018-01-11 17:06:03 -02:00
Ethan Yonker 3eb70edb4a Use libdrm_platform for minuitwrp in 8.x trees
Change-Id: I58d7aa61cdb5c954e0726644fdc25c58eed8e544
2018-01-04 16:00:15 +01:00
Ethan Yonker e131bec179 Add spblob decrypt for secdis method (Pixel 1 non-weaver)
Support decrypting Pixel 1 devices using secdis method with the
gatekeeper instead of weaver.

Add a bit of a dirty workaround to a permissions issue that the
keystore presents because the keystore checks the uid of the
calling process and refuses to let the root user add authorization
tokens. We write the auth token to a file and start a separate
service that runs under the system user. The service reads the
token from the file and adds it to the keystore. You must define
this service in your init.recovery.{hardware}.rc file:

service keystore_auth /sbin/keystore_auth
    disabled
    oneshot
    user system
    group root
    seclabel u:r:recovery:s0

TWRP will run this service when needed.

Change-Id: I0ff48d3355f03dc0be8e75cddb8b484bdef98772
2018-01-04 07:40:22 -06:00
codeworkx 071526bd13 ext4crypt: keymaster: fix missing include
Change-Id: I9a6c5a1384bed7f0169d9af94ff8cb22913ff8e4
2017-12-26 20:41:55 +01:00
android-build-team Robot 7a5428f92e Snap for 4517567 from 77e8137720 to pi-release
Change-Id: If87a89580023d0413353a5f7acbdd9659f729acb
2017-12-24 08:32:31 +00:00
Pierre Roth 263ce7c9d7 Fix typo in Micro SD to have a consistency
Change-Id: I91b7e674cd74d9069ee0ae3e70dbfd4a6a051756
2017-12-21 17:58:34 +01:00
Pierre Roth 3a52d5f2a4 Typo and bug fixing in Dutch(NL) translation, for example where a translated string is too long to fit in button.
Change-Id: I68d71b516fc47c72a19f4b8fb7167086814cf148
2017-12-21 17:47:18 +01:00
Pierre Roth 3df3653112 Added missing translation in Turkish translation
Change-Id: I3790f1c02daca2fcbd3afb37e0e3d1b4529aed67
2017-12-21 17:45:46 +01:00
Elliott Hughes 77e8137720 Merge "StartsWith allows a std::string prefix now." am: 80ccac2fff am: bd870377b4
am: 92be1378f9

Change-Id: Idc53c3825af7ad5193f496576d289877a51edd29
2017-12-21 14:48:53 +00:00
Elliott Hughes 92be1378f9 Merge "StartsWith allows a std::string prefix now." am: 80ccac2fff
am: bd870377b4

Change-Id: I720e3ba91146cbbf783eb3ef4b8347f16c52ec05
2017-12-21 09:34:32 +00:00
Pierre Roth 9a1ac4af26 Fix minor inconsistency in Czech translation
Change-Id: Ifc1ac9416177c0b211506174ce23ec7c3569777f
2017-12-21 08:51:03 +01:00
Pierre Roth 5099056859 Added 2 translations in Italian language file
Change-Id: Ia49a9329fa6f9c0ed26aa60a3175bc7944e8f3ac
2017-12-21 08:20:42 +01:00