Allow update transfer to be marked complete with an rpc. This makes
recovering a previously finished transfer across device reboot possible.
Change-Id: Iff16533f1c82f4def7ba4aa6b7a2d108d1f6ef57
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/76860
Reviewed-by: Yecheng Zhao <zyecheng@google.com>
Reviewed-by: Tri Pho <tripho@google.com>
Commit-Queue: Zihan Chen <zihanchen@google.com>
- Rework the bundle update service methods & related protos
- Enforce state invariants & add transitions
- Remove manifest related functionality for now
Still pending: Unit tests for this system
Requires: pigweed-internal:15720
Change-Id: Id16225a384f81f1f38241e0d6151a5b643ec0cfd
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/62443
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Keir Mierle <keir@google.com>
Also renames the pw_software_update proto package to instead
use the canonical pw.software_update. As part of this the
Manifest and UpdateBundle C++ classes were renamed to
ManifestAccessor and UpdateBundleAccessor.
Moves the service.proto to bundled_update.proto and renames the source
files accordingly.
No-Docs-Update-Reason: Module still in early development
Requires: pigweed-internal:15503
Change-Id: I6531ee5772c17331e9c5ce7e16f4b72002656834
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/61960
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Reviewed-by: David Rogers <davidrogers@google.com>
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>