diff --git a/core/java/android/os/image/DynamicSystemClient.java b/core/java/android/os/image/DynamicSystemClient.java index 8f68723e1b7d4..f1f24fb4dd894 100644 --- a/core/java/android/os/image/DynamicSystemClient.java +++ b/core/java/android/os/image/DynamicSystemClient.java @@ -211,7 +211,7 @@ public class DynamicSystemClient { * Intent Keys */ /** - * Intent key: Size of system image, in bytes. + * Intent key: Size of the system image, in bytes. * @hide */ public static final String KEY_SYSTEM_SIZE = "KEY_SYSTEM_SIZE"; @@ -365,7 +365,7 @@ public class DynamicSystemClient { * * This function doesn't require prior calling {@link #bind}. * - * @param systemUrl A network URL or a file URL to system image. + * @param systemUrl a network Uri, a file Uri or a content Uri pointing to a system image file. * @param systemSize size of system image. */ @RequiresPermission(android.Manifest.permission.INSTALL_DYNAMIC_SYSTEM) @@ -381,7 +381,7 @@ public class DynamicSystemClient { * * This function doesn't require prior calling {@link #bind}. * - * @param systemUrl A network URL or a file URL to system image. + * @param systemUrl a network Uri, a file Uri or a content Uri pointing to a system image file. * @param systemSize size of system image. * @param userdataSize bytes reserved for userdata. */ diff --git a/packages/DynamicSystemInstallationService/res/values/strings.xml b/packages/DynamicSystemInstallationService/res/values/strings.xml index a72e4e2c1b74c..2a66db124d10f 100644 --- a/packages/DynamicSystemInstallationService/res/values/strings.xml +++ b/packages/DynamicSystemInstallationService/res/values/strings.xml @@ -13,11 +13,11 @@ Please enter your password and continue to AndroidOnTap installation - New system is ready, you can reboot into it or discard it. + System update is ready. To finish installing, restart your device. - Installation is in progress. + Install in progress - Installation Failed. + Install Failed We are running in AndroidOnTap. @@ -27,12 +27,12 @@ Discard Uninstall - - Reboot + + Restart Installed AndroidOnTap is discarded. - Failed to reboot into AndroidOnTap. + Failed to restart to AndroidOnTap. diff --git a/packages/DynamicSystemInstallationService/src/com/android/dynandroid/DynamicSystemInstallationService.java b/packages/DynamicSystemInstallationService/src/com/android/dynandroid/DynamicSystemInstallationService.java index 5c6885a801e86..fcbda1d5c63b8 100644 --- a/packages/DynamicSystemInstallationService/src/com/android/dynandroid/DynamicSystemInstallationService.java +++ b/packages/DynamicSystemInstallationService/src/com/android/dynandroid/DynamicSystemInstallationService.java @@ -379,14 +379,14 @@ public class DynamicSystemInstallationService extends Service case STATUS_READY: builder.setContentText(getString(R.string.notification_install_completed)); - builder.addAction(new Notification.Action.Builder( - null, getString(R.string.notification_action_reboot_to_dynsystem), - createPendingIntent(ACTION_REBOOT_TO_DYN_SYSTEM)).build()); - builder.addAction(new Notification.Action.Builder( null, getString(R.string.notification_action_discard), createPendingIntent(ACTION_DISCARD_INSTALL)).build()); + builder.addAction(new Notification.Action.Builder( + null, getString(R.string.notification_action_reboot_to_dynsystem), + createPendingIntent(ACTION_REBOOT_TO_DYN_SYSTEM)).build()); + break; case STATUS_IN_USE: