diff options
author | Curtis Belmonte <curtislb@google.com> | 2020-02-04 14:24:39 -0800 |
---|---|---|
committer | Curtis Belmonte <curtislb@google.com> | 2020-02-04 14:40:11 -0800 |
commit | 23b8d4979fe1b4d428d85a519d50c090c480bc03 (patch) | |
tree | 99675532a3cf57cc96c3a8acf4d4d94b6d8872f9 /libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp | |
parent | b91132c6fcead50147c3af10cb89245523c289d7 (diff) |
Set secure window flag for AuthContainerView
Marks the window in which AuthContainerView is shown as secure in order
to prevent it from being screenshotted. This matches the behavior of
ConfirmDeviceCredentialActivity in Settings.
Test: atest AuthContainerViewTest
Test: Manual:
1. Use TestDPC to set up work profile
2. Set a PIN for the work profile in Settings > Security
3. Lock and unlock the device with non-work PIN
4. Launch a work app to be prompted for the work PIN
5. Attempt to take a screenshot
Before: Able to take a screenshot of the credential activity
After: Not able to take a screenshot
Fixes: 148000618
Change-Id: Ib1ac94915d28d8d88ec6a81292b69db396c419f9
Diffstat (limited to 'libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp')
0 files changed, 0 insertions, 0 deletions