Tao Bao
8ff7cd20ba
Refactor libupdater into a seperate module. am: 0c7839ac14
...
am: cf1dbfa854
Change-Id: Ifb2c199bc32e164e5bd53f3910a35801237c4ef3
2016-10-11 03:49:30 +00:00
Tao Bao
cf1dbfa854
Refactor libupdater into a seperate module.
...
am: 0c7839ac14
Change-Id: I5ff4c438daa6df248cee38b62251c78baac67a76
2016-10-11 03:44:00 +00:00
Tao Bao
0c7839ac14
Refactor libupdater into a seperate module.
...
So that we can write native tests for updater functions. This CL adds a
testcase for getprop() function.
Test: mmma bootable/recovery; Run recovery_component_test on device.
Change-Id: Iff4c1ff63c5c71aded2f9686fed6b71cc298c228
2016-10-10 16:49:50 -07:00
Tao Bao
514dc15399
Merge "Update the header path for ext4_utils." am: 2bd94433f8
...
am: 00a9050815
Change-Id: Id897069e1ea0ad04ee7f1096c9ae36fb2b9d7974
2016-10-10 21:45:57 +00:00
Tao Bao
00a9050815
Merge "Update the header path for ext4_utils."
...
am: 2bd94433f8
Change-Id: I6a8dbfcecbabbba26acc81ca0c704b9a7f3c63db
2016-10-10 21:14:34 +00:00
Tao Bao
2bd94433f8
Merge "Update the header path for ext4_utils."
2016-10-10 20:07:32 +00:00
Mark Salyzyn
5ceada5bea
Merge "No longer need android/log.h" am: b330559fb6
...
am: 7bf11aadfd
Change-Id: I2399e35aacb6703aedf21bf352f47638720b7d1a
2016-10-10 14:25:30 +00:00
Mark Salyzyn
7bf11aadfd
Merge "No longer need android/log.h"
...
am: b330559fb6
Change-Id: Ie2b65008349d874eb96f40da24b1333e7e62e7da
2016-10-10 14:19:41 +00:00
Mark Salyzyn
b330559fb6
Merge "No longer need android/log.h"
2016-10-10 14:14:30 +00:00
Tao Bao
09ab9a6838
Merge "Disable the meaningless parts of the UI for A/B." am: aa4924cab1
...
am: 8477a03a4a
Change-Id: I55c5febd094ada3a1147ab3ebefc866108ce33e8
2016-10-09 21:13:47 +00:00
Tao Bao
8477a03a4a
Merge "Disable the meaningless parts of the UI for A/B."
...
am: aa4924cab1
Change-Id: Iaba41f4d5a4581053813beb99366cac4068725bb
2016-10-09 21:08:47 +00:00
Tao Bao
de40ba59c8
Update the header path for ext4_utils.
...
Test: `mmma bootable/recovery`
Change-Id: I70ccddb3ddf46bb012fdc5f632afc46ebdd5473e
2016-10-09 14:02:10 -07:00
Tao Bao
aa4924cab1
Merge "Disable the meaningless parts of the UI for A/B."
2016-10-09 21:00:37 +00:00
Elliott Hughes
b0c3f6ffeb
Disable the meaningless parts of the UI for A/B.
...
Bug: http://b/28748484
Test: mmma bootable/recovery
Change-Id: Ie86a265f4699503471e7c717d65677a916dbd25b
(cherry picked from commit 01fcbe160b )
2016-10-09 12:55:50 -07:00
Mark Salyzyn
df1b6947ec
No longer need android/log.h
...
Test: compile
Bug: 31992412
Change-Id: I5156590bfc94e46e9d282c197c3dd8c4bbd9e855
2016-10-07 14:19:48 -07:00
Tao Bao
e68d829f74
Merge "edify: Move State.script and State.errmsg to std::string." am: 8810634773
...
am: 6674f22a2f
Change-Id: I7da4df259a8155fbdab6e696fab4ddfb45cb0fbc
2016-10-05 06:16:22 +00:00
Tao Bao
6674f22a2f
Merge "edify: Move State.script and State.errmsg to std::string."
...
am: 8810634773
Change-Id: Id8e786de6fe76287b598dfcfbf962eba5d9ebde2
2016-10-05 06:13:22 +00:00
Treehugger Robot
8810634773
Merge "edify: Move State.script and State.errmsg to std::string."
2016-10-05 06:07:56 +00:00
Tao Bao
59dcb9cbea
edify: Move State.script and State.errmsg to std::string.
...
This way we kill a few strdup() and free() calls.
Test: 1. recovery_component_test still passes;
2. Applying an update with the new updater works;
3. The error code in a script with abort("E310: xyz") is recorded into
last_install correctly.
Change-Id: Ibda4da5937346e058a0d7cc81764d6f02920010a
2016-10-04 14:24:32 -07:00
Mark Salyzyn
0467a905cc
Merge "recovery: drop log/logger.h" am: 38b923ff6c
...
am: 7cf7e6ce4f
Change-Id: Ic62c9145a6d891b2e9acd871c0e21007e2ecb6f6
2016-10-04 17:45:11 +00:00
Mark Salyzyn
7cf7e6ce4f
Merge "recovery: drop log/logger.h"
...
am: 38b923ff6c
Change-Id: I92ddb6d9adef3f4a25588c76bade058914952b06
2016-10-04 17:42:40 +00:00
Mark Salyzyn
38b923ff6c
Merge "recovery: drop log/logger.h"
2016-10-04 17:39:17 +00:00
Tao Bao
bace857dbb
Merge "edify: Move the testcases to gtest." am: 0bc2df1696
...
am: 6fbed10fa5
Change-Id: I1966d1fff2972fae1b4c9a1fe6fdbc07c34dcd65
2016-10-04 17:01:38 +00:00
Tao Bao
6fbed10fa5
Merge "edify: Move the testcases to gtest."
...
am: 0bc2df1696
Change-Id: I6c61d04cb7d2b47ef903d838ead453f51eb91ea7
2016-10-04 16:59:38 +00:00
Tao Bao
0bc2df1696
Merge "edify: Move the testcases to gtest."
2016-10-04 16:55:50 +00:00
Mark Salyzyn
fee79a4532
recovery: drop log/logger.h
...
private/android_logger.h contains all we need.
Test: compile
Bug: 26552300
Bug: 31289077
Bug: 31456426
Change-Id: I6714d730372dc81f784e7f9dfee8a33848643a5d
2016-10-04 09:04:08 -07:00
Tao Bao
d770d2e7af
edify: Move the testcases to gtest.
...
Now they live in tests/component/edify_test.cpp.
Also rename edify/main.cpp to edify/edify_parser.cpp. It becomes a
host-side debugging tool that validates the input edify script. However,
it supports edify builtin functions only and doesn't recognize the ones
defined via updater.
Test: recovery_component_test passes on device.
Change-Id: Ib94a787bf15098a9cc078d256b6a6dc96ff12b2e
2016-10-03 15:33:20 -07:00
Tianjie Xu
dbde5cf1d5
Merge "Turn on -Werror for recovery" am: 695ef7cacc
...
am: 5269808bb0
Change-Id: I84ce95dc0365925535da0d5bfb9397c5b23bd1af
2016-09-30 17:48:23 +00:00
Tianjie Xu
5269808bb0
Merge "Turn on -Werror for recovery"
...
am: 695ef7cacc
Change-Id: If8cb1fd9470c4ae6798dc4ecf1707c5eb40b877e
2016-09-30 17:45:35 +00:00
Tianjie Xu
695ef7cacc
Merge "Turn on -Werror for recovery"
2016-09-30 17:41:14 +00:00
Tianjie Xu
7aa88748f6
Turn on -Werror for recovery
...
Also remove the 0xff comparison when validating the bootloader
message fields. As the fields won't be erased to 0xff after we
remove the MTD support.
Bug: 28202046
Test: The recovery folder compiles for aosp_x86-eng
Change-Id: Ibb30ea1b2b28676fb08c7e92a1e5f7b6ef3247ab
2016-09-29 19:21:24 -07:00
Tianjie Xu
fc887a8fba
Merge "Report uncrypt errors in details" am: af8b9363c6
...
am: 7582609d61
Change-Id: Idbaf422f605c690fe2f2ea120d10e4e37342b5e9
2016-09-27 21:22:26 +00:00
Tianjie Xu
7582609d61
Merge "Report uncrypt errors in details"
...
am: af8b9363c6
Change-Id: I5790f1c3ce902edf7bf9025e445b043c93036a30
2016-09-27 21:19:56 +00:00
Treehugger Robot
af8b9363c6
Merge "Report uncrypt errors in details"
2016-09-27 21:11:06 +00:00
Tianjie Xu
da44cf18f3
Report uncrypt errors in details
...
Add the error codes for uncrypt and report the failure details in
uncrypt_status.
Test: uncrypt_error logs correctly in last_install
Bug: 31603820
Change-Id: I8e0de845ce1707b6f8f5ae84564c5e93fd5f5ef5
2016-09-26 22:48:45 -07:00
Tao Bao
c064b01898
Merge "Duplicate the last_install content into last_log." am: 95afc912fb
...
am: 5ac819a51f
Change-Id: I9449ecabc6b367fe71244fc8751993d89e2b1dc7
2016-09-27 01:45:20 +00:00
Tao Bao
bfee61bf28
Duplicate the last_install content into last_log. am: f4885adc18
...
am: 87f4edf467
Change-Id: I7c28f25f07d0f1c1df41e771c28baaa813b0a44a
2016-09-27 01:45:12 +00:00
Tao Bao
5ac819a51f
Merge "Duplicate the last_install content into last_log."
...
am: 95afc912fb
Change-Id: Ib3838e9d2f3d6a9a15872e9a5163bf140ff2f3d5
2016-09-27 01:43:42 +00:00
Tao Bao
87f4edf467
Duplicate the last_install content into last_log.
...
am: f4885adc18
Change-Id: I8f197d09af405254a0b07f0ace4e5149736ca0ad
2016-09-27 01:43:41 +00:00
Tao Bao
95afc912fb
Merge "Duplicate the last_install content into last_log."
2016-09-27 01:38:53 +00:00
Tao Bao
f4885adc18
Duplicate the last_install content into last_log.
...
Currently we save the OTA metrics in last_install, which keeps the data
for the _last_ install only. This CL logs the same content into last_log
so that we keep the metrics for every install.
Bug: 31607469
Test: Apply an update (via OTA and sideload) and check last_log and last_install.
Change-Id: Id8f174d79534fddc9f06d72a4e69b2b1d8ab186c
2016-09-26 14:46:12 -07:00
Elliott Hughes
d5c7d6bffe
Merge "Switch to <android-base/properties.h>." am: cc02f9652f
...
am: be9a94fd17
Change-Id: Ib5e4fb8d20e04df7b592af96d898afbbc6846620
2016-09-26 19:42:16 +00:00
Elliott Hughes
be9a94fd17
Merge "Switch to <android-base/properties.h>."
...
am: cc02f9652f
Change-Id: I5f0d55f980055cee3c7ae477d1bdbd1d05b97dc1
2016-09-26 19:40:28 +00:00
Elliott Hughes
cc02f9652f
Merge "Switch to <android-base/properties.h>."
2016-09-26 19:32:48 +00:00
Elliott Hughes
cb22040c63
Switch to <android-base/properties.h>.
...
Bug: http://b/23102347
Test: boot into recovery.
Change-Id: Ib2ca560f1312961c21fbaa294bb068de19cb883e
Merged-In: Ib2ca560f1312961c21fbaa294bb068de19cb883e
2016-09-26 09:51:37 -07:00
Tianjie Xu
1d55666106
Merge "Check corruption when reading uncrypt_status file" am: 3cf815a6a9
...
am: 40bae5e1c6
Change-Id: I098148f53065e7420e500db66f1ada0d0730a0d6
2016-09-13 22:28:32 +00:00
Tianjie Xu
40bae5e1c6
Merge "Check corruption when reading uncrypt_status file"
...
am: 3cf815a6a9
Change-Id: Ic7404abd3026a8faffaac14a20c90ebf2ef10106
2016-09-13 22:26:03 +00:00
Treehugger Robot
3cf815a6a9
Merge "Check corruption when reading uncrypt_status file"
2016-09-13 22:20:04 +00:00
Tianjie Xu
1c1864f321
Check corruption when reading uncrypt_status file
...
Bug: 31383361
Change-Id: I0de920916da213528d73b742e4823b4a98c63ea1
2016-09-13 13:56:00 -07:00
Tianjie Xu
86ea1724ae
Merge "save uncrypt status to last_install" am: cdf509cce2
...
am: 6048138e10
Change-Id: I6fa2612bc1ea1fc706a5ded855c9296b4e794009
2016-09-12 23:03:58 +00:00