summaryrefslogtreecommitdiffstats
path: root/updater_sample/res/layout/activity_main.xml (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-06-05updater_sample: Add suspend/resume updateZhomart Mukhamejanov1-0/+23
- Add suspend/resume buttons. - UpdateManager: add suspend/resume control methods. - UpdaterState: fix transitions. Test: on the device Bug: 77150010 Change-Id: I174edd32401f8232b5071eb1a2758a4704779801 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
2018-05-25updater_sample: add updater stateZhomart Mukhamejanov1-5/+24
- Add util.UpdaterStates - the state of SystemUpdaterSample. It's different from status of UpdateEngine; when UpdateEngine#cancel is used to suspend the update, UpdateEngine sets status to IDLE, which cannot be used to track the suspended state. - UI: Change 'Update status' to 'Engine status'. - UI: Change 'Update completion' to 'Engine error code'. - UI: Add 'Updater state'. Test: manually on the device Test: using JUnit4 Change-Id: I9c58b5ed0eae3be7ab8b217fc01a621e8fb2f4bf Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
2018-05-17updater_sample: add switch slot demoZhomart Mukhamejanov1-0/+17
- Add util/UpdateEngineProperties.java - Set SWITCH_SLOT_ON_REBOOT=0 when update is applied - Allow user to switch slot to the updated partition manually - Add config "ab_config.force_switch_slot" - Add ab_force_switch_slot to tools/gen_update_config.py Test: manually on the marlin device Bug: 79492522 Change-Id: I52f818b576d52a052b5427ba3f732cb2371ddb06 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
2018-05-03updater_sample: update ui and README, clean-upZhomart Mukhamejanov1-1/+23
- ui: add text view for latest completion (error) code - update README.md - update MainActivity.java - remove AbNonStreamingUpdate Test: mmma bootable/recovery/updater_sample Change-Id: Ie9bb64211c57d536036b04f13896e4937c392b6e Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
2018-04-26Rename the dir for SystemUpdaterSample.Tao Bao1-0/+0
Also replace the occurrence in README.md and PREUPLOAD.cfg. Test: mmma -j bootable/recovery Change-Id: I04c0ef00dd64f49e008ad2a4a2c1e8eaed76bf8d
2018-04-25sample_updater: add non-streaming demoZhomart Mukhamejanov1-14/+157
SampleUpdater app was tested manually on a device. There are unit tests for utility classes. SampleUpdater app demonstrates how to use Android Update Engine to apply A/B (seamless) update. This CL contains demo of non-stream update using async update_engine, which is accessed directly from an activity. This app also shows logs from update_engine on the UI. Instructions can be found in `README.md`. - Create a UI with list of configs, current version, control buttons and a progress bar - Add PayloadSpec and PayloadSpecs for working with update zip file - Add UpdateConfig for working with json config files - Add applying non-streaming update Test: tested manually and unit tests for utilities Change-Id: I05d4a46ad9cf8b334c9c60c7dd4da486dac0400a Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
2018-04-01Create the SystemUpdate activity class.Jiachen Zhao1-6/+5
Test: tested sample app with sideloading. Change-Id: I0d1661cea57c706b4981a4cda9f9b69fdeb69292
2018-03-31Create folder for SystemUpdate sample app.Jiachen Zhao1-0/+21
Test: no functional changes. Change-Id: I2e8c654086ca49063c59ae0529e190323c84d6ad