From ff4a5f3912bcd815205f7a176b2c9815b1c24679 Mon Sep 17 00:00:00 2001 From: Kevin Chyn Date: Wed, 30 Aug 2017 19:02:43 -0700 Subject: Update UnlockMethodCache when screen turns off Fixes: 65212307 Test: 1) add a temporary log in update() 2) turn off screen, make sure update() is called, and canSkipBouncer value is updated and correct Change-Id: I576d2375d38e83f286ad1fc6aa25944326c3ef8f (cherry picked from commit 08ae664365748b2e78caf62ef063aa656aa90e96) --- .../src/com/android/systemui/statusbar/phone/UnlockMethodCache.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockMethodCache.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockMethodCache.java index 7e92edf76b74..1411a544c346 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockMethodCache.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockMethodCache.java @@ -154,6 +154,11 @@ public class UnlockMethodCache { public void onStrongAuthStateChanged(int userId) { update(false /* updateAlways */); } + + @Override + public void onScreenTurnedOff() { + update(false /* updateAlways */); + } }; public boolean isTrustManaged() { -- cgit v1.2.3 From e53eec9e4cb9c8fce272d922cb864af1b7d5dd7b Mon Sep 17 00:00:00 2001 From: Amit Mahajan Date: Thu, 31 Aug 2017 13:49:28 -0700 Subject: Remove config_tether_apndata for Telstra. Test: manual Bug: 63564491 Change-Id: Iaca29bfd474b7df6489b1daeaeea182ebf8d81ae (cherry picked from commit 20cad6f5b6a0b84bc8f8666826633c8a3d964e75) --- core/res/res/values-mcc505-mnc01/config.xml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/core/res/res/values-mcc505-mnc01/config.xml b/core/res/res/values-mcc505-mnc01/config.xml index ff065856a643..5a5b8f78478e 100644 --- a/core/res/res/values-mcc505-mnc01/config.xml +++ b/core/res/res/values-mcc505-mnc01/config.xml @@ -31,15 +31,6 @@ 9 - - - Telstra Tethering,telstra.internet,,,,,,,,,505,01,,DUN - - -140 -- cgit v1.2.3 From ea6b41fe0d3cbed59536b4db759e06775f223348 Mon Sep 17 00:00:00 2001 From: Phil Weaver Date: Fri, 18 Aug 2017 18:01:46 -0700 Subject: Merge "Backport overlay security fix" into oc-dr1-release Replacing app opps fix with the flag that is used elsewhere. Bug: 37442941 Test: Verified that toast and system overlay still goes away on permission and a11y service capability screens. Merged-In: I1a3e3c5b1696a5f5b95eac187acb5a03863b4a0b Change-Id: If9bec515105369055415d54c7fcad7a65431f8e7 (cherry picked from commit 324c83540e0f55e1ba042de849733f531a84a340) --- api/system-current.txt | 1 + core/java/android/view/WindowManager.java | 12 +++--- core/res/AndroidManifest.xml | 9 ++++ .../core/java/com/android/server/wm/Session.java | 4 ++ .../com/android/server/wm/TaskSnapshotSurface.java | 4 +- .../android/server/wm/WindowManagerService.java | 48 +++++++++++++++++++++- .../java/com/android/server/wm/WindowState.java | 42 +++++++++++++++++-- .../android/server/wm/WindowSurfaceController.java | 4 +- 8 files changed, 108 insertions(+), 16 deletions(-) diff --git a/api/system-current.txt b/api/system-current.txt index 00b97a70d2fe..35d392d711d2 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -120,6 +120,7 @@ package android { field public static final java.lang.String GRANT_RUNTIME_PERMISSIONS = "android.permission.GRANT_RUNTIME_PERMISSIONS"; field public static final java.lang.String HARDWARE_TEST = "android.permission.HARDWARE_TEST"; field public static final java.lang.String HDMI_CEC = "android.permission.HDMI_CEC"; + field public static final java.lang.String HIDE_NON_SYSTEM_OVERLAY_WINDOWS = "android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS"; field public static final java.lang.String INJECT_EVENTS = "android.permission.INJECT_EVENTS"; field public static final java.lang.String INSTALL_GRANT_RUNTIME_PERMISSIONS = "android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS"; field public static final java.lang.String INSTALL_LOCATION_PROVIDER = "android.permission.INSTALL_LOCATION_PROVIDER"; diff --git a/core/java/android/view/WindowManager.java b/core/java/android/view/WindowManager.java index d60ba16dbad6..c7f24bb0e0f1 100644 --- a/core/java/android/view/WindowManager.java +++ b/core/java/android/view/WindowManager.java @@ -1394,15 +1394,13 @@ public interface WindowManager extends ViewManager { public static final int PRIVATE_FLAG_SUSTAINED_PERFORMANCE_MODE = 0x00040000; /** - * Flag to indicate that this window is used as a task snapshot window. A task snapshot - * window is a starting window that gets shown with a screenshot from the previous state - * that is active until the app has drawn its first frame. - * - *

If this flag is set, SystemUI flags are ignored such that the real window behind can - * set the SystemUI flags. + * Flag to indicate that any window added by an application process that is of type + * {@link #TYPE_TOAST} or that requires + * {@link android.app.AppOpsManager#OP_SYSTEM_ALERT_WINDOW} permission should be hidden when + * this window is visible. * @hide */ - public static final int PRIVATE_FLAG_TASK_SNAPSHOT = 0x00080000; + public static final int PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS = 0x00080000; /** * Indicates that this window is the rounded corners overlay present on some diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 7c2f233a3e45..feb5c8106609 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -2352,6 +2352,15 @@ + + +