diff options
author | Zhomart Mukhamejanov <zhomart@google.com> | 2018-06-05 02:39:22 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-06-05 02:39:22 +0200 |
commit | 8eed4aca52e3ce01777a6feef786d37a711527c3 (patch) | |
tree | 28f1ec66ce621af19d18ff11aae5afbb88df6fa3 | |
parent | Merge "updater_sample: improve updater state handling" am: 269be9f22d (diff) | |
parent | Merge "updater_sample: Add UI docs to README" (diff) | |
download | android_bootable_recovery-8eed4aca52e3ce01777a6feef786d37a711527c3.tar android_bootable_recovery-8eed4aca52e3ce01777a6feef786d37a711527c3.tar.gz android_bootable_recovery-8eed4aca52e3ce01777a6feef786d37a711527c3.tar.bz2 android_bootable_recovery-8eed4aca52e3ce01777a6feef786d37a711527c3.tar.lz android_bootable_recovery-8eed4aca52e3ce01777a6feef786d37a711527c3.tar.xz android_bootable_recovery-8eed4aca52e3ce01777a6feef786d37a711527c3.tar.zst android_bootable_recovery-8eed4aca52e3ce01777a6feef786d37a711527c3.zip |
-rw-r--r-- | updater_sample/README.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/updater_sample/README.md b/updater_sample/README.md index f6c63a7b6..8ec43d3c6 100644 --- a/updater_sample/README.md +++ b/updater_sample/README.md @@ -91,6 +91,31 @@ If they doesn't match, sample app calls `applyPayload` again with the same parameters, and handles update completion properly using `onPayloadApplicationCompleted` callback. The second problem is solved by adding `PAUSED` updater state. + +## Sample App UI + +### Text fields + +- `Current Build:` - shows current active build. +- `Updater state:` - SystemUpdaterSample app state. +- `Engine status:` - last reported update_engine status. +- `Engine error:` - last reported payload application error. + +### Buttons + +- `Reload` - reloads update configs from device storage. +- `View config` - shows selected update config. +- `Apply` - applies selected update config. +- `Stop` - cancel running update, calls `UpdateEngine#cancel`. +- `Reset` - reset update, calls `UpdateEngine#resetStatus`, can be called + only when update is not running. +- `Suspend` - suspend running update, uses `UpdateEngine#cancel`. +- `Resume` - resumes suspended update, uses `UpdateEngine#applyPayload`. +- `Switch Slot` - if `ab_config.force_switch_slot` config set true, + this button will be enabled after payload is applied, + to switch A/B slot on next reboot. + + ## Sending HTTP headers from UpdateEngine Sometimes OTA package server might require some HTTP headers to be present, |