[myTouch 3G, Magic Android Development] elegos:
Camera crashes, YouTube works HD :)

EDIT:

I think this is the source of the problems with OpenGL-ES (logcat during startup):

adb logcat | grep EGL
- waiting for device -
D/libEGL ( 2682): loaded /system/lib/egl/libGLES_android.so
D/libEGL ( 2682): loaded /system/lib/egl/libGLES_qcom.so
D/EGL.oem ( 2682): system process, deny GL context
E/libEGL ( 2682): No EGLDisplay for hardware EGL!
I/SurfaceFlinger( 2682): EGL informations:
I/SurfaceFlinger( 2682): version : 1.4 Android META-EGL
I/SurfaceFlinger( 2682): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_ANDROID_image_native_buffer EGL_ANDROID_swap_rectangle EGL_ANDROID_get_render_buffer
I/SurfaceFlinger( 2682): EGLSurface: 5-6-5-0, config=0x1000000
I/SurfaceFlinger( 2682): extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_OES_EGL_image GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
D/libEGL ( 2691): loaded /system/lib/egl/libGLES_android.so
D/libEGL ( 2691): loaded /system/lib/egl/libGLES_qcom.so
E/EGL.oem ( 2691): could not open hw3dc (Permission denied)
E/libEGL ( 2691): No EGLDisplay for hardware EGL!
V/RenderScript( 2732): initEGL start
D/libEGL ( 2732): loaded /system/lib/egl/libGLES_android.so
D/libEGL ( 2732): loaded /system/lib/egl/libGLES_qcom.so
E/EGL.oem ( 2732): could not open hw3dc (Permission denied)
E/libEGL ( 2732): No EGLDisplay for hardware EGL!

EDIT2:

Found!

Credits go to Case_ of this forum (found the answer in the G1 subforums)

Add this in the end of /init.rc:

# fix OpenGL-ES permissions
chmod 666 /dev/msm_hw3dc
chmod 660 /dev/msm_hw3dm

Now: how can I push the modified file in /? It's read-only and I can't find any way to flash it in xD

Note: this version of OpenGL-ES seems to be outdated (call to unsupported OpenGL-ES APIs, for example trying to see the galaxy live wallpaper)

As of the camera:

I/ActivityManager( 2681): Start proc com.android.camera for activity com.android.camera/.Camera: pid=3216 uid=10023 gids={1015, 1006, 2001, 3003}
I/WindowManager( 2681): Setting rotation to 1, animFlags=0
W/SurfaceFlinger( 2681): timeout expired mFreezeDisplay=1, mFreezeCount=0
I/ActivityManager( 2681): Config changed: { scale=1.0 imsi=222/88 loc=it_IT touch=3 keys=1/1/2 nav=3/1 orien=2 layout=18}
V/RenderScript_jni( 3200): surfaceChanged
V/RenderScript( 3200): setSurface 480 320 0x25ede8
E/Surface ( 3200): surface (id=1, identity=29) is invalid, err=-19 (No such device)
E/copybit ( 3200): Error opening frame buffer errno=13 (Permission denied)
E/Surface ( 3200): invalid token (-1, identity=0) or client (0x0)
E/RenderScript( 3200): EGL/Surface mismatch EGL (0 x 0) SF (480 x 320)
E/libEGL ( 3200): call to OpenGL ES API with no current context (logged once per thread)
E/RenderScript( 3200): Pending GL Error, 0x25e280
E/RenderScript( 3200): Pending GL Error, 0x25e280
E/RenderScript( 3200): Pending GL Error, 0x25e280
V/RenderScript_jni( 3200): surfaceDestroyed
V/RenderScript( 3200): setSurface 0 0 0x0
D/dalvikvm( 3216): GC freed 880 objects / 69800 bytes in 104ms
D/CameraService( 2666): CameraService::connect E (pid 3216, client 0x1ced8)
D/CameraService( 2666): CameraService::connect X (pid 3216, new client 0x1ced8) rejected. (old pid 3138, old client 0x1d188)
D/CameraService( 2666): The old client is dead!
E/CameraHolder( 3216): fail to connect Camera
E/CameraHolder( 3216): java.lang.RuntimeException: Fail to connect to camera service
E/CameraHolder( 3216):	at android.hardware.Camera.native_setup(Native Method)
E/CameraHolder( 3216):	at android.hardware.Camera.<init>(Camera.java:110)
E/CameraHolder( 3216):	at android.hardware.Camera.open(Camera.java:90)
E/CameraHolder( 3216):	at com.android.camera.CameraHolder.open(CameraHolder.java:91)
E/CameraHolder( 3216):	at com.android.camera.Camera.ensureCameraDevice(Camera.java:1516)
E/CameraHolder( 3216):	at com.android.camera.Camera.startPreview(Camera.java:1568)
E/CameraHolder( 3216):	at com.android.camera.Camera.access$5300(Camera.java:86)
E/CameraHolder( 3216):	at com.android.camera.Camera$4.run(Camera.java:888)
E/CameraHolder( 3216):	at java.lang.Thread.run(Thread.java:1096)
W/dalvikvm( 3216): threadid=15: thread exiting with uncaught exception (group=0x4001e170)
E/AndroidRuntime( 3216): Uncaught handler: thread Thread-8 exiting due to uncaught exception
E/AndroidRuntime( 3216): java.lang.RuntimeException: com.android.camera.CameraHardwareException: java.lang.RuntimeException: Fail to connect to camera service
E/AndroidRuntime( 3216):	at com.android.camera.Camera$4.run(Camera.java:893)
E/AndroidRuntime( 3216):	at java.lang.Thread.run(Thread.java:1096)
E/AndroidRuntime( 3216): Caused by: com.android.camera.CameraHardwareException: java.lang.RuntimeException: Fail to connect to camera service
E/AndroidRuntime( 3216):	at com.android.camera.CameraHolder.open(CameraHolder.java:94)
E/AndroidRuntime( 3216):	at com.android.camera.Camera.ensureCameraDevice(Camera.java:1516)
E/AndroidRuntime( 3216):	at com.android.camera.Camera.startPreview(Camera.java:1568)
E/AndroidRuntime( 3216):	at com.android.camera.Camera.access$5300(Camera.java:86)
E/AndroidRuntime( 3216):	at com.android.camera.Camera$4.run(Camera.java:888)
E/AndroidRuntime( 3216):	... 1 more
E/AndroidRuntime( 3216): Caused by: java.lang.RuntimeException: Fail to connect to camera service
E/AndroidRuntime( 3216):	at android.hardware.Camera.native_setup(Native Method)
E/AndroidRuntime( 3216):	at android.hardware.Camera.<init>(Camera.java:110)
E/AndroidRuntime( 3216):	at android.hardware.Camera.open(Camera.java:90)
E/AndroidRuntime( 3216):	at com.android.camera.CameraHolder.open(CameraHolder.java:91)
E/AndroidRuntime( 3216):	... 5 more
I/Process ( 2681): Sending signal. PID: 3216 SIG: 3
I/dalvikvm( 3216): threadid=7: reacting to signal 3
E/dalvikvm( 3216): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
I/DumpStateReceiver( 2681): Added state dump to 2 crashes
I/Process ( 3216): Sending signal. PID: 3216 SIG: 9
I/ActivityManager( 2681): Process com.android.camera (pid 3216) has died.