ACCESS_SURFACE_FLINGER and READ_FRAME_BUFFER

3,459 views
Skip to first unread message

rukiman

unread,
Jun 30, 2009, 8:09:02 PM6/30/09
to android-platform
I noticed that these permissions exists in the AndroidManifest.xml
file.

READ_FRAME_BUFFER
ACCESS_SURFACE_FLINGER

are developers allowed to directly access the framebuffer and surface
flinger from within their apps?

What type of apps would do this and why?

Would I be right in saying at the moment ONLY the WindowManager uses
these features?

I also noticed the interfaces to these features is C++ code. So can I
safely assume that ONLY platform developers can make use of these
features and NOT application developers?

Can someone also briefly summarize what an app would/could do with
these features?


Christopher Tate

unread,
Jun 30, 2009, 8:14:12 PM6/30/09
to android-...@googlegroups.com
On Tue, Jun 30, 2009 at 5:09 PM, rukiman<ruks...@optushome.com.au> wrote:
>
> I noticed that these permissions exists in the AndroidManifest.xml
> file.
>
> READ_FRAME_BUFFER
> ACCESS_SURFACE_FLINGER
>
> are developers allowed to directly access the framebuffer and surface
> flinger from within their apps?

Look at frameworks/base/core/res/AndroidManifest.xml to see what
access rights apply to each of the system-defined permissions. In
this case, you'll see that both READ_FRAME_BUFFER and
ACCESS_SURFACE_FLINGER are marked as
android:protectionLevel="signature".

When a permission is signature-only, only code built directly into the
platform can use it. Third party applications cannot use these
permissions.

--
chris tate
android framework engineer

happydroid

unread,
Jul 31, 2009, 4:15:54 PM7/31/09
to android-platform
It would be really cool to allow third party apps to request those
permissions, along with the SDK APIs that would use them. It would
then be possible to develop remote control applications without native
development and without rooting the device !

Is something planned for the future releases ?

Adrian Taylor

unread,
Aug 1, 2009, 1:26:11 PM8/1/09
to android-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages