Lines Matching refs:update
7 A/B (seamless) update is available since Android Nougat (API 24), but this sample
14 to select an update and apply it to the device. App shows installation progress,
15 logs can be found in `adb logcat`. User can stop or reset an update. Resetting
16 the update requests update engine to cancel any ongoing update, and revert
17 if the update has been applied. Stopping does not revert the applied update.
22 In this sample updates are defined in JSON update config files.
27 In real-life update system the config files expected to be served from a server
39 opposed to the entire package, to initiate a streaming update. The `payload.bin`
56 UpdateEngine provides status for different stages of update application
57 process. But it lacks of proper status codes when update fails.
63 If app binds to update_engine after update is completed,
65 And there is no way to know if update was successful or not.
72 To solve these problems sample app implements its own separate update
77 parameters, and handles update completion properly using `onPayloadApplicationCompleted`
92 - `Reload` - reloads update configs from device storage.
93 - `View config` - shows selected update config.
94 - `Apply` - applies selected update config.
95 - `Stop` - cancel running update, calls `UpdateEngine#cancel`.
96 - `Reset` - reset update, calls `UpdateEngine#resetStatus`, can be called
97 only when update is not running.
98 - `Suspend` - suspend running update, uses `UpdateEngine#cancel`.
99 - `Resume` - resumes suspended update, uses `UpdateEngine#applyPayload`.
109 streaming update, `UpdateEngine` allows passing on certain HTTP headers;
125 Start an update attempt to download an apply the provided `payload_url` if
126 no other update is running. The extra `key_value_pair_headers` will be
134 Cancel the ongoing update. The update could be running or suspended, but it
139 Reset the already applied update back to an idle state. This method can
140 only be called when no update attempt is going on, and it will reset the
141 status back to idle, deleting the currently applied update if any.
154 Called whenever an update attempt is completed or failed.
168 5. Add update config files; look above at [Update Config file](#Update-Config-file).
199 8. Add update config files; look above at `## Update Config file`;
212 update zip file
214 - [x] Add applying non-streaming update
215 - [x] Prepare streaming update (partially downloading package)
216 - [x] Add applying streaming update
217 - [x] Add stop/reset the update
221 - [x] Add UpdateManager; extract update logic from MainActivity
222 - [x] Add Sample app update state (separate from update_engine status)
223 - [x] Add smart update completion detection using onStatusUpdate