jni: add a wait for window in egl for android, and use a live copy