From 492277d2e2417ec93c2c92dd3b484344021631df Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 15 Feb 2011 17:54:56 -0800 Subject: allow root to call into surfaceflinger this is useful for running standalone tests with standalone SurfaceFlinger. Change-Id: I08d054f6214affa3a777a82765f4e0bd256ba26d --- libs/surfaceflinger_client/ISurfaceComposerClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/surfaceflinger_client') 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"))) -- cgit v1.1