summaryrefslogtreecommitdiffstats
path: root/updater_sample/src/com/example/android/systemupdatersample/services (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add verification before downloading whole packageZhomart Mukhamejanov2018-12-171-0/+51
| | | | | | | | | | | | | | | | UpdateEngine has a feature that verifies payload without downloading the whole update package. If UpdateEngine detects invalid payload, the sample app aborts the update. No JUnit tests, because it accesses files on the device and migrating tests to robolectric is not worth for this sample app. Bug: 77150191 Test: device Change-Id: Ib8ce73508a02cf5fdcb326d8ba46c1d05ed5efe5
* Add PrepareUpdateService.Zhomart Mukhamejanov2018-12-171-24/+31
| | | | | | | | | | | | | | | | | | It's moved from PrepareStreamingService intent service. Now PrepareUpdateService takes an UpdateConfig and builds PayloadSpec for UpdateEngine for both streaming and non-streaming update. It allows us to do all preparations in intent service's thread, without blocking UI. We will also add checksum verification to PrepareUpdateService. Test: device, junit Bug: 77150191 Change-Id: I15c0bc58e3238bea6ea1c4f13063575e2def89c1 Merged-In: Iea69acd9aa41e17538c26aff60f7598093ca7744
* Move ab_streaming_metadata under ab_config.Zhomart Mukhamejanov2018-08-221-2/+2
| | | | | | | | | Add new config: ab_config.verify_payload_metadata. Change-Id: I521dff92166c33dd9c2efa498dc599fe4bc83fde Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com> Test: mmm, junit Bug: 77150191
* updater_config: make utils/PayloadSpecs non-staticZhomart Mukhamejanov2018-05-181-4/+6
| | | | | | | | | | | | PayloadSpecs has complicated methods, which makes hard to test other dependent classes. Making it non-static allows mocking it, which makes testing other classes easier. Test: manually Test: using JUnit4 Change-Id: I818dc59c6bb0e7d131439d0d41f88d5cd9a451b4 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* updater_sample: add HAL compatibility checkZhomart Mukhamejanov2018-05-101-26/+59
| | | | | | | | | | | - Refactor PrepareStreamingService#onHandleIntent - Add PrepareStreamingService#verifyPackageCompatibility Test: on the device Bug: 79471299 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com> Change-Id: I1b18502f0638d66810a3f7ada582e4c7cea20cdb
* updater_sample: add streaming supportZhomart Mukhamejanov2018-05-081-0/+216
- UpdateConfigs: add helper methods for streaming - add PrepareStreamingService intent service Test: manually and junit4 Bug: 77148143 Change-Id: I61711eb9abe051987e725fbd94f8cd029ff21dd3