diff options
author | Zhomart Mukhamejanov <zhomart@google.com> | 2018-05-10 01:25:40 +0200 |
---|---|---|
committer | Zhomart Mukhamejanov <zhomart@google.com> | 2018-05-17 18:29:57 +0200 |
commit | 238beb73739071735a6bcbe462e27ab09a747f02 (patch) | |
tree | c31c7704c28bd2a54cc077781a0ba8526be63b02 /updater_sample/res | |
parent | Merge "recovery: Refactor common setup into main()" (diff) | |
download | android_bootable_recovery-238beb73739071735a6bcbe462e27ab09a747f02.tar android_bootable_recovery-238beb73739071735a6bcbe462e27ab09a747f02.tar.gz android_bootable_recovery-238beb73739071735a6bcbe462e27ab09a747f02.tar.bz2 android_bootable_recovery-238beb73739071735a6bcbe462e27ab09a747f02.tar.lz android_bootable_recovery-238beb73739071735a6bcbe462e27ab09a747f02.tar.xz android_bootable_recovery-238beb73739071735a6bcbe462e27ab09a747f02.tar.zst android_bootable_recovery-238beb73739071735a6bcbe462e27ab09a747f02.zip |
Diffstat (limited to 'updater_sample/res')
-rw-r--r-- | updater_sample/res/layout/activity_main.xml | 17 | ||||
-rw-r--r-- | updater_sample/res/raw/sample.json | 5 | ||||
-rw-r--r-- | updater_sample/res/values/strings.xml | 2 |
3 files changed, 24 insertions, 0 deletions
diff --git a/updater_sample/res/layout/activity_main.xml b/updater_sample/res/layout/activity_main.xml index 7a12d3474..d9e56b4b3 100644 --- a/updater_sample/res/layout/activity_main.xml +++ b/updater_sample/res/layout/activity_main.xml @@ -178,6 +178,23 @@ android:text="Reset" /> </LinearLayout> + <TextView + android:id="@+id/textViewUpdateInfo" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="14dp" + android:textColor="#777" + android:textSize="10sp" + android:textStyle="italic" + android:text="@string/finish_update_info" /> + + <Button + android:id="@+id/buttonSwitchSlot" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:onClick="onSwitchSlotClick" + android:text="@string/switch_slot" /> + </LinearLayout> </ScrollView> diff --git a/updater_sample/res/raw/sample.json b/updater_sample/res/raw/sample.json index 46fbfa33e..f188c233b 100644 --- a/updater_sample/res/raw/sample.json +++ b/updater_sample/res/raw/sample.json @@ -20,5 +20,10 @@ } ], "authorization": "Basic my-secret-token" + }, + "ab_config": { + "__": "A/B (seamless) update configurations", + "__force_switch_slot": "if set true device will boot to a new slot, otherwise user manually switches slot on the screen", + "force_switch_slot": false } } diff --git a/updater_sample/res/values/strings.xml b/updater_sample/res/values/strings.xml index 2b671ee5d..db4a5dc67 100644 --- a/updater_sample/res/values/strings.xml +++ b/updater_sample/res/values/strings.xml @@ -18,4 +18,6 @@ <string name="action_reload">Reload</string> <string name="unknown">Unknown</string> <string name="close">CLOSE</string> + <string name="switch_slot">Switch Slot</string> + <string name="finish_update_info">To finish the update press the button below</string> </resources> |