Vineela Tummalapalli
62aaba5a3f
Merge "Add 'reboot bootloader' to bootloader_message." am: a5538b87e8
...
am: 118e814bfe
Change-Id: I2b57d683afce0cb40925187f8a4369a300129a8c
2016-11-10 02:58:17 +00:00
Vineela Tummalapalli
118e814bfe
Merge "Add 'reboot bootloader' to bootloader_message."
...
am: a5538b87e8
Change-Id: I432f48453d2627e165fda7cda1945157ff0e83ae
2016-11-10 02:52:18 +00:00
Treehugger Robot
a5538b87e8
Merge "Add 'reboot bootloader' to bootloader_message."
2016-11-10 02:43:08 +00:00
Vineela Tummalapalli
cba7fa88d8
Add 'reboot bootloader' to bootloader_message.
...
Add 'reboot bootloader' capability to the bootloader_message.
BUG: https://issuetracker.google.com/issues/32474515
Change-Id: I01e8b2fad978bf7c8fc96ff6b08ad3e52533f504
Author: Vineela Tummalapalli <vineela.tummalapalli@intel.com >
Signed-off-by: Vineela Tummalapalli <vineela.tummalapalli@intel.com >
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com >
Reviewed-on: https://android.intel.com/548519
2016-11-09 17:24:57 -08:00
Tianjie Xu
b86af2577c
Merge "Touch blocks in care_map in update_verifier" am: 3605a072bc -s ours
...
am: 96c3c32b66
Change-Id: I94c50d0c24b1d0d2331b1c5fd117c06542c85533
2016-11-10 00:17:07 +00:00
Tianjie Xu
96c3c32b66
Merge "Touch blocks in care_map in update_verifier"
...
am: 3605a072bc -s ours
Change-Id: Ie19a8ebf3f575599a5ed9ddcd80ab99e06f6cf77
2016-11-10 00:11:40 +00:00
Tianjie Xu
3605a072bc
Merge "Touch blocks in care_map in update_verifier"
2016-11-09 23:52:52 +00:00
Tianjie Xu
d007cf2da2
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
Test: mma
(cherry picked from commit 03ca853a1c )
(cherry picked from commit 4bbe0c93c8 )
(Fix a typo when comparing the verity mode)
(cherry picked from commit da654af606 )
(Skip update verification if care_map is not found)
2016-11-09 20:10:27 +00:00
Tao Bao
7da0c7e439
Merge "updater: Add more testcase for symlink()." am: 1b74e8cea8
...
am: 2c175c302c
Change-Id: I0e739c4585088ac2b88809924c16ea1bf18e8794
2016-11-09 19:20:45 +00:00
Tao Bao
2c175c302c
Merge "updater: Add more testcase for symlink()."
...
am: 1b74e8cea8
Change-Id: I67f19e5992d755f08109ccad4feed2ac3f9dffde
2016-11-09 19:13:43 +00:00
Tao Bao
1b74e8cea8
Merge "updater: Add more testcase for symlink()."
2016-11-09 19:05:01 +00:00
Tao Bao
d9d435cd83
Merge "otautil: Clean up obsolete includes." am: b80d136dca
...
am: b50fa1fc23
Change-Id: I297e91af6b5cdcf9bec524764e5dbe6a879fd4a7
2016-11-09 05:45:50 +00:00
Tao Bao
b50fa1fc23
Merge "otautil: Clean up obsolete includes."
...
am: b80d136dca
Change-Id: I374d678fe6636284d6ab9238418266fac355e14e
2016-11-09 05:39:20 +00:00
Tao Bao
b80d136dca
Merge "otautil: Clean up obsolete includes."
2016-11-09 05:32:06 +00:00
Tao Bao
8992902aab
updater: Add more testcase for symlink().
...
Clean up SymlinkFn() a bit. Also clean up the temp files created when
running the tests; otherwise non-empty TemporaryDir won't be removed.
Test: recovery_component_test passes.
Change-Id: Id3844abebd168c40125c4dcec54e6ef680a83c3a
2016-11-08 21:29:16 -08:00
Tao Bao
14b61e7b96
otautil: Clean up obsolete includes.
...
external/zlib and external/safe-iop/include were used by Zip.c, which
became obsolete after [1].
Removing
- <assert.h>: we no longer call assert(3);
- <limits.h>: we no longer use PATH_MAX;
- <stdio.h>: we don't need FILE anymore;
- <stdlib.h>: no more malloc(3)/calloc(3);
- <unistd.h>: was once needed for lseek(2);
- <string.h>: no more memset(3).
Adding
- <stdint.h> for SIZE_MAX.
[1] commit 8cf5c8f60f : "Replace minzip
with libziparchive".
Test: `mmma bootable/recovery`
Change-Id: I349e909ba83d0f6ade5f92856ce3934f29fdca6c
2016-11-08 13:39:12 -08:00
Tianjie Xu
260573b3c2
Merge "Make make_parent() to take const argument" am: 52e2a97aa7
...
am: 1fd9f0aff7
Change-Id: I5ce1d09108c90e3a800942653777c374a302449a
2016-11-08 21:03:25 +00:00
Tianjie Xu
a1c121e034
Merge "Move recovery_test.cpp out of unit test" am: 8bfd96c0f8
...
am: e9390679c9
Change-Id: Ie5be9db1d0d01f90181dba071df69e24f802c29d
2016-11-08 21:03:12 +00:00
Tianjie Xu
1fd9f0aff7
Merge "Make make_parent() to take const argument"
...
am: 52e2a97aa7
Change-Id: Ia4d597510cf99ade837a9c6a33b19788b8cf2291
2016-11-08 20:57:54 +00:00
Tianjie Xu
e9390679c9
Merge "Move recovery_test.cpp out of unit test"
...
am: 8bfd96c0f8
Change-Id: I34ecca789d64dda77bec85d577ff0b7320a2b128
2016-11-08 20:57:42 +00:00
Treehugger Robot
52e2a97aa7
Merge "Make make_parent() to take const argument"
2016-11-08 20:53:59 +00:00
Treehugger Robot
8bfd96c0f8
Merge "Move recovery_test.cpp out of unit test"
2016-11-08 20:48:20 +00:00
Tao Bao
5d52303488
resolve merge conflicts of 70172d7 to stage-aosp-master
...
am: 55883f660d
Change-Id: I5946acb7c1c83061ae84b16d6b94ff502007d981
2016-11-08 19:48:07 +00:00
Tao Bao
55883f660d
resolve merge conflicts of 70172d7 to stage-aosp-master
...
Change-Id: I7626b57f9c8fd722708862ff1ae09c4fc0def51c
2016-11-08 10:49:47 -08:00
Tianjie Xu
5d8b53b248
Move recovery_test.cpp out of unit test
...
Move recovery-refresh/persist tests out because these tests need special
steps to run. Also switch the constants to std::string.
Test: recovery_manual_test passed on an A/B device
Change-Id: I60b3ec6f094044945c3aafc1fae540896a6ddea6
2016-11-08 10:42:51 -08:00
Tao Bao
70172d76ef
Merge "otautil: Clean up SysUtil.cpp."
2016-11-08 18:29:37 +00:00
Tianjie Xu
d75003d24c
Make make_parent() to take const argument
...
Switch to use const std::string; and add corresponding tests.
Bug: 32649858
Test: Component tests pass
Change-Id: I640f3ec81f1481fa91aa310f8d4d96dac9649cb9
2016-11-08 10:11:03 -08:00
Tao Bao
c3292f3fcb
otautil: Clean up SysUtil.cpp.
...
Add unit testcases for sysMapFile().
Test: recovery_unit_test passes.
Test: Build and use the new recovery image to sideload a package.
Test: Build and use the new recovery image to install an update.
Change-Id: I77d8f1ea151ab513865d992c256ba93a1fcb51a4
2016-11-07 13:00:38 -08:00
Tao Bao
a99c6eab22
Merge "tests: Fix unit/zip_test.cpp." am: ba41fba9e4
...
am: f46041a7d4
Change-Id: Ib53eeab18ca2f3e2c1032846e99c96c4f0fd5017
2016-11-07 19:20:07 +00:00
Tao Bao
f46041a7d4
Merge "tests: Fix unit/zip_test.cpp."
...
am: ba41fba9e4
Change-Id: Ie756b132205a3602cdec4062fc84a725b9086479
2016-11-07 19:14:36 +00:00
Tao Bao
ba41fba9e4
Merge "tests: Fix unit/zip_test.cpp."
2016-11-07 19:07:44 +00:00
Tao Bao
0dfb7536bb
tests: Fix unit/zip_test.cpp.
...
It's accidentally broken when refactoring the testdata path. Also clean
up the testcase a bit by simplying the file reading.
Test: recovery_unit_test passes.
Change-Id: I592a1cf5a4eb9a7a5f4eecbc6426baeedeb02781
2016-11-04 15:20:52 -07:00
Tao Bao
8269eb0d1f
Merge "updater: Add a testcase for RenameFn()." am: d0daf7f7df
...
am: 05a801ca8e
Change-Id: Ib6e162dd08ecb4f97a06beb54c26c5348a6782d1
2016-11-04 21:07:42 +00:00
Tao Bao
05a801ca8e
Merge "updater: Add a testcase for RenameFn()."
...
am: d0daf7f7df
Change-Id: I606b95f3d164063a271cd8faac8c5bfe42e2ef60
2016-11-04 21:04:12 +00:00
Tao Bao
d0daf7f7df
Merge "updater: Add a testcase for RenameFn()."
2016-11-04 21:01:11 +00:00
Tianjie Xu
92097726ef
Merge "Cleanup the duplicates of logs rotation functions" am: e2d05c5658
...
am: 99adda9d67
Change-Id: I66a74981f5e7432aaa49ae74a38fc87e17acc02f
2016-11-04 18:17:31 +00:00
Tianjie Xu
99adda9d67
Merge "Cleanup the duplicates of logs rotation functions"
...
am: e2d05c5658
Change-Id: Ia63785d846ab05eca45ec1e548f7265d7feffdbb
2016-11-04 18:14:01 +00:00
Tianjie Xu
e2d05c5658
Merge "Cleanup the duplicates of logs rotation functions"
2016-11-04 18:07:08 +00:00
Tao Bao
786b083b8e
Merge "updater: Fix a bug in DeleteFn()." am: 529032f4a0
...
am: 4f91ca78b9
Change-Id: I00c70a6343e6cb8e62e27b4a0a3ee6da3934fc9c
2016-11-04 16:12:22 +00:00
Tao Bao
b9c3411de7
Merge "Revert "Revert "Some cleanups to recovery.""" am: a7a8262944
...
am: cb3cbaffac
Change-Id: I2536156317b0bcb4a272ce13db251af791bd67be
2016-11-04 16:11:56 +00:00
Tao Bao
4f91ca78b9
Merge "updater: Fix a bug in DeleteFn()."
...
am: 529032f4a0
Change-Id: I77054ec63705d4e8f72ce7232db5f394f7de420e
2016-11-04 16:08:55 +00:00
Tao Bao
cb3cbaffac
Merge "Revert "Revert "Some cleanups to recovery."""
...
am: a7a8262944
Change-Id: Iab6de4788c4dbecd33d076144f8324fde53b4024
2016-11-04 16:08:26 +00:00
Tao Bao
529032f4a0
Merge "updater: Fix a bug in DeleteFn()."
2016-11-04 16:04:58 +00:00
Tao Bao
a7a8262944
Merge "Revert "Revert "Some cleanups to recovery."""
2016-11-04 16:04:20 +00:00
Tao Bao
a659d79b92
updater: Add a testcase for RenameFn().
...
Test: recovery_component_test passes.
Change-Id: Iba5a0fdf6c79e2bed6b30b8fc19a306c1ab29d8a
2016-11-03 23:35:42 -07:00
Tao Bao
0831d0b592
updater: Fix a bug in DeleteFn().
...
Also add a testcase for delete() function.
Test: recovery_component_test passes.
Change-Id: I064d1ad4693c3ed339d0a69eabadd08a61a2ea86
2016-11-03 23:28:36 -07:00
Tao Bao
4098285e8c
Merge "updater: Fix an off-by-1 bug in file_getprop()." am: da2b34b5d0
...
am: 917be35f0f
Change-Id: I5b26c0bf7f7b156e91f66cffde0b64a5708b7eee
2016-11-04 04:39:44 +00:00
Tao Bao
917be35f0f
Merge "updater: Fix an off-by-1 bug in file_getprop()."
...
am: da2b34b5d0
Change-Id: Ib5d4f50a42465648bb6a5213f6676b11427b4278
2016-11-04 04:36:14 +00:00
Tao Bao
da2b34b5d0
Merge "updater: Fix an off-by-1 bug in file_getprop()."
2016-11-04 04:30:24 +00:00
Tianjie Xu
e113e4d67f
Cleanup the duplicates of logs rotation functions
...
Bug: 32067516
Test: Logs rotated successfully on angler, recovery-refresh/persist tests
passed on an a/b device.
Change-Id: Ie80adf0fa958ad3d7869d2d17f49489666b86c29
2016-11-03 18:16:33 -07:00