diff options
author | Zhomart Mukhamejanov <zhomart@google.com> | 2018-05-10 19:59:06 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-05-10 19:59:06 +0200 |
commit | 319e1912381f8cd4c1257b7c8c869639bcdbe4a4 (patch) | |
tree | 824ab20e31f493f64f52a97dc44c8954af961753 /updater_sample/README.md | |
parent | Merge "screen_ui: Fix an issue when displaying wrapped text." (diff) | |
parent | Merge "updater_sample: add http header demo" (diff) | |
download | android_bootable_recovery-319e1912381f8cd4c1257b7c8c869639bcdbe4a4.tar android_bootable_recovery-319e1912381f8cd4c1257b7c8c869639bcdbe4a4.tar.gz android_bootable_recovery-319e1912381f8cd4c1257b7c8c869639bcdbe4a4.tar.bz2 android_bootable_recovery-319e1912381f8cd4c1257b7c8c869639bcdbe4a4.tar.lz android_bootable_recovery-319e1912381f8cd4c1257b7c8c869639bcdbe4a4.tar.xz android_bootable_recovery-319e1912381f8cd4c1257b7c8c869639bcdbe4a4.tar.zst android_bootable_recovery-319e1912381f8cd4c1257b7c8c869639bcdbe4a4.zip |
Diffstat (limited to 'updater_sample/README.md')
-rw-r--r-- | updater_sample/README.md | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/updater_sample/README.md b/updater_sample/README.md index 2c1f0ced5..7e25b070c 100644 --- a/updater_sample/README.md +++ b/updater_sample/README.md @@ -61,6 +61,17 @@ purpose only. 6. Push OTA packages to the device. +## Sending HTTP headers from UpdateEngine + +Sometimes OTA package server might require some HTTP headers to be present, +e.g. `Authorization` header to contain valid auth token. While performing +streaming update, `UpdateEngine` allows passing on certain HTTP headers; +as of writing this sample app, these headers are `Authorization` and `User-Agent`. + +`android.os.UpdateEngine#applyPayload` contains information on +which HTTP headers are supported. + + ## Development - [x] Create a UI with list of configs, current version, @@ -72,12 +83,12 @@ purpose only. - [x] Prepare streaming update (partially downloading package) - [x] Add applying streaming update - [x] Add stop/reset the update +- [x] Add demo for passing HTTP headers to `UpdateEngine#applyPayload` - [ ] Add tests for `MainActivity` -- [ ] Verify system partition checksum for package - [ ] HAL compatibility check - [ ] Change partition demo +- [ ] Verify system partition checksum for package - [ ] Add non-A/B updates demo -- [ ] Add docs for passing HTTP headers to `UpdateEngine#applyPayload` ## Running tests |