diff options
author | Mathias Agopian <mathias@google.com> | 2011-02-15 17:54:56 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-02-15 19:27:47 -0800 |
commit | 492277d2e2417ec93c2c92dd3b484344021631df (patch) | |
tree | 77b720ee74c6fe7c1a3b69ec343b33678570300c /libs/surfaceflinger_client | |
parent | f27ebdeb39affdc3ce0a1eb4d2bf1db2583ce834 (diff) | |
download | frameworks_base-492277d2e2417ec93c2c92dd3b484344021631df.zip frameworks_base-492277d2e2417ec93c2c92dd3b484344021631df.tar.gz frameworks_base-492277d2e2417ec93c2c92dd3b484344021631df.tar.bz2 |
allow root to call into surfaceflinger
this is useful for running standalone tests
with standalone SurfaceFlinger.
Change-Id: I08d054f6214affa3a777a82765f4e0bd256ba26d
Diffstat (limited to 'libs/surfaceflinger_client')
-rw-r--r-- | libs/surfaceflinger_client/ISurfaceComposerClient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/surfaceflinger_client/ISurfaceComposerClient.cpp b/libs/surfaceflinger_client/ISurfaceComposerClient.cpp index 2cc1f8e..7730eb1 100644 --- a/libs/surfaceflinger_client/ISurfaceComposerClient.cpp +++ b/libs/surfaceflinger_client/ISurfaceComposerClient.cpp @@ -157,7 +157,7 @@ status_t BnSurfaceComposerClient::onTransact( const int pid = ipc->getCallingPid(); const int uid = ipc->getCallingUid(); const int self_pid = getpid(); - if (UNLIKELY(pid != self_pid && uid != AID_GRAPHICS)) { + if (UNLIKELY(pid != self_pid && uid != AID_GRAPHICS && uid != 0)) { // we're called from a different process, do the real check if (!checkCallingPermission( String16("android.permission.ACCESS_SURFACE_FLINGER"))) |