Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95ef17c3 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Add consent dialogs for required factory reset

parent b8c60335
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2026 e Foundation
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program.  If not, see <https://www.gnu.org/licenses/>.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="72dp"
    android:height="72dp"
    android:viewportWidth="72"
    android:viewportHeight="72">
    <path
        android:fillColor="#E53935"
        android:pathData="M36,6 L68,62 C69.1,63.9 67.7,66.3 65.5,66.3 L6.5,66.3 C4.3,66.3 2.9,63.9 4,62 Z" />
    <path
        android:fillColor="#FFFFFF"
        android:pathData="M33,24a3,3 0,1 1,6 0v18a3,3 0,1 1,-6 0z" />
    <path
        android:fillColor="#FFFFFF"
        android:pathData="M36,54m-4,0a4,4 0,1 1,8 0a4,4 0,1 1,-8 0" />
</vector>
+56 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2026 e Foundation
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program.  If not, see <https://www.gnu.org/licenses/>.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingStart="24dp"
    android:paddingTop="12dp"
    android:paddingEnd="24dp"
    android:paddingBottom="4dp">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/wipe_type_warning_message"
        android:textColor="#FFFF2A2A"
        android:textSize="16sp"
        android:textStyle="bold" />

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:text="@string/wipe_type_input_label"
        android:textColor="?android:attr/textColorSecondary"
        android:textSize="13sp" />

    <EditText
        android:id="@+id/wipe_confirmation_input"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:hint="@string/wipe_type_confirmation_value"
        android:importantForAutofill="no"
        android:inputType="textVisiblePassword"
        android:maxLines="1"
        android:singleLine="true"
        android:textColor="?android:attr/textColorPrimary"
        android:textColorHint="?android:attr/textColorHint"
        android:textCursorDrawable="@null" />
</LinearLayout>
+140 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2026 e Foundation
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program.  If not, see <https://www.gnu.org/licenses/>.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingStart="24dp"
    android:paddingTop="8dp"
    android:paddingEnd="24dp"
    android:paddingBottom="8dp">

    <ImageView
        android:layout_width="72dp"
        android:layout_height="72dp"
        android:layout_gravity="center_horizontal"
        android:contentDescription="@null"
        android:src="@drawable/ic_warning_danger" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        android:layout_marginTop="12dp"
        android:text="@string/wipe_type_dialog_title"
        android:textColor="?android:attr/textColorPrimary"
        android:textSize="24sp"
        android:textStyle="bold" />

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:text="@string/wipe_confirmation_dialog_message"
        android:textColor="?android:attr/textColorPrimary"
        android:textSize="15sp" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:orientation="horizontal">

        <TextView
            android:layout_width="24dp"
            android:layout_height="24dp"
            android:gravity="center"
            android:text="!"
            android:textColor="@android:color/white"
            android:textSize="14sp"
            android:textStyle="bold"
            android:background="@drawable/ic_warning_danger" />

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="12dp"
            android:layout_weight="1"
            android:orientation="vertical">

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/wipe_warning_item_one_title"
                android:textColor="?android:attr/textColorPrimary"
                android:textSize="16sp"
                android:textStyle="bold" />

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="2dp"
                android:text="@string/wipe_warning_item_one_message"
                android:textColor="?android:attr/textColorSecondary"
                android:textSize="14sp" />
        </LinearLayout>
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="16dp"
        android:orientation="horizontal">

        <TextView
            android:layout_width="24dp"
            android:layout_height="24dp"
            android:gravity="center"
            android:text="!"
            android:textColor="@android:color/white"
            android:textSize="14sp"
            android:textStyle="bold"
            android:background="@drawable/ic_warning_danger" />

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="12dp"
            android:layout_weight="1"
            android:orientation="vertical">

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/wipe_warning_item_two_title"
                android:textColor="?android:attr/textColorPrimary"
                android:textSize="16sp"
                android:textStyle="bold" />

            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="2dp"
                android:text="@string/wipe_warning_item_two_message"
                android:textColor="?android:attr/textColorSecondary"
                android:textSize="14sp" />
        </LinearLayout>
    </LinearLayout>

    <CheckBox
        android:id="@+id/checkbox"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="24dp"
        android:textColor="?android:attr/textColorPrimary" />
