From 3cb83e0eb5db07ce4c3feba9a19b8f9f674d357a Mon Sep 17 00:00:00 2001 From: Brandon Maxwell Date: Fri, 4 Mar 2016 17:33:59 -0800 Subject: Fixing missed call notifications for FBE + Our new components for creating missed call notifications are not marked as encryption aware so Telecom was always creating the missed call notification. + This CL marks the appropriate components as encryption aware so Telecom can check to see if we support putting up the notification. + Updated logic so missed call notifications only have 'callback' and 'message' actions when not locked. + Misc FBE cleanup + Since the call log is not available when on the File based encryption lock screen, dismissed notifications will not attempt to mark the calls as read; attempting do so causes exceptions. + Updated AOSP Dialer to ensure that we don't store data in device encrypted storage by default. This storage location is always available, regardless of whether we're in the FBE locked state or not. None of our preferences/databases need to be available in this state, so this change causes the Dialer to store data in credential encrypted storage by default. This storage location is only available when the device is unlocked. + Updated AOSP Dialer so it doesn't use device encrypted storage by default. This is because we currently don't want any of the preferences/databases stored by the Dialer to be available when FBE locked. + Updated AOSP Dialer so specific components must mark themselves as encryption aware, rather than having everything aware because the application is marked as such. Bug: 27455726 Change-Id: Ib5d28267116ec007bf9beb57862796235460ddf5 --- AndroidManifest.xml | 18 +++++----- .../android/dialer/calllog/MissedCallNotifier.java | 38 ++++++++++++---------- 2 files changed, 31 insertions(+), 25 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 06f579515..50cd24a5d 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -68,8 +68,7 @@ android:supportsRtl="true" android:backupAgent='com.android.dialer.DialerBackupAgent' android:usesCleartextTraffic="false" - android:forceDeviceEncrypted="true" - android:encryptionAware="true"> + android:forceDeviceEncrypted="false"> @@ -85,6 +84,7 @@ android:icon="@mipmap/ic_launcher_phone" android:windowSoftInputMode="stateAlwaysHidden|adjustNothing" android:resizeableActivity="true" + android:encryptionAware="true" > @@ -280,10 +280,12 @@ - + @@ -317,11 +319,6 @@ android:resizeableActivity="true"> - - - @@ -333,6 +330,11 @@ + + +