summaryrefslogtreecommitdiffstats
path: root/updater_sample/tools (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-06-07updater_sample: change gen_update_config argsZhomart Mukhamejanov1-3/+3
Change gen_update_config arg '--ab_force_switch_slot' from 'bool' to 'store_action'. Test: manually Change-Id: Ic65ac9ca3feb99b3a1751a44dec038d49c2b446a Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
2018-05-17updater_sample: add switch slot demoZhomart Mukhamejanov1-2/+12
- 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-08updater_sample: update toolsZhomart Mukhamejanov2-39/+38
- Allow gen_update_config.py to use ota_from_target_files from $ANDROID_BUILD_TOP/build/make/tools/releasetools/ - tests/res/raw/ota_002_package.zip re-generated using functions from $ANDROID_BUILD_TOP/build/make/tools/releasetools/test_ota_from_target_files.py - sample app tests updated Test: ./tools/gen_update_config_test.py Change-Id: I5c492ec22782ba54fe481f592a44e797c695684e Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
2018-05-03updater_sample: update testsZhomart Mukhamejanov1-1/+1
- fix tools/gen_update_config.py - add tests for PayloadSpecs#forStreaming Test: junit4 Change-Id: Ife1980c5f72944ed35500aa820b30031fc99e820 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
2018-04-27updater_sample: fix gen_update_config.pyZhomart Mukhamejanov2-13/+75
Fix gen_update_config.py. And add tests for gen_update_config.py. Test: python3 updater_sample/tools/gen_update_config_test.py Change-Id: I0d270f1d5d7635855ee9acb0dd094e083cd33e3a Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
2018-04-26sample_updater: create tools/gen_update_config.pyZhomart Mukhamejanov1-0/+154
gen_update_config.py generates JSON config files from given OTA image zip files. README.md is updated. Test: manually Change-Id: Ifd09b49a73983a42752ee3842a566cecedb9cae0 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>