Chih-hung Hsieh
acc7ebb92a
Merge \\\\"Fix clang-tidy performance warnings.\\\\" am: 2a3b695168 am: 977903da49 am: fc7cbe465f
...
am: b32823b7e7
Change-Id: If3a8d9d3278711e057c6dc0ac4652374a2f5f985
2016-07-27 20:59:02 +00:00
Chih-Hung Hsieh
b32823b7e7
Merge \\\"Fix clang-tidy performance warnings.\\\" am: 2a3b695168 am: 977903da49
...
am: fc7cbe465f
Change-Id: I06aef6bf6f2865b2b33f90bf539118c39118b09c
2016-07-27 20:56:02 +00:00
Chih-hung Hsieh
fc7cbe465f
Merge \\"Fix clang-tidy performance warnings.\\" am: 2a3b695168
...
am: 977903da49
Change-Id: Id3e48c6cf66c6f81ead25dd468bb109ce260f377
2016-07-27 20:53:01 +00:00
Chih-Hung Hsieh
977903da49
Merge \"Fix clang-tidy performance warnings.\"
...
am: 2a3b695168
Change-Id: I55cadf517ec612f1b03de71ce7ca5cff69bc80d0
2016-07-27 20:49:34 +00:00
Chih-hung Hsieh
2a3b695168
Merge "Fix clang-tidy performance warnings."
2016-07-27 20:40:39 +00:00
Chih-Hung Hsieh
23abfd37a5
Fix clang-tidy performance warnings.
...
* Use const reference parameter type to avoid unnecessary copy.
* Use more efficient overloaded string methods.
Bug: 30407689
Bug: 30411878
Change-Id: Iefab05c077367f272abf545036b853e8a295c8cd
Test: build with WITH_TIDY=1
2016-07-27 10:19:47 -07:00
Bill Yi
d7a9bcf8ad
Import translations. DO NOT MERGE am: e49c0d6406 -s ours
...
am: 8281767f34 -s ours
Change-Id: I8f3d4f4d397bfcd2d0a76d99eefb037343beb593
2016-07-21 04:03:12 +00:00
Bill Yi
8281767f34
Import translations. DO NOT MERGE
...
am: e49c0d6406 -s ours
Change-Id: I63088d0308aacfce14c75c7508bb04e587014217
2016-07-21 03:59:12 +00:00
Bill Yi
e49c0d6406
Import translations. DO NOT MERGE
...
Change-Id: If24c94c20f8e4c37c119dcaff765e9ee59e48ef4
Auto-generated-cl: translation import
2016-07-20 19:24:24 -07:00
Tianjie Xu
992b5b0dd2
Skip update verification if care_map is not found am: da654af606
...
am: 831c3e2ac1
Change-Id: I06fed102c6126881e4bc89c67d7e09e92998ad6b
2016-07-16 00:24:38 +00:00
Tianjie Xu
831c3e2ac1
Skip update verification if care_map is not found
...
am: da654af606
Change-Id: I67af9ecde49f72cbf4044ac1d5a9e10b911e8a93
2016-07-16 00:16:37 +00:00
Tianjie Xu
da654af606
Skip update verification if care_map is not found
...
Recently flashed devices may not have care_map.txt in /data/ota_package.
This leads to a failure of update-verifier and prevents boot
success flag from being set. So, we need to skip verification
in case the file is not found.
Error message:
... I update_verifier: Started with arg 1: nonencrypted
... I update_verifier: Booting slot 1: isSlotMarkedSuccessful=0
... E update_verifier: Care map /data/ota_package/care_map.txt not found.
... E update_verifier: Failed to verify all blocks in care map file
Bug: 30156449
Change-Id: Ia15f5f3e7ca2ea6981d49678e799b9f70d134faa
2016-07-15 16:30:12 -07:00
Tianjie Xu
4549a5e20f
Fix a typo when comparing the verity mode am: 4bbe0c93c8
...
am: fe6014ecca
Change-Id: I849f869a4ee2614fe3a6b5af03617e3d40374f65
2016-07-15 00:09:36 +00:00
Tianjie Xu
fe6014ecca
Fix a typo when comparing the verity mode
...
am: 4bbe0c93c8
Change-Id: I734ac0c1124e2459bb64defe16386ee1ee1c534f
2016-07-15 00:07:03 +00:00
Tianjie Xu
4bbe0c93c8
Fix a typo when comparing the verity mode
...
The veritymode string used by the bootloader should be lowercase 'eio'
instead of 'EIO'. Fix the typo and change to strcasecmp.
Bug: 27175949
Change-Id: I376dacc70eef7364e2b9931a7c940adedcdb1929
2016-07-14 23:57:43 +00:00
Tianjie Xu
a5af1a7eea
Merge \\"Touch blocks in care_map in update_verifier\\" into nyc-mr1-dev am: 13f44939b1
...
am: 6c0a2dec21
Change-Id: Ifab3a0507000b6970df9d58a0193deefbaadb5ba
2016-07-14 23:06:44 +00:00
Tianjie Xu
6c0a2dec21
Merge \"Touch blocks in care_map in update_verifier\" into nyc-mr1-dev
...
am: 13f44939b1
Change-Id: I217e2883e45979b8cbdd7f0ce138d4b66f2e2b5d
2016-07-14 22:43:13 +00:00
Tianjie Xu
13f44939b1
Merge "Touch blocks in care_map in update_verifier" into nyc-mr1-dev
2016-07-14 22:27:09 +00:00
Tianjie Xu
03ca853a1c
Touch blocks in care_map in update_verifier
...
Read all blocks in system and vendor partition during boot time
so that dm-verity could verify this partition is properly flashed.
Bug: 27175949
Change-Id: I38ff7b18ee4f2733e639b89633d36f5ed551c989
2016-07-14 14:31:39 -07:00
Tianjie Xu
da873d77f3
Skip update-on-boot for bootreason in blacklist am: 27b9fc8a36
...
am: 7831762308
Change-Id: Iafe4715d3a859b2d4367583662b2ff31650ca18f
2016-07-13 00:51:29 +00:00
Tianjie Xu
7831762308
Skip update-on-boot for bootreason in blacklist
...
am: 27b9fc8a36
Change-Id: Icb5c2cfb2430e767f81506b20912f52d74d719d5
2016-07-13 00:41:01 +00:00
Tianjie Xu
27b9fc8a36
Skip update-on-boot for bootreason in blacklist
...
Skip the OTA installation when bootreason is 'kernel_panic',
'Panic' etc.
Change-Id: Ic1202492bffefa1a9d8d0e691b5af979285e552c
Test: On angler, ota installation skips for one bootreason in the blacklist.
Bug: 29978689
2016-07-11 18:37:34 -07:00
Elliott Hughes
94e6d21cbd
Support landscape layouts. am: 6d089a955f
...
am: b0728a3c2a
Change-Id: Ib93ecc5fd9538456585154814c2979533acb1213
2016-07-09 04:45:06 +00:00
Elliott Hughes
b0728a3c2a
Support landscape layouts.
...
am: 6d089a955f
Change-Id: Iebdce4fe859984257cef027ec6de1aeae51b8d69
2016-07-09 04:29:18 +00:00
Elliott Hughes
6d089a955f
Support landscape layouts.
...
Add support for landscape layouts to the existing portrait support.
Bug: http://b/29418855
Test: tested manually with "Run graphics test" on flounder/fugu/ryu.
Change-Id: Ib4a62bf5f2b8a1cef6028a01f05145104660560a
2016-07-08 18:21:45 -07:00
Tianjie Xu
804275ba42
Merge "Allow uncrypt to work without socket communication"
2016-07-08 19:03:45 +00:00
Yabin Cui
ec9fdfee2f
Fix bootloader_message. am: 9da04d595f
...
am: 159ca9b0ac
Change-Id: I0a72622b551b581301aa8de12896dd00723f0568
2016-07-06 21:28:52 +00:00
Yabin Cui
159ca9b0ac
Fix bootloader_message.
...
am: 9da04d595f
Change-Id: I684c6afa25ce1dccad06920eee8a3bd6b7da96b1
2016-07-06 21:17:53 +00:00
Yabin Cui
9da04d595f
Fix bootloader_message.
...
Bug: 29945717
Change-Id: I934fd6c52b0111937fa75455de2fa4157fb30f6f
2016-07-06 11:47:23 -07:00
Bill Yi
b83fb67663
Import translations. DO NOT MERGE am: 34e2854786 -s ours am: 93d2e08ef2 -s ours
...
am: 9fe8b8b663 -s ours
Change-Id: I07911aae8d7c9dbe1383072917ab52d314dfff20
2016-07-01 05:09:49 +00:00
Bill Yi
9fe8b8b663
Import translations. DO NOT MERGE am: 34e2854786 -s ours
...
am: 93d2e08ef2 -s ours
Change-Id: Icfba2b987aae40dd9f9cebfb7299cc5319d4bc68
2016-07-01 05:05:49 +00:00
Bill Yi
93d2e08ef2
Import translations. DO NOT MERGE
...
am: 34e2854786 -s ours
Change-Id: Ib1e3c37805d1457a00e84c4e0d11d2775714d7f6
2016-07-01 05:01:48 +00:00
Tianjie Xu
28c1e5d3aa
Allow uncrypt to work without socket communication
...
It was inconvenient to uncrypt a update package under adb shell
because the uncrypt executable required a socket to start its job.
Add a workaround to allow uncrypt executes without socket
communication.
Test: run uncrypt under adb shell, and the block map generates successfully
Bug: 29906218
Change-Id: Ibc328b31636d925dc429ede8dcec7392a721dd53
2016-06-30 19:46:01 -07:00
Tao Bao
889517b80b
updater: Fix the broken ReadFileFn. am: ccb0ba908a
...
am: 90a0dace8e
Change-Id: I292d3cb4febde3e3064ae205795492a85cdb7a3c
2016-07-01 02:32:55 +00:00
Tao Bao
90a0dace8e
updater: Fix the broken ReadFileFn.
...
am: ccb0ba908a
Change-Id: I693ebeed98863b9ce06ca2704e05abe41ec2b5c2
2016-07-01 02:28:54 +00:00
Bill Yi
34e2854786
Import translations. DO NOT MERGE
...
Auto-generated-cl: translation import
Bug: 29390361
Change-Id: Ie1d01357ef53bd977da8188825dd744801ae58ad
2016-06-30 19:13:48 -07:00
Tao Bao
ccb0ba908a
updater: Fix the broken ReadFileFn.
...
Was accidentally broken by the CL in [1].
[1]: commit d6c93afcc2
Bug: 29767315
Change-Id: I851e13ccea6f5be6fcd47f712cc95867245f9934
(cherry picked from commit efacd80364 )
2016-06-30 17:04:12 -07:00
Yabin Cui
fb1dca351d
resolve merge conflicts of 2f272c0 to nyc-mr1-dev-plus-aosp
...
am: 9b15ba8269
Change-Id: Idca52296ddcb318a23f1fb279435a1f71751afec
2016-06-30 22:55:19 +00:00
Yabin Cui
9b15ba8269
resolve merge conflicts of 2f272c0 to nyc-mr1-dev-plus-aosp
...
Change-Id: I889d94a723415ad2e660b8c99e66935142918bc4
2016-06-30 15:13:12 -07:00
Elliott Hughes
5f9d7749e9
Merge \\\\"Fix install.h\\\\'s use of attribute printf.\\\\" am: a82ee456bb am: 691db7ba77 am: 7c4a34195f
...
am: 937ca850ec
Change-Id: I4c496ee69e554f9616b5da98e3e708880060da0e
2016-06-30 18:32:29 +00:00
Elliott Hughes
937ca850ec
Merge \\\"Fix install.h\\\'s use of attribute printf.\\\" am: a82ee456bb am: 691db7ba77
...
am: 7c4a34195f
Change-Id: I82d801da1ce7507efe6bb22edb39c28a17b168c0
2016-06-30 18:25:47 +00:00
Elliott Hughes
7c4a34195f
Merge \\"Fix install.h\\'s use of attribute printf.\\" am: a82ee456bb
...
am: 691db7ba77
Change-Id: Ia5d26790412bc6d45fd73ec3c2e56b9ddbd37c06
2016-06-30 18:22:02 +00:00
Elliott Hughes
691db7ba77
Merge \"Fix install.h\'s use of attribute printf.\"
...
am: a82ee456bb
Change-Id: Ibcfabbb0e044d503f889f1afea271cf73ad93f45
2016-06-30 18:18:40 +00:00
Treehugger Robot
a82ee456bb
Merge "Fix install.h's use of attribute printf."
2016-06-30 18:04:38 +00:00
Yabin Cui
2f272c0551
Create bootloader_message static library.
...
bootloader_messages merges bootloader_message_writer
and bootloader.cpp, so we can use the same library to
manage bootloader_message in normal boot and recovery mode.
Bug: 29582118
Change-Id: I9efdf776ef8f02b53911ff43a518e035e0c29618
2016-06-30 11:02:38 -07:00
Elliott Hughes
83ce755518
Fix install.h's use of attribute printf.
...
And move off the bionic __nonnull macro, which I'm removing.
Change-Id: I40b4424f4fd7bd8076e0eee3ec35de36c3ded8de
2016-06-30 09:28:42 -07:00
Chih-Hung Hsieh
7a9ab5926f
Merge \\\\"Fix google-explicit-constructor warnings in bootable/recovery.\\\\" am: a9f648f010 am: 8e6e4bc979 am: a4cd854625
...
am: 34edfe173e
Change-Id: Ic8019b8497dce005caefd921b114749a5ec300a7
2016-06-29 23:21:08 +00:00
Chih-Hung Hsieh
34edfe173e
Merge \\\"Fix google-explicit-constructor warnings in bootable/recovery.\\\" am: a9f648f010 am: 8e6e4bc979
...
am: a4cd854625
Change-Id: I9a96354f55fc2594826f9e54ae9567a02ee4bc95
2016-06-29 23:16:23 +00:00
Chih-Hung Hsieh
a4cd854625
Merge \\"Fix google-explicit-constructor warnings in bootable/recovery.\\" am: a9f648f010
...
am: 8e6e4bc979
Change-Id: Ie8f8df0583cda672e8467c6ed8dadeee888342b8
2016-06-29 23:14:07 +00:00
Chih-Hung Hsieh
8e6e4bc979
Merge \"Fix google-explicit-constructor warnings in bootable/recovery.\"
...
am: a9f648f010
Change-Id: I7912c46384c2acef90fcd517d709449148f0b9db
2016-06-29 23:11:45 +00:00