</LinearLayout>
+12 −0
Original line number Diff line number Diff line
@@ -52,4 +52,16 @@
\nWenn Sie <xliff:g id="ok">%2$s</xliff:g> antippen, wird das Gerät in den Wiederherstellungs-Modus neu starten, um die Aktualisierung zu installieren.</string>
    <string name="e_version_upgrade_dialog_title">Versionsaufstieg!</string>
    <string name="pref_all_updates">Alle verfügbaren Aktualisierungen anzeigen</string>
    <string name="wipe_confirmation_dialog_message">Aufgrund einer Änderung des Dateisystems ist ein Zurücksetzen auf Werkseinstellungen erforderlich, um das Upgrade für dieses Gerät fortzusetzen. Wenn Sie mit dem Upgrade fortfahren, werden alle Daten auf Ihrem Gerät gelöscht. Bitte stellen Sie sicher, dass Ihr Telefon und Ihre Daten gesichert sind.</string>
    <string name="wipe_confirmation_checkbox">Ich verstehe die obigen Warnungen und möchte fortfahren.</string>
    <string name="wipe_warning_item_one_title">Alle Gerätedaten werden gelöscht</string>
    <string name="wipe_warning_item_one_message">Apps, App-Daten, Konten, Fotos, Kontakte, Downloads und lokale Dateien im internen Speicher können dauerhaft entfernt werden.</string>
    <string name="wipe_warning_item_two_title">Die Wiederherstellung ist möglicherweise nicht umkehrbar</string>
    <string name="wipe_warning_item_two_message">Wenn etwas schiefgeht, müssen Sie das Gerät möglicherweise manuell wiederherstellen und Ihr eigenes Backup zurückspielen.</string>
    <string name="wipe_type_dialog_title">Warnung vor Datenverlust</string>
    <string name="wipe_type_warning_message">„Daten formatieren“ löscht alle Ihre Apps, Sicherungen, Bilder, Videos, Medien und Daten im internen Speicher.</string>
    <string name="wipe_type_dialog_message">Dies kann nicht rückgängig gemacht werden.\nGeben Sie ja ein, um fortzufahren. Drücken Sie Zurück, um abzubrechen.</string>
    <string name="wipe_type_confirmation_value">ja</string>
    <string name="wipe_type_input_label">Geben Sie ja zur Bestätigung ein</string>
    <string name="wipe_action_continue">Fortfahren</string>
</resources>
+12 −0
Original line number Diff line number Diff line
@@ -52,4 +52,16 @@
\nRecuerda: siempre es recomendable hacer una copia de seguridad de tus datos antes de actualizar.
\n
\nSi pulsas <xliff:g id="ok">%3$s</xliff:g>, el dispositivo se reiniciará en modo de recuperación para instalar la actualización.</string>
    <string name="wipe_confirmation_dialog_message">Debido a un cambio en el sistema de archivos, se requiere un restablecimiento de fábrica para continuar con la actualización de este dispositivo. Si continúas con la actualización, se borrarán todos los datos del dispositivo. Asegúrate de haber hecho una copia de seguridad del teléfono y de tus datos.</string>
    <string name="wipe_confirmation_checkbox">Entiendo las advertencias anteriores y quiero continuar.</string>
    <string name="wipe_warning_item_one_title">Se borrarán todos los datos del dispositivo</string>
    <string name="wipe_warning_item_one_message">Las aplicaciones, los datos de las aplicaciones, las cuentas, las fotos, los contactos, las descargas y los archivos locales del almacenamiento interno podrían eliminarse de forma permanente.</string>
    <string name="wipe_warning_item_two_title">La recuperación puede no ser reversible</string>
    <string name="wipe_warning_item_two_message">Si algo sale mal, puede que tengas que recuperar manualmente el dispositivo y restaurar tu propia copia de seguridad.</string>
    <string name="wipe_type_dialog_title">Advertencia de pérdida de datos</string>
    <string name="wipe_type_warning_message">Formatear datos borrará todas tus aplicaciones, copias de seguridad, imágenes, videos, contenido multimedia y datos del almacenamiento interno.</string>
    <string name="wipe_type_dialog_message">Esto no se puede deshacer.\nEscribe sí para continuar. Pulsa Atrás para cancelar.</string>
    <string name="wipe_type_confirmation_value"></string>
    <string name="wipe_type_input_label">Escribe sí para confirmar</string>
    <string name="wipe_action_continue">Continuar</string>
</resources>
Loading