Fails to access SurfaceFlinger even when specify ACCESS_SURFACE_FLINGER in Manifest.xml

341 views
Skip to first unread message

e13...@gmail.com

unread,
May 5, 2009, 12:49:25 AM5/5/09
to android-porting
I want to call Surface.openTransaction(); in camera.java,so I added
user permission ACCESS_SURFACE_FLINGER in Manifest.xml,but the log
will fail in below info:

W/ServiceManager( 176): Permission failure:
android.permission.ACCESS_SURFACE_FLINGER from uid=10046 pid=554

E/SurfaceFlinger( 176): Permission Denial: can't
openGlobalTransaction pid=554, uid=10046


But refers the info in SK at http://developer.android.com/reference/android/Manifest.permission.html:
String ACCESS_SURFACE_FLINGER Allows an application to use
SurfaceFlinger's low level features


Who knows why?

Dave Sparks

unread,
May 5, 2009, 4:50:26 PM5/5/09
to android-porting
This is a system permission - you cannot access it from an application
unless it is signed with the system keys. It's a bad idea to be
messing around with SurfaceFlinger low-levels from an application.

On May 4, 9:49 pm, "e13...@gmail.com" <e13...@gmail.com> wrote:
> I want to call Surface.openTransaction(); in camera.java,so I added
> user permission ACCESS_SURFACE_FLINGER in Manifest.xml,but the log
> will fail in below info:
>
> W/ServiceManager(  176): Permission failure:
> android.permission.ACCESS_SURFACE_FLINGER from uid=10046 pid=554
>
> E/SurfaceFlinger(  176): Permission Denial: can't
> openGlobalTransaction pid=554, uid=10046
>
> But refers the info in SK athttp://developer.android.com/reference/android/Manifest.permission.html:
Reply all
Reply to author
Forward
0 new messages