OSDN Git Service

allow "system" screenshots even when the secure flag is set
authorMathias Agopian <mathias@google.com>
Tue, 13 Aug 2013 22:55:43 +0000 (15:55 -0700)
committerMathias Agopian <mathias@google.com>
Tue, 13 Aug 2013 22:58:38 +0000 (15:58 -0700)
commit5ff5a84e4829bad9eb44cc9a32d8579ca089051b
tree5064e430ccee3c0c7978abcc20590e5ab029d01b
parent6f23562e0c112bc5c6159c745d8af755cc530d77
allow "system" screenshots even when the secure flag is set

we need too allow this case so that things like the rotation
animation can work.
with this change we only permit these screenshot if the
destination is SurfaceFlinger itself.

Bug: 10235036
Change-Id: I66fea5391e52b0d7f17f25827572b236f2d9eb71
services/surfaceflinger/SurfaceFlinger.cpp