From bebe43468330f182ea35e01ace555ce8d0512aeb Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Tue, 24 Mar 2020 14:03:40 +0100 Subject: Add support for Oreo Autofill (#653) Adds support for the Autofill feature first available in Android Oreo. In compatible apps and browsers, login forms are automatically detected and the user is presented with options to fill or generate credentials. In most apps and certain browsers, the service will also offer to create new Password Store entries from credentials entered into login forms. Signed-off-by: Harsh Shandilya Co-authored-by: Harsh Shandilya --- .../main/res/drawable/ic_autofill_new_password.xml | 9 ++ app/src/main/res/drawable/ic_person_black_24dp.xml | 9 ++ app/src/main/res/drawable/ic_search_black_24dp.xml | 9 ++ app/src/main/res/drawable/ic_warning_red_24dp.xml | 9 ++ .../res/layout/activity_oreo_autofill_filter.xml | 90 +++++++++++ .../activity_oreo_autofill_publisher_changed.xml | 167 +++++++++++++++++++++ app/src/main/res/layout/encrypt_layout.xml | 13 ++ app/src/main/res/layout/oreo_autofill_dataset.xml | 45 ++++++ .../main/res/layout/oreo_autofill_filter_row.xml | 64 ++++++++ .../main/res/layout/oreo_autofill_instructions.xml | 43 ++++++ app/src/main/res/layout/password_row_layout.xml | 8 +- app/src/main/res/values/strings.xml | 29 +++- app/src/main/res/values/styles.xml | 8 + app/src/main/res/xml/oreo_autofill_service.xml | 14 ++ app/src/main/res/xml/preference.xml | 48 +++--- 15 files changed, 536 insertions(+), 29 deletions(-) create mode 100644 app/src/main/res/drawable/ic_autofill_new_password.xml create mode 100644 app/src/main/res/drawable/ic_person_black_24dp.xml create mode 100644 app/src/main/res/drawable/ic_search_black_24dp.xml create mode 100644 app/src/main/res/drawable/ic_warning_red_24dp.xml create mode 100644 app/src/main/res/layout/activity_oreo_autofill_filter.xml create mode 100644 app/src/main/res/layout/activity_oreo_autofill_publisher_changed.xml create mode 100644 app/src/main/res/layout/oreo_autofill_dataset.xml create mode 100644 app/src/main/res/layout/oreo_autofill_filter_row.xml create mode 100644 app/src/main/res/layout/oreo_autofill_instructions.xml create mode 100644 app/src/main/res/xml/oreo_autofill_service.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/drawable/ic_autofill_new_password.xml b/app/src/main/res/drawable/ic_autofill_new_password.xml new file mode 100644 index 00000000..958de190 --- /dev/null +++ b/app/src/main/res/drawable/ic_autofill_new_password.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_person_black_24dp.xml b/app/src/main/res/drawable/ic_person_black_24dp.xml new file mode 100644 index 00000000..b2cb337b --- /dev/null +++ b/app/src/main/res/drawable/ic_person_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_search_black_24dp.xml b/app/src/main/res/drawable/ic_search_black_24dp.xml new file mode 100644 index 00000000..affc7ba2 --- /dev/null +++ b/app/src/main/res/drawable/ic_search_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_warning_red_24dp.xml b/app/src/main/res/drawable/ic_warning_red_24dp.xml new file mode 100644 index 00000000..cea44306 --- /dev/null +++ b/app/src/main/res/drawable/ic_warning_red_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout/activity_oreo_autofill_filter.xml b/app/src/main/res/layout/activity_oreo_autofill_filter.xml new file mode 100644 index 00000000..17eb0e29 --- /dev/null +++ b/app/src/main/res/layout/activity_oreo_autofill_filter.xml @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_oreo_autofill_publisher_changed.xml b/app/src/main/res/layout/activity_oreo_autofill_publisher_changed.xml new file mode 100644 index 00000000..21184e84 --- /dev/null +++ b/app/src/main/res/layout/activity_oreo_autofill_publisher_changed.xml @@ -0,0 +1,167 @@ + + + + + + + + + + + + + + + +