0

I want to develop a native android application which uses the SurfaceFlinger library from the Android-4.0.4 I want to learn about how the SurfaceFlinger library works in android, it's flow and also to build and run/debug it using the test data. I want to understand the flow of SurfaceFlinger so that i can call the correct methods from my app.(cpp files). I know that SurfaceFlinger API is not stable in android so i am specifically targeting my app to devices running on Android 4.0.4.

I also want to know which tools to be used to build and debug the shared library and procedure to carry it out.

Abilash
  • 104
  • 1
  • 10
  • so what is your question? – Jiang YD Apr 28 '14 at 11:18
  • @JiangYD i want to write a native application that invokes the methods from SurfaceFlinger code. So i want to learn about the flow of the SurfaceFlinger code and tools used to debug the code. – Abilash Apr 29 '14 at 04:09
  • [link](http://zhan.renren.com/tag?value=surfaceflinger) [link](http://yangyou230.iteye.com/blog/1315347) – Jiang YD Apr 29 '14 at 08:58
  • Thanks @JiangYD, can you please also tell me how can i compile and run and test the SurfaceFlinger code, and set up a debugger for it. – Abilash Apr 30 '14 at 03:32

1 Answers1

0

Surface Flinger is an internal component on Android and is not designed to be programmable (hence the unstable API).

You best bet is to use OpenGL ES with an EGL windowed context. There in a nice example in the documentation of the Native Activity.

doron
  • 27,972
  • 12
  • 65
  • 103
  • i specifically want to work on SurfaceFlinger and not any other component, so any any help would be great. – Abilash Apr 29 '14 at 04:15
  • In that case, download the Android source and read the code. It is the only resource you are going to find. – doron Apr 29 '14 at 10:16
  • i have the downloaded code(not whole AOSP) with me but i cannot understand from where to start. I don't know how will i understand the flow of the code, please suggest any tools or specific procedure. Or how do i use the debugger for that purpose? and how do i test it's working? – Abilash Apr 29 '14 at 11:17