commit | de619fa28e85b224933b4ceaccf5f4a30138badc | [log] [tgz] |
---|---|---|
author | Garfield Tan <xutan@google.com> | Fri Oct 02 17:13:53 2020 -0700 |
committer | Garfield Tan <xutan@google.com> | Thu Oct 08 12:23:51 2020 -0700 |
tree | f2684b647cc567153615cc8af3ae56c0ed2efa6d | |
parent | 693291a8dc22931e0c3432a04f0ab968630163cb [diff] |
Make a layer secure if its parent is secure. Dialogs and context menus can be captured in screenshots even if their parent layer/window is marked secure. Therefore we should let the secure flag be inherited from their parents as well. Bug: 169851503 Test: Screen capture can't capture dialogs in a window marked secure. Test: atest libsurfaceflinger_unittest Test: atest SurfaceFlinger_test:ScreenCaptureTest Change-Id: I0f32a03aeb733682df787105b051c691d1da7bc6