summaryrefslogtreecommitdiffstats
path: root/updater_sample/res
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-05-04 11:34:33 +0200
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-05-04 11:34:33 +0200
commit0b72b7dc67de38d7b6aabb1b9d709564b366d5af (patch)
treeed48a00a97ba96e5388d1b3420ac425b81b35217 /updater_sample/res
parentSnap for 4754751 from 7ffa008463d282902fe96decddb6aa8250bc6161 to qt-release (diff)
parentMerge "Move menu headers/items to std::vector<std::string>." am: fb86bb2a07 am: 0d9ed29541 (diff)
downloadandroid_bootable_recovery-0b72b7dc67de38d7b6aabb1b9d709564b366d5af.tar
android_bootable_recovery-0b72b7dc67de38d7b6aabb1b9d709564b366d5af.tar.gz
android_bootable_recovery-0b72b7dc67de38d7b6aabb1b9d709564b366d5af.tar.bz2
android_bootable_recovery-0b72b7dc67de38d7b6aabb1b9d709564b366d5af.tar.lz
android_bootable_recovery-0b72b7dc67de38d7b6aabb1b9d709564b366d5af.tar.xz
android_bootable_recovery-0b72b7dc67de38d7b6aabb1b9d709564b366d5af.tar.zst
android_bootable_recovery-0b72b7dc67de38d7b6aabb1b9d709564b366d5af.zip
Diffstat (limited to 'updater_sample/res')
-rw-r--r--updater_sample/res/layout/activity_main.xml24
-rw-r--r--updater_sample/res/raw/sample.json16
2 files changed, 31 insertions, 9 deletions
diff --git a/updater_sample/res/layout/activity_main.xml b/updater_sample/res/layout/activity_main.xml
index 3cd772107..7a12d3474 100644
--- a/updater_sample/res/layout/activity_main.xml
+++ b/updater_sample/res/layout/activity_main.xml
@@ -114,7 +114,7 @@
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Running update status:" />
+ android:text="Update status:" />
<TextView
android:id="@+id/textViewStatus"
@@ -124,6 +124,28 @@
android:text="@string/unknown" />
</LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="4dp"
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/textView2"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Update completion:" />
+
+ <TextView
+ android:id="@+id/textViewCompletion"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="8dp"
+ android:text="@string/unknown" />
+ </LinearLayout>
+
+
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
diff --git a/updater_sample/res/raw/sample.json b/updater_sample/res/raw/sample.json
index 03335cc97..b6f4cdce6 100644
--- a/updater_sample/res/raw/sample.json
+++ b/updater_sample/res/raw/sample.json
@@ -1,18 +1,18 @@
{
"__name": "name will be visible on UI",
- "__url": "https:// or file:// uri to update file (zip, xz, ...)",
- "__type": "NON_STREAMING (from local file) OR STREAMING (on the fly)",
+ "__url": "https:// or file:// uri to update package (zip, xz, ...)",
+ "__type": "NON_STREAMING (from a local file) OR STREAMING (on the fly)",
"name": "SAMPLE-cake-release BUILD-12345",
- "url": "file:///data/builds/android-update.zip",
- "type": "NON_STREAMING",
- "streaming_metadata": {
+ "url": "http://foo.bar/builds/ota-001.zip",
+ "ab_install_type": "NON_STREAMING",
+ "ab_streaming_metadata": {
"__": "streaming_metadata is required only for streaming update",
"__property_files": "name, offset and size of files",
"property_files": [
{
- "__filename": "payload.bin and payload_properties.txt are required",
- "__offset": "defines beginning of update data in archive",
- "__size": "size of the update data in archive",
+ "__filename": "name of the file in package",
+ "__offset": "defines beginning of the file in package",
+ "__size": "size of the file in package",
"filename": "payload.bin",
"offset": 531,
"size": 5012323