setupwizard: fix all lint findings
- Commit
b60ee108f5f17e174e927f237a0a687ddcc4dc07- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-17 05:16 UTC (19 days ago)
- Parents
f0545c5
Fix every lint warning reported for the setupwizard module's own sources by :setupwizard:lintDev, now 0 errors / 0 warnings for setupwizard/** (remaining report entries are transitive library findings owned by other clusters).
UnusedResources (7): verified unreferenced and deleted. PackageStructure (1) and InlinedApi (1): file moved into a closed root and the constant inlined at its use site. NotificationPermission: POST_NOTIFICATIONS added to the manifest.
One justified suppression: @SuppressLint("PrivateApi") on SystemSetup — a setup wizard must reach @SystemApi framework calls (system locale, bootloader lock state, status-bar lockdown) that have no public SDK equivalents; reflection fails soft and the privileged permissions are still enforced framework-side. No lint config or baseline changed.
Verified: ./gradlew :setupwizard:lintDev (0 own-module errors/warnings) and :setupwizard:testDevUnitTest green.Diff
setupwizard/src/main/AndroidManifest.xml
diff --git a/setupwizard/src/main/AndroidManifest.xml b/setupwizard/src/main/AndroidManifest.xmlindex 916baa4b45..f13d4ecbcb 100644--- a/setupwizard/src/main/AndroidManifest.xml+++ b/setupwizard/src/main/AndroidManifest.xml@@ -23,6 +23,7 @@ --> <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> <uses-permission android:name="android.permission.WRITE_SETTINGS" />+ <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> <!-- The gesture tutorial, the Wi-Fi and lock-screen setup flows and the restore flow all live
setupwizard/src/main/java/com/vayunmathur/setupwizard/Navigation.kt
diff --git a/setupwizard/src/main/java/com/vayunmathur/setupwizard/Navigation.kt b/setupwizard/src/main/java/com/vayunmathur/setupwizard/Navigation.ktindex c06cecf42e..6c04ba4c7a 100644--- a/setupwizard/src/main/java/com/vayunmathur/setupwizard/Navigation.kt+++ b/setupwizard/src/main/java/com/vayunmathur/setupwizard/Navigation.kt@@ -1,33 +1,24 @@ package com.vayunmathur.setupwizard -import android.app.Activity import android.content.ActivityNotFoundException-import android.content.Context import android.content.Intent-import android.content.pm.PackageManager-import com.vayunmathur.library.log.Log import androidx.activity.compose.BackHandler import androidx.activity.compose.LocalActivity-import androidx.activity.compose.rememberLauncherForActivityResult-import androidx.activity.result.contract.ActivityResultContracts.StartActivityForResult import androidx.compose.runtime.Composable-import androidx.compose.runtime.LaunchedEffect-import androidx.compose.runtime.remember import androidx.compose.ui.platform.LocalContext-import androidx.compose.ui.res.stringResource+import com.vayunmathur.library.log.Log import com.vayunmathur.library.util.MainNavigation import com.vayunmathur.library.util.rememberNavBackStack import com.vayunmathur.setupwizard.platform.SetupFlow-import com.vayunmathur.setupwizard.platform.SetupIntents-import com.vayunmathur.setupwizard.platform.SetupUiState import com.vayunmathur.setupwizard.platform.SetupViewModel-import com.vayunmathur.setupwizard.ui.FinishScreen-import com.vayunmathur.setupwizard.ui.GesturesScreen-import com.vayunmathur.setupwizard.ui.HandoffScreen-import com.vayunmathur.setupwizard.ui.LocationScreen-import com.vayunmathur.setupwizard.ui.MigrationScreen-import com.vayunmathur.setupwizard.ui.OemUnlockScreen-import com.vayunmathur.setupwizard.ui.WelcomeScreen+import com.vayunmathur.setupwizard.ui.FinishStep+import com.vayunmathur.setupwizard.ui.GesturesStep+import com.vayunmathur.setupwizard.ui.LocationStep+import com.vayunmathur.setupwizard.ui.MigrationStep+import com.vayunmathur.setupwizard.ui.OemUnlockStep+import com.vayunmathur.setupwizard.ui.SecurityStep+import com.vayunmathur.setupwizard.ui.WelcomeStep+import com.vayunmathur.setupwizard.ui.WifiStep @Composable fun Navigation(viewModel: SetupViewModel) {@@ -106,148 +97,10 @@ fun Navigation(viewModel: SetupViewModel) { } } -@Composable-private fun WelcomeStep(- viewModel: SetupViewModel,- state: SetupUiState,- onOpen: (Intent) -> Unit,- onNextOemUnlock: () -> Unit,- onNext: () -> Unit,-) {- val context = LocalContext.current- LaunchedEffect(Unit) { viewModel.onEnterWelcome() }- val canCall = context.packageManager- .hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CALLING)- WelcomeScreen(- state = state,- languages = viewModel::availableLanguages,- onLanguageSelected = viewModel::setLanguage,- onAccessibility = { onOpen(SetupIntents.accessibilitySettings()) },- onEmergencyCall = if (canCall) {- { onOpen(viewModel.system.emergencyDialerIntent()) }- } else {- null- },- onNext = {- if (viewModel.welcomeLeadsToBootloaderWarning()) onNextOemUnlock() else onNext()- },- )-} -@Composable-private fun OemUnlockStep(- viewModel: SetupViewModel,- state: SetupUiState,- onContinue: () -> Unit,-) {- OemUnlockScreen(- state = state,- onStartAckTimer = viewModel::startBootloaderAckTimer,- onRebootToBootloader = viewModel::rebootToBootloader,- // Not a step of its own, so continuing resumes where the welcome step would- // have gone rather than looking for whatever follows this screen.- onContinue = onContinue,- )-} -@Composable-private fun WifiStep(onCancelled: () -> Unit, onDone: () -> Unit) {- val title = stringResource(R.string.connect_to_wi_fi)- val description = stringResource(R.string.select_a_network)- val skip = stringResource(R.string.set_up_without_wi_fi)- HandoffScreen(- intent = { SetupIntents.setupInternet(title, description, skip) },- onCancelled = onCancelled,- onCompleted = { onDone() },- onUnavailable = { onDone() },- )-} -@Composable-private fun LocationStep(- viewModel: SetupViewModel,- state: SetupUiState,- onNext: () -> Unit,-) {- LocationScreen(- state = state,- onLocationEnabled = viewModel::setLocationEnabled,- onWifiScanningEnabled = viewModel::setWifiScanningEnabled,- onNext = onNext,- )-} -@Composable-private fun SecurityStep(- viewModel: SetupViewModel,- state: SetupUiState,- onCancelled: () -> Unit,- onDone: () -> Unit,-) {- HandoffScreen(- // A device that already has a lock screen has nothing to enrol, so the step- // reports itself unavailable rather than opening an empty enrolment flow.- intent = { if (state.deviceSecure) null else SetupIntents.biometricEnroll() },- onCancelled = { viewModel.refreshSecurity(); onCancelled() },- onCompleted = { viewModel.refreshSecurity(); onDone() },- onUnavailable = { onDone() },- )-} -@Composable-private fun MigrationStep(- context: Context,- onAdvance: (Route) -> Unit,- onAdvanceReplacing: (Route) -> Unit,-) {- // Resolved once rather than on every recomposition: this is a PackageManager query.- val restore = remember { SetupIntents.restoreBackup(context) }- // Nothing restores backups on this image yet, so the step is not shown at all- // rather than offering a button that opens nothing. See SetupIntents.- if (restore == null) {- LaunchedEffect(Unit) { onAdvanceReplacing(Route.Migration) }- } else {- val launcher = rememberLauncherForActivityResult(StartActivityForResult()) {- // Backing out of the restore leaves the user here, with Skip still- // available; anything else means a restore was started and the step is done.- if (it.resultCode != Activity.RESULT_CANCELED) onAdvance(Route.Migration)- }- MigrationScreen(- onRestore = { launcher.launch(restore) },- onSkip = { onAdvance(Route.Migration) },- )- }-} -@Composable-private fun GesturesStep(onDone: (Route) -> Unit) {- val tutorial = remember { SetupIntents.gestureTutorial() }- val launcher = rememberLauncherForActivityResult(StartActivityForResult()) {- if (it.resultCode != Activity.RESULT_CANCELED) onDone(Route.Gestures)- }- GesturesScreen(- onTryIt = {- try {- launcher.launch(tutorial)- } catch (e: ActivityNotFoundException) {- Log.status("SetupNavigation", "no gesture tutorial on this image", e)- onDone(Route.Gestures)- }- },- onSkip = { onDone(Route.Gestures) },- )-} -@Composable-private fun FinishStep(- viewModel: SetupViewModel,- state: SetupUiState,- activity: Activity?,-) {- FinishScreen(- state = state,- onFinish = { disableOemUnlocking ->- activity?.let { viewModel.finishSetup(it, disableOemUnlocking) }- },- )-}
setupwizard/src/main/java/com/vayunmathur/setupwizard/platform/SystemSetup.kt
diff --git a/setupwizard/src/main/java/com/vayunmathur/setupwizard/platform/SystemSetup.kt b/setupwizard/src/main/java/com/vayunmathur/setupwizard/platform/SystemSetup.ktindex 10e2fe66a5..6518af6680 100644--- a/setupwizard/src/main/java/com/vayunmathur/setupwizard/platform/SystemSetup.kt+++ b/setupwizard/src/main/java/com/vayunmathur/setupwizard/platform/SystemSetup.kt@@ -1,5 +1,6 @@ package com.vayunmathur.setupwizard.platform +import android.annotation.SuppressLint import android.app.Activity import android.app.ActivityManager import android.app.AlarmManager@@ -40,6 +41,11 @@ private const val TAG = "SystemSetup" * out of, it is a device that never finishes first boot. Every call degrades to the reading * that keeps the flow moving instead. */+// PrivateApi is a false positive here: a setup wizard must reach @SystemApi/@hide+// framework calls (system locale, bootloader lock, status-bar lockdown) that have no+// public SDK accessor; reflection is feature-gated and failure-degrading, and the+// platform still enforces the privileged permissions on the framework side.+@SuppressLint("PrivateApi") class SystemSetup(context: Context) { private val appContext = context.applicationContext
setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/FinishStep.kt
diff --git a/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/FinishStep.kt b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/FinishStep.ktnew file mode 100644index 0000000000..2828f4e6f2--- /dev/null+++ b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/FinishStep.kt@@ -0,0 +1,20 @@+package com.vayunmathur.setupwizard.ui++import android.app.Activity+import androidx.compose.runtime.Composable+import com.vayunmathur.setupwizard.platform.SetupUiState+import com.vayunmathur.setupwizard.platform.SetupViewModel++@Composable+internal fun FinishStep(+ viewModel: SetupViewModel,+ state: SetupUiState,+ activity: Activity?,+) {+ FinishScreen(+ state = state,+ onFinish = { disableOemUnlocking ->+ activity?.let { viewModel.finishSetup(it, disableOemUnlocking) }+ },+ )+}
setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/GesturesStep.kt
diff --git a/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/GesturesStep.kt b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/GesturesStep.ktnew file mode 100644index 0000000000..0850adace3--- /dev/null+++ b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/GesturesStep.kt@@ -0,0 +1,30 @@+package com.vayunmathur.setupwizard.ui++import android.app.Activity+import android.content.ActivityNotFoundException+import androidx.activity.compose.rememberLauncherForActivityResult+import androidx.activity.result.contract.ActivityResultContracts.StartActivityForResult+import androidx.compose.runtime.Composable+import androidx.compose.runtime.remember+import com.vayunmathur.library.log.Log+import com.vayunmathur.setupwizard.Route+import com.vayunmathur.setupwizard.platform.SetupIntents++@Composable+internal fun GesturesStep(onDone: (Route) -> Unit) {+ val tutorial = remember { SetupIntents.gestureTutorial() }+ val launcher = rememberLauncherForActivityResult(StartActivityForResult()) {+ if (it.resultCode != Activity.RESULT_CANCELED) onDone(Route.Gestures)+ }+ GesturesScreen(+ onTryIt = {+ try {+ launcher.launch(tutorial)+ } catch (e: ActivityNotFoundException) {+ Log.status("SetupNavigation", "no gesture tutorial on this image", e)+ onDone(Route.Gestures)+ }+ },+ onSkip = { onDone(Route.Gestures) },+ )+}
setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/LocationStep.kt
diff --git a/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/LocationStep.kt b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/LocationStep.ktnew file mode 100644index 0000000000..18a2f6330a--- /dev/null+++ b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/LocationStep.kt@@ -0,0 +1,19 @@+package com.vayunmathur.setupwizard.ui++import androidx.compose.runtime.Composable+import com.vayunmathur.setupwizard.platform.SetupUiState+import com.vayunmathur.setupwizard.platform.SetupViewModel++@Composable+internal fun LocationStep(+ viewModel: SetupViewModel,+ state: SetupUiState,+ onNext: () -> Unit,+) {+ LocationScreen(+ state = state,+ onLocationEnabled = viewModel::setLocationEnabled,+ onWifiScanningEnabled = viewModel::setWifiScanningEnabled,+ onNext = onNext,+ )+}
setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/MigrationStep.kt
diff --git a/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/MigrationStep.kt b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/MigrationStep.ktnew file mode 100644index 0000000000..d6f1e8fab2--- /dev/null+++ b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/MigrationStep.kt@@ -0,0 +1,36 @@+package com.vayunmathur.setupwizard.ui++import android.app.Activity+import android.content.Context+import androidx.activity.compose.rememberLauncherForActivityResult+import androidx.activity.result.contract.ActivityResultContracts.StartActivityForResult+import androidx.compose.runtime.Composable+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.runtime.remember+import com.vayunmathur.setupwizard.Route+import com.vayunmathur.setupwizard.platform.SetupIntents++@Composable+internal fun MigrationStep(+ context: Context,+ onAdvance: (Route) -> Unit,+ onAdvanceReplacing: (Route) -> Unit,+) {+ // Resolved once rather than on every recomposition: this is a PackageManager query.+ val restore = remember { SetupIntents.restoreBackup(context) }+ // Nothing restores backups on this image yet, so the step is not shown at all+ // rather than offering a button that opens nothing. See SetupIntents.+ if (restore == null) {+ LaunchedEffect(Unit) { onAdvanceReplacing(Route.Migration) }+ } else {+ val launcher = rememberLauncherForActivityResult(StartActivityForResult()) {+ // Backing out of the restore leaves the user here, with Skip still+ // available; anything else means a restore was started and the step is done.+ if (it.resultCode != Activity.RESULT_CANCELED) onAdvance(Route.Migration)+ }+ MigrationScreen(+ onRestore = { launcher.launch(restore) },+ onSkip = { onAdvance(Route.Migration) },+ )+ }+}
setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/OemUnlockStep.kt
diff --git a/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/OemUnlockStep.kt b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/OemUnlockStep.ktnew file mode 100644index 0000000000..629be73485--- /dev/null+++ b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/OemUnlockStep.kt@@ -0,0 +1,21 @@+package com.vayunmathur.setupwizard.ui++import androidx.compose.runtime.Composable+import com.vayunmathur.setupwizard.platform.SetupUiState+import com.vayunmathur.setupwizard.platform.SetupViewModel++@Composable+internal fun OemUnlockStep(+ viewModel: SetupViewModel,+ state: SetupUiState,+ onContinue: () -> Unit,+) {+ OemUnlockScreen(+ state = state,+ onStartAckTimer = viewModel::startBootloaderAckTimer,+ onRebootToBootloader = viewModel::rebootToBootloader,+ // Not a step of its own, so continuing resumes where the welcome step would+ // have gone rather than looking for whatever follows this screen.+ onContinue = onContinue,+ )+}
setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/SecurityStep.kt
diff --git a/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/SecurityStep.kt b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/SecurityStep.ktnew file mode 100644index 0000000000..eb559995ca--- /dev/null+++ b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/SecurityStep.kt@@ -0,0 +1,23 @@+package com.vayunmathur.setupwizard.ui++import androidx.compose.runtime.Composable+import com.vayunmathur.setupwizard.platform.SetupIntents+import com.vayunmathur.setupwizard.platform.SetupUiState+import com.vayunmathur.setupwizard.platform.SetupViewModel++@Composable+internal fun SecurityStep(+ viewModel: SetupViewModel,+ state: SetupUiState,+ onCancelled: () -> Unit,+ onDone: () -> Unit,+) {+ HandoffScreen(+ // A device that already has a lock screen has nothing to enrol, so the step+ // reports itself unavailable rather than opening an empty enrolment flow.+ intent = { if (state.deviceSecure) null else SetupIntents.biometricEnroll() },+ onCancelled = { viewModel.refreshSecurity(); onCancelled() },+ onCompleted = { viewModel.refreshSecurity(); onDone() },+ onUnavailable = { onDone() },+ )+}
setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/WelcomeStep.kt
diff --git a/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/WelcomeStep.kt b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/WelcomeStep.ktnew file mode 100644index 0000000000..6e9d618e96--- /dev/null+++ b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/WelcomeStep.kt@@ -0,0 +1,39 @@+package com.vayunmathur.setupwizard.ui++import android.content.Intent+import android.content.pm.PackageManager+import android.os.Build+import androidx.compose.runtime.Composable+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.ui.platform.LocalContext+import com.vayunmathur.setupwizard.platform.SetupIntents+import com.vayunmathur.setupwizard.platform.SetupUiState+import com.vayunmathur.setupwizard.platform.SetupViewModel++@Composable+internal fun WelcomeStep(+ viewModel: SetupViewModel,+ state: SetupUiState,+ onOpen: (Intent) -> Unit,+ onNextOemUnlock: () -> Unit,+ onNext: () -> Unit,+) {+ val context = LocalContext.current+ LaunchedEffect(Unit) { viewModel.onEnterWelcome() }+ val canCall = Build.VERSION.SDK_INT >= 33 &&+ context.packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CALLING)+ WelcomeScreen(+ state = state,+ languages = viewModel::availableLanguages,+ onLanguageSelected = viewModel::setLanguage,+ onAccessibility = { onOpen(SetupIntents.accessibilitySettings()) },+ onEmergencyCall = if (canCall) {+ { onOpen(viewModel.system.emergencyDialerIntent()) }+ } else {+ null+ },+ onNext = {+ if (viewModel.welcomeLeadsToBootloaderWarning()) onNextOemUnlock() else onNext()+ },+ )+}
setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/WifiStep.kt
diff --git a/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/WifiStep.kt b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/WifiStep.ktnew file mode 100644index 0000000000..6a25822aa4--- /dev/null+++ b/setupwizard/src/main/java/com/vayunmathur/setupwizard/ui/WifiStep.kt@@ -0,0 +1,19 @@+package com.vayunmathur.setupwizard.ui++import androidx.compose.runtime.Composable+import androidx.compose.ui.res.stringResource+import com.vayunmathur.setupwizard.R+import com.vayunmathur.setupwizard.platform.SetupIntents++@Composable+internal fun WifiStep(onCancelled: () -> Unit, onDone: () -> Unit) {+ val title = stringResource(R.string.connect_to_wi_fi)+ val description = stringResource(R.string.select_a_network)+ val skip = stringResource(R.string.set_up_without_wi_fi)+ HandoffScreen(+ intent = { SetupIntents.setupInternet(title, description, skip) },+ onCancelled = onCancelled,+ onCompleted = { onDone() },+ onUnavailable = { onDone() },+ )+}
setupwizard/src/main/res/values-ar/strings.xml
diff --git a/setupwizard/src/main/res/values-ar/strings.xml b/setupwizard/src/main/res/values-ar/strings.xmlindex 80df1bec29..706bf6b660 100644--- a/setupwizard/src/main/res/values-ar/strings.xml+++ b/setupwizard/src/main/res/values-ar/strings.xml@@ -15,12 +15,6 @@ <string name="connect_to_wi_fi">الاتصال بشبكة Wi-Fi</string> <string name="select_a_network">اختيار شبكة</string> <string name="set_up_without_wi_fi">إعداد بدون Wi-Fi</string>- <string name="date_and_time">التاريخ والوقت</string>- <string name="date_and_time_desc">اضبط المنطقة الزمنية و عدّل التاريخ والوقت الحاليّين إذا لزم الأمر</string>- <string name="date">التاريخ</string>- <string name="time">الوقت</string>- <string name="time_zone">المنطقة الزمنية</string>- <string name="select_time_zone">اختيار المنطقة الزمنية</string> <string name="location_services">خدمات الموقع الجغرافي</string> <string name="location_access_title">استخدام الموقع الجغرافي</string> <string name="location_access_desc">السماح للتطبيقات التي طلبت إذنك باستخدام معلومات موقعك الجغرافي. وقد يشمل ذلك موقعك الجغرافي الحالي والمواقع الجغرافية السابقة.</string>
setupwizard/src/main/res/values-et/strings.xml
diff --git a/setupwizard/src/main/res/values-et/strings.xml b/setupwizard/src/main/res/values-et/strings.xmlindex df36821111..6578f906ad 100644--- a/setupwizard/src/main/res/values-et/strings.xml+++ b/setupwizard/src/main/res/values-et/strings.xml@@ -7,10 +7,6 @@ <string name="welcome_to_modern_apps_os">Tere tulemast, see on Modern Apps OS</string> <string name="modern_apps_os_desc">Privaatsus ja turvalisus, mis on loodud just sinu mobiilseadme jaoks ning mida saab kasutada igaüks.</string> <string name="lets_setup_your_device">Seadistame sinu nutiseadme paari sammuga.</string>- <string name="date">Kuupäev</string>- <string name="time">Kellaaeg</string>- <string name="time_zone">Ajavöönd</string>- <string name="select_time_zone">Vali ajavöönd</string> <string name="restore">Taasta</string> <string name="try_it">Proovi seda</string> </resources>
setupwizard/src/main/res/values/arrays.xml
diff --git a/setupwizard/src/main/res/values/arrays.xml b/setupwizard/src/main/res/values/arrays.xmldeleted file mode 100644index 47c2d2131f..0000000000--- a/setupwizard/src/main/res/values/arrays.xml+++ /dev/null@@ -1,101 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<resources>- <!--- The time zones offered on the date-and-time step, in the order they are shown: west to- east, one representative zone per offset. Copied verbatim from SettingsLib so the wizard- and Settings agree on the shortlist.- SOURCE: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/main/packages/SettingsLib/res/xml/timezones.xml- -->- <array name="time_zones">- <item>Pacific/Midway</item>- <item>Pacific/Honolulu</item>- <item>America/Anchorage</item>- <item>America/Los_Angeles</item>- <item>America/Tijuana</item>- <item>America/Phoenix</item>- <item>America/Chihuahua</item>- <item>America/Denver</item>- <item>America/Costa_Rica</item>- <item>America/Chicago</item>- <item>America/Mexico_City</item>- <item>America/Regina</item>- <item>America/Bogota</item>- <item>America/New_York</item>- <item>America/Caracas</item>- <item>America/Barbados</item>- <item>America/Halifax</item>- <item>America/Manaus</item>- <item>America/Santiago</item>- <item>America/St_Johns</item>- <item>America/Recife</item>- <item>America/Sao_Paulo</item>- <item>America/Argentina/Buenos_Aires</item>- <item>America/Godthab</item>- <item>America/Montevideo</item>- <item>Atlantic/South_Georgia</item>- <item>Atlantic/Azores</item>- <item>Atlantic/Cape_Verde</item>- <item>Etc/UTC</item>- <item>Africa/Casablanca</item>- <item>Europe/London</item>- <item>Europe/Amsterdam</item>- <item>Europe/Belgrade</item>- <item>Europe/Brussels</item>- <item>Europe/Madrid</item>- <item>Europe/Sarajevo</item>- <item>Africa/Windhoek</item>- <item>Africa/Brazzaville</item>- <item>Asia/Amman</item>- <item>Europe/Athens</item>- <item>Europe/Istanbul</item>- <item>Asia/Beirut</item>- <item>Africa/Cairo</item>- <item>Europe/Helsinki</item>- <item>Asia/Jerusalem</item>- <item>Europe/Minsk</item>- <item>Africa/Harare</item>- <item>Asia/Baghdad</item>- <item>Europe/Moscow</item>- <item>Asia/Kuwait</item>- <item>Africa/Nairobi</item>- <item>Asia/Tehran</item>- <item>Asia/Baku</item>- <item>Asia/Tbilisi</item>- <item>Asia/Yerevan</item>- <item>Asia/Dubai</item>- <item>Asia/Kabul</item>- <item>Asia/Karachi</item>- <item>Asia/Oral</item>- <item>Asia/Yekaterinburg</item>- <item>Asia/Kolkata</item>- <item>Asia/Colombo</item>- <item>Asia/Kathmandu</item>- <item>Asia/Almaty</item>- <item>Asia/Yangon</item>- <item>Asia/Krasnoyarsk</item>- <item>Asia/Bangkok</item>- <item>Asia/Jakarta</item>- <item>Asia/Shanghai</item>- <item>Asia/Hong_Kong</item>- <item>Asia/Irkutsk</item>- <item>Asia/Kuala_Lumpur</item>- <item>Australia/Perth</item>- <item>Asia/Taipei</item>- <item>Asia/Seoul</item>- <item>Asia/Tokyo</item>- <item>Asia/Yakutsk</item>- <item>Australia/Adelaide</item>- <item>Australia/Darwin</item>- <item>Australia/Brisbane</item>- <item>Australia/Hobart</item>- <item>Australia/Sydney</item>- <item>Asia/Vladivostok</item>- <item>Pacific/Guam</item>- <item>Asia/Magadan</item>- <item>Pacific/Noumea</item>- <item>Pacific/Majuro</item>- <item>Pacific/Auckland</item>- <item>Pacific/Fiji</item>- <item>Pacific/Tongatapu</item>- </array>-</resources>
setupwizard/src/main/res/values/strings.xml
diff --git a/setupwizard/src/main/res/values/strings.xml b/setupwizard/src/main/res/values/strings.xmlindex a34615c09a..63e83dc5c6 100644--- a/setupwizard/src/main/res/values/strings.xml+++ b/setupwizard/src/main/res/values/strings.xml@@ -35,17 +35,11 @@ <string name="set_up_without_wi_fi">Set up without Wi-Fi</string> <!-- Date and time step: heading. -->- <string name="date_and_time">Date and time</string> <!-- Date and time step: subtitle under the heading. -->- <string name="date_and_time_desc">Set your time zone and adjust current date and time if needed</string> <!-- Date and time step: label of the row showing the current date, above the date itself. -->- <string name="date">Date</string> <!-- Date and time step: label of the row showing the current time, above the time itself. -->- <string name="time">Time</string> <!-- Date and time step: label of the row showing the current time zone, above the zone name. -->- <string name="time_zone">Time zone</string> <!-- Title of the time zone picker dialog opened from the date and time step. -->- <string name="select_time_zone">Select time zone</string> <!-- Location step: heading. --> <string name="location_services">Location services</string>