Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement a way to start android's surfaceflinger on glibc based systems #49

Closed
wants to merge 7 commits into from

Conversation

krnlyng
Copy link
Contributor

@krnlyng krnlyng commented Jun 19, 2014

does not work properly yet, crashes somewhere during initialization, also i still need to figure out if it is possible to get it to render into an x11/wayland/? window, i think it should be possible by passing our window handle to the drivers eglInitialize/eglGetDisplay method call

i am merely creating a pull request for this so other people can see it and maybe help me out :)

if surfaceflinger is to be executed, gl and egl functions are
currently not hooked. this patch hooks gl and egl functions
from the android driver so's to our gl and egl libs.
gl and egl libs from bionic tls to pthread tls, because bionic tls
is broken for some reason. without this patch we get a segfault if
we execute functions from these libraries.
@kika123
Copy link

kika123 commented Jan 15, 2015

Does it really work?

@kika123
Copy link

kika123 commented Jan 15, 2015

(merge conflicts)

@krnlyng
Copy link
Contributor Author

krnlyng commented Jan 15, 2015

hi @kika123
it does not work unfortunately, it results in a black screen, and the x11 window integration is currently missing in the code, also to support android apps other parts of android which use libegl, libgles and so on have to be routed through a similar layer, i am not sure if this method will ever work as there are also some functions missing in the n9's driver blobs which are required for surfaceflinger

@kika123
Copy link

kika123 commented Jan 15, 2015

no problem, apkenv works with X11 ( github.com/mittorn/apkenv/tree/linux-x11)
And, I have Allwinner A20 hardware on linux-sunxi (running Cubian X)

@krnlyng
Copy link
Contributor Author

krnlyng commented Jan 15, 2015

@kika123 no i ment something different, surfaceflinger should render into an x11 window which is not implemented in the pr currently

@kika123
Copy link

kika123 commented Jan 15, 2015

what are the mods needed for that?

@krnlyng
Copy link
Contributor Author

krnlyng commented Jan 15, 2015

i have a quick and dirty patch for this: https://bpaste.net/show/a8679bd30dd8 but as i said it currently results in a black window

@kika123
Copy link

kika123 commented Jan 15, 2015

I think you should start an app after surfaceflinger and Android services

@krnlyng
Copy link
Contributor Author

krnlyng commented Jan 15, 2015

yes i have tried starting bootanimation but no luck yet

@kika123
Copy link

kika123 commented Jan 15, 2015

Did you try the classic linux-x11 branch?

@kika123
Copy link

kika123 commented Jan 15, 2015

Android on the Raspberry Pi is sort of impossible but I got X11-EGL working with the BCM driver(modified, but it is FOSS, had to add some EGL extensions)

@thp
Copy link
Owner

thp commented Mar 1, 2015

I guess we still keep this open for now? Would need a rebase, too.

@krnlyng
Copy link
Contributor Author

krnlyng commented Mar 1, 2015

i think we can close it, i don't think this is ever gonna be useful

@kika123
Copy link

kika123 commented Mar 1, 2015

[+1] it will never be useful.

@thp thp closed this Mar 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants