From 0ed57b79a6554cd1dc2bcadaf118b02a91335928 Mon Sep 17 00:00:00 2001 From: Pawan Wagh Date: Wed, 22 May 2024 21:51:21 +0000 Subject: [PATCH] Fix strings for dev options Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk Bug: 295035851 Bug: 339878739 Change-Id: Id6f3ad503ac6c01209a67d1bc46a47b2bbd911af --- res/values/strings.xml | 8 +++++--- .../settings/development/EnableExt4WarningDialog.java | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index bac6af36748..dae8f5e1dae 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -11619,12 +11619,12 @@ Boot device using 16KB page size supported kernel - Switch from 4kB mode to 16KB mode + Switch from 4KB mode to 16KB mode - You are in the page-agnostic mode running a 4kB kernel, and you are switching to the 16KB mode. + You are in the page-agnostic mode running a 4KB kernel, and you are switching to the 16KB mode. Software integrity cannot be guaranteed in this mode, and any data stored on the phone while the bootloader is unlocked may be at risk. This will reboot the device. Some features will be disabled in these modes, so some applications may not work. - To return the device to production mode, you would need to then, switch back to the 4kB mode and lock the bootloader, + To return the device to production mode, you would need to then, switch back to the 4KB mode and lock the bootloader, which factory resets the device. After the device successfully boots into Android, disable OEM unlocking in Developer options. Switch from 16KB mode to 4KB mode @@ -11645,6 +11645,8 @@ then lock the bootloader, which factory resets the device. After the device successfully boots into Android, disable OEM unlocking in Developer options. The device will be wiped and the filesystem will be changed to ext4 after confirmation. After this completes, please come back to enable 16KB again. + + Erase all data Failed to reformat and wipe the data partition to ext4. diff --git a/src/com/android/settings/development/EnableExt4WarningDialog.java b/src/com/android/settings/development/EnableExt4WarningDialog.java index 0e1dffd6643..295d64b8d97 100644 --- a/src/com/android/settings/development/EnableExt4WarningDialog.java +++ b/src/com/android/settings/development/EnableExt4WarningDialog.java @@ -72,7 +72,7 @@ public class EnableExt4WarningDialog extends InstrumentedDialogFragment .setTitle(R.string.confirm_format_ext4_title) .setIcon(R.drawable.ic_delete_accent) .setMessage(R.string.confirm_format_ext4_text) - .setPositiveButton(R.string.main_clear_confirm_title, this /* onClickListener */) + .setPositiveButton(R.string.confirm_ext4_button_text, this /* onClickListener */) .setNegativeButton(android.R.string.cancel, this /* onClickListener */) .create(); }