diff options
author | Zhomart Mukhamejanov <zhomart@google.com> | 2018-05-09 23:28:49 +0200 |
---|---|---|
committer | Zhomart Mukhamejanov <zhomart@google.com> | 2018-05-10 02:33:52 +0200 |
commit | 6aa5fb0bbe8d074208648593d177553e732e6d9d (patch) | |
tree | 0ba8a4d125e3343d0278fa5505f3afc74bfc5185 /updater_sample/README.md | |
parent | Merge "updater_sample: update tools" (diff) | |
download | android_bootable_recovery-6aa5fb0bbe8d074208648593d177553e732e6d9d.tar android_bootable_recovery-6aa5fb0bbe8d074208648593d177553e732e6d9d.tar.gz android_bootable_recovery-6aa5fb0bbe8d074208648593d177553e732e6d9d.tar.bz2 android_bootable_recovery-6aa5fb0bbe8d074208648593d177553e732e6d9d.tar.lz android_bootable_recovery-6aa5fb0bbe8d074208648593d177553e732e6d9d.tar.xz android_bootable_recovery-6aa5fb0bbe8d074208648593d177553e732e6d9d.tar.zst android_bootable_recovery-6aa5fb0bbe8d074208648593d177553e732e6d9d.zip |
Diffstat (limited to '')
-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 |