From 7db814243514188ee8f62dd0dfa6dd8ff7f46b5e Mon Sep 17 00:00:00 2001 From: Alex Johnston Date: Thu, 3 Jun 2021 15:20:38 +0100 Subject: [PATCH] Credential management app UI tweaks Credential management app Settings screen * Add uninstall certificates button * Reformat summary * Remove dividing lines Request manage credentials screen * Make requesting app name bold Manual testing * Install TestDPC and select 'Request to manage credentials' * Verify app name is bold and select allow * Install a certificate as the cred mng app via TestDPC * Go to Setting > Security > Encryption & Credentials > Credential Management App * Verify screen looks like mocks * Select 'Remove certificates' and verify all certificates installed by the cred mng app are removed Settings screen: https://screenshot.googleplex.com/C6n9bnwkw843jgf Request screen: https://screenshot.googleplex.com/5qH44NXKKGRsdHs Bug: 189416800 Test: manual testing CredentialManagementAppControllerTest CredentialManagementAppFragmentTest CredentialManagementAppButtonsControllerTest CredentialManagementAppHeaderControllerTest RequestManageCredentialsTest Change-Id: I71334b231ae7cefbc055e2575eda5418da2548b4 --- res/drawable/ic_upload.xml | 25 +++++++++++++++++++ res/values/strings.xml | 8 +++--- res/values/styles.xml | 1 + .../credential_management_app_fragment.xml | 9 ------- .../CredentialManagementAppAdapter.java | 7 ++++-- ...dentialManagementAppButtonsController.java | 23 ++++++++++++++--- ...edentialManagementAppHeaderController.java | 2 +- 7 files changed, 57 insertions(+), 18 deletions(-) create mode 100644 res/drawable/ic_upload.xml diff --git a/res/drawable/ic_upload.xml b/res/drawable/ic_upload.xml new file mode 100644 index 00000000000..f95ffd42dff --- /dev/null +++ b/res/drawable/ic_upload.xml @@ -0,0 +1,25 @@ + + + + diff --git a/res/values/strings.xml b/res/values/strings.xml index 424f7a20a9c..637e682630d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -6784,9 +6784,9 @@ Certificate not installed - Allow %s to install certificates on this device? + Allow ^1 to install certificates on this device? - These certificates will identify you to the apps and URLs below + These certificates will verify you by sharing your device\u2019s unique ID with the apps and URLs below Don\u2019t allow @@ -6798,7 +6798,9 @@ None - Certificates installed by this app identify you to the apps and URLs below + Certificates will verify you when you use the apps and URLs below + + Uninstall certificates Remove diff --git a/res/values/styles.xml b/res/values/styles.xml index a5b187bf94e..01b2bc8bfbd 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -835,6 +835,7 @@ 24dp 18sp ?android:attr/textColorPrimary + 0.7