VmTerminalApp: Add UI skeleton for download activity and service
Lanuch flow around installation.
- Step 1) MainActivity launch VM if installed.
- Step 2) If not installed, launch InstallerActivity.
- Step 3) When user clicks install, InstallerService installs image
as a foreground service. Installation would be ongoing
and notification will be there.
- Step 4) When installation is done, resume to the MainActivity.
If InstallerActivity was shown, it will be finished.
If not, MainActivity would only be resumed via user's
action.
Proper download logic will be handled in the next CL
BYPASS_LARGE_CHANGE_WARNING=~200 lines are file headers and resources.
Bug: 369740847
Test: Manually
Change-Id: I18af2dedc998998ae14dbf9a9146a0ca91bc5778
diff --git a/android/TerminalApp/res/values/strings.xml b/android/TerminalApp/res/values/strings.xml
index 0cdb939..7cacd3b 100644
--- a/android/TerminalApp/res/values/strings.xml
+++ b/android/TerminalApp/res/values/strings.xml
@@ -20,6 +20,23 @@
<!-- Application name of this terminal app shown in the launcher. This app provides computer terminal to connect to virtual machine. [CHAR LIMIT=16] -->
<string name="app_name">Terminal</string>
+ <!-- Installer activity title [CHAR LIMIT=none] -->
+ <string name="installer_title_text">Install Linux terminal</string>
+ <!-- Installer activity description format [CHAR LIMIT=none] -->
+ <string name="installer_desc_text_format">To launch Linux terminal, you need to download roughly <xliff:g id="expected_size" example="350GB">%1$s</xliff:g> of data over network.\nWould you proceed?</string>
+ <!-- Checkbox at the installer activity to wait for Wi-Fi on metered network to prevent from paying network traffic [CHAR LIMIT=none] -->
+ <string name="installer_wait_for_wifi_checkbox_text">Wait for Wi-Fi on metered network</string>
+ <!-- Button at the installer activity to confirm installation [CHAR LIMIT=16] -->
+ <string name="installer_install_button_enabled_text">Install</string>
+ <!-- Button at the installer activity to when installation is already in progress [CHAR LIMIT=16] -->
+ <string name="installer_install_button_disabled_text">Installing</string>
+ <!-- Toast message at installer activity when network doesn't meet[CHAR LIMIT=none] -->
+ <string name="installer_install_network_error_message">Network error. Check connection and retry.</string>
+ <!-- Notification title for installer [CHAR LIMIT=64] -->
+ <string name="installer_notif_title_text">Installing Linux terminal</string>
+ <!-- Notification description for installer [CHAR LIMIT=none] -->
+ <string name="installer_notif_desc_text">Linux terminal will be started after finish</string>
+
<!-- Action bar icon name for the settings view CHAR LIMIT=none] -->
<string name="action_settings">Settings</string>