forked from signalapp/Signal-Android
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added encrypted and plaintext backup / restore. Re-added import SMS d…
…atabase. Removed apk expire.
- Loading branch information
Showing
70 changed files
with
2,097 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,264 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_gravity="center_vertical" | ||
android:gravity="center_vertical"> | ||
|
||
<LinearLayout android:orientation="vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="48dp" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginStart="16dp" | ||
android:gravity="center_vertical" | ||
android:text="@string/ImportExportActivity_import" | ||
android:textSize="14sp" | ||
android:fontFamily="sans-serif-medium" | ||
android:textColor="@color/signal_primary_dark"/> | ||
|
||
<LinearLayout android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout android:id="@+id/import_sms" | ||
android:clickable="true" | ||
android:orientation="horizontal" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:paddingTop="12dp" | ||
android:paddingBottom="12dp" | ||
android:gravity="center_vertical" | ||
android:background="?selectableItemBackground"> | ||
|
||
<ImageView android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginStart="16dp" | ||
android:layout_marginRight="32dp" | ||
android:layout_marginEnd="32dp" | ||
android:src="@drawable/ic_message_white_24dp" | ||
android:tint="?attr/pref_icon_tint"/> | ||
|
||
<LinearLayout android:orientation="vertical" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginRight="16dp" | ||
android:layout_marginEnd="16dp"> | ||
|
||
<TextView android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="start" | ||
style="@style/Registration.Description" | ||
android:text="@string/import_fragment__import_system_sms_database"/> | ||
|
||
<TextView android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="start" | ||
android:textAppearance="?android:attr/textAppearanceSmall" | ||
android:text="@string/import_fragment__import_the_database_from_the_default_system"/> | ||
|
||
</LinearLayout> | ||
</LinearLayout> | ||
|
||
<View | ||
android:layout_width="match_parent" | ||
android:layout_height="1dp" | ||
android:background="?android:attr/listDivider"/> | ||
|
||
<LinearLayout android:id="@+id/import_plaintext_backup" | ||
android:clickable="true" | ||
android:orientation="horizontal" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:paddingTop="12dp" | ||
android:paddingBottom="12dp" | ||
android:gravity="center_vertical" | ||
android:background="?selectableItemBackground"> | ||
|
||
<ImageView android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginStart="16dp" | ||
android:layout_marginRight="32dip" | ||
android:layout_marginEnd="32dip" | ||
android:src="@drawable/ic_content_copy_white_24dp" | ||
android:tint="?attr/pref_icon_tint"/> | ||
|
||
<LinearLayout android:orientation="vertical" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginRight="16dp" | ||
android:layout_marginEnd="16dp"> | ||
|
||
<TextView android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="start" | ||
style="@style/Registration.Description" | ||
android:text="@string/import_fragment__import_plaintext_backup"/> | ||
|
||
<TextView android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="start" | ||
android:textAppearance="?android:attr/textAppearanceSmall" | ||
android:text="@string/import_fragment__import_a_plaintext_backup_file"/> | ||
</LinearLayout> | ||
</LinearLayout> | ||
|
||
<View | ||
android:layout_width="match_parent" | ||
android:layout_height="1dp" | ||
android:background="?android:attr/listDivider"/> | ||
|
||
<LinearLayout android:id="@+id/import_encrypted_backup" | ||
android:clickable="true" | ||
android:orientation="horizontal" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:paddingTop="12dp" | ||
android:paddingBottom="12dp" | ||
android:gravity="center_vertical" | ||
android:background="?selectableItemBackground"> | ||
|
||
<ImageView android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginStart="16dp" | ||
android:layout_marginRight="32dip" | ||
android:layout_marginEnd="32dip" | ||
android:src="@drawable/ic_lock_white_24dp" | ||
android:tint="?attr/pref_icon_tint"/> | ||
|
||
<LinearLayout android:orientation="vertical" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginRight="16dp" | ||
android:layout_marginEnd="16dp"> | ||
|
||
<TextView android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="start" | ||
style="@style/Registration.Description" | ||
android:text="@string/import_fragment__restore_encrypted_backup"/> | ||
|
||
<TextView android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="start" | ||
android:textAppearance="?android:attr/textAppearanceSmall" | ||
android:text="@string/import_fragment__restore_a_previously_exported_encrypted_signal_backup"/> | ||
</LinearLayout> | ||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
<include layout="@layout/preference_divider"/> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="48dp" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginStart="16dp" | ||
android:gravity="center_vertical" | ||
android:text="@string/ImportExportActivity_export" | ||
android:textSize="14sp" | ||
android:fontFamily="sans-serif-medium" | ||
android:textColor="@color/signal_primary_dark"/> | ||
|
||
<LinearLayout android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout android:id="@+id/export_plaintext_backup" | ||
android:clickable="true" | ||
android:orientation="horizontal" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:paddingTop="12dp" | ||
android:paddingBottom="12dp" | ||
android:gravity="center_vertical" | ||
android:background="?selectableItemBackground"> | ||
|
||
<ImageView android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginStart="16dp" | ||
android:layout_marginRight="32dp" | ||
android:layout_marginEnd="32dp" | ||
android:src="@drawable/ic_content_copy_white_24dp" | ||
android:tint="?attr/pref_icon_tint"/> | ||
|
||
<LinearLayout android:orientation="vertical" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginRight="16dp" | ||
android:layout_marginEnd="16dp"> | ||
|
||
<TextView android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="start" | ||
style="@style/Registration.Description" | ||
android:text="@string/export_fragment__export_plaintext_backup"/> | ||
|
||
<TextView android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="start" | ||
android:textAppearance="?android:attr/textAppearanceSmall" | ||
android:text="@string/export_fragment__export_a_plaintext_backup_compatible_with"/> | ||
</LinearLayout> | ||
</LinearLayout> | ||
|
||
<View | ||
android:layout_width="match_parent" | ||
android:layout_height="1dp" | ||
android:background="?android:attr/listDivider"/> | ||
|
||
<LinearLayout android:id="@+id/export_encrypted_backup" | ||
android:clickable="true" | ||
android:orientation="horizontal" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:paddingTop="12dp" | ||
android:paddingBottom="12dp" | ||
android:gravity="center_vertical" | ||
android:background="?selectableItemBackground"> | ||
|
||
<ImageView android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginStart="16dp" | ||
android:layout_marginRight="32dp" | ||
android:layout_marginEnd="32dp" | ||
android:src="@drawable/ic_lock_white_24dp" | ||
android:tint="?attr/pref_icon_tint"/> | ||
|
||
<LinearLayout android:orientation="vertical" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginRight="16dp" | ||
android:layout_marginEnd="16dp"> | ||
|
||
<TextView android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="start" | ||
style="@style/Registration.Description" | ||
android:text="@string/export_fragment__export_encrypted_backup"/> | ||
|
||
<TextView android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="start" | ||
android:textAppearance="?android:attr/textAppearanceSmall" | ||
android:text="@string/export_fragment__export_an_encrypted_backup_to_the_sd_card"/> | ||
</LinearLayout> | ||
</LinearLayout> | ||
|
||
<View | ||
android:layout_width="match_parent" | ||
android:layout_height="1dp" | ||
android:background="?android:attr/listDivider"/> | ||
|
||
</LinearLayout> | ||
</LinearLayout> | ||
</ScrollView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<resources> | ||
<!--arrays.xml--> | ||
<string name="arrays__import_export_orig">استيراد / تصدير</string> | ||
<!--ImportFragment--> | ||
<string name="ImportFragment_restore_encrypted_backup">استعادة نسخة احتياطية مشفرة؟</string> | ||
<string name="ImportFragment_restoring_an_encrypted_backup_will_completely_replace_your_existing_keys"> | ||
استرجاع نسخة احتياطية مشفرة يؤدي إلى استبدال المفاتيح حالية والإعدادات والرسائل. المعلومات الحالية في سيجنال والغير موجودة في النسخة الاحتياطية سوف تفقد.</string> | ||
<string name="ImportFragment_restore">استعادة</string> | ||
<string name="ImportFragment_restoring">الاستعادة جارٍ...</string> | ||
<string name="ImportFragment_restoring_encrypted_backup">استعادة النسخ الاحتياطية المشفرة جارٍ..</string> | ||
<string name="ImportFragment_no_encrypted_backup_found">لم يتم العثور على نسخة احتياطية مشفرة!</string> | ||
<string name="ImportFragment_restore_complete">تمت الاستعادة!</string> | ||
<!--ExportFragment--> | ||
<string name="ExportFragment_export_to_sd_card">تصديرإلى كرت الذاكرة؟</string> | ||
<string name="ExportFragment_this_will_export_your_encrypted_keys_settings_and_messages">هذه الخاصية تصدر مفاتيحك المشفرة و إعداداتك و رسائلك لكرت الذاكرة.</string> | ||
<string name="ExportFragment_exporting_keys_settings_and_messages">جاري تصدير مفاتيحك المشفرة و إعداداتك و رسائلك</string> | ||
<!--database_upgrade_activity--> | ||
<string name="export_fragment__export_encrypted_backup">استعادة النسخ الاحتياطية المشفرة</string> | ||
<string name="export_fragment__export_an_encrypted_backup_to_the_sd_card">تصدير نسخة احتياطية غير مشفرة لكرت الذاكرة...</string> | ||
<string name="import_fragment__restore_encrypted_backup">استعادة نسخة احتياطية مشفرة</string> | ||
<string name="import_fragment__restore_a_previously_exported_encrypted_signal_backup"> استعادة نسخة احتياطية مشفرة من سيجنال.</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<resources> | ||
<!--arrays.xml--> | ||
<string name="arrays__import_export_orig">Імпарт / экспарт</string> | ||
</resources> |
Oops, something went wrong.