OSDN Git Service

Bypass surface flinger permission check for calls from system.
authorJeff Brown <jeffbrown@google.com>
Sat, 11 Apr 2015 03:20:13 +0000 (20:20 -0700)
committerJeff Brown <jeffbrown@google.com>
Sat, 11 Apr 2015 03:26:51 +0000 (20:26 -0700)
commit3bfe51d7901e99e7f122f76ed2708e2b67b71cf9
tree271a597d47d21da9128de8d8f40e637ec9e68734
parent1044367a73266c687dd3c7177c5e53e1ee60a438
Bypass surface flinger permission check for calls from system.

Early during the boot, before activity manager is ready to handle
permission checks, the system needs to be able to change the display
state.  Added a hardcoded exemption for AID_SYSTEM (which already
has permission to talk to surface flinger anyhow).

Bug: 19029490
Change-Id: I6222edcab8e394e5fb6adf7a982be446e4505a1e
services/surfaceflinger/Client.cpp
services/surfaceflinger/SurfaceFlinger.cpp