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. Added the choice between passphrase protection and the Android screenlock. Added more conversation colors and a theme. Added a choice for the backup location.
- Loading branch information
Showing
88 changed files
with
2,687 additions
and
68 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,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
|
||
<stroke | ||
android:width="1dp" | ||
android:color="@color/core_grey_75" /> | ||
|
||
<solid | ||
android:color="@color/black" /> | ||
|
||
<corners | ||
android:radius="20dp" /> | ||
|
||
</shape> |
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
Oops, something went wrong.