summaryrefslogtreecommitdiffstats
path: root/updater_sample/src/com/example/android/systemupdatersample/services/PrepareUpdateService.java (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-0/+258
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