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.