yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace S5830 Android Development] marcin1147:
Ask lagloose, I've only adapted his work to Gio.

You need camera.gio.so from my package: http://marcin.galaxyics.com/camera.zip,

Patched libcamera_client.so, find it in this thread, posted by me,

Patched libui.so and libbinder.so, ask lagloose,

and rest of libs from GB rom.
[Galaxy Ace S5830 Android Development] Wayland_ACE:
Uploaded lagloose's libui.so, libbinder.so

marcin's camera.gio.so to camera.cooper.so

libarccamera.so, libcamera.so, libcamera_client.so, libmmipl.so, libmmjpeg.so, liboemcamera.so, libs3cjpeg.so from GB, got:

I/Netd ( 1177): Netd 1.0 starting

loop
[Galaxy Ace S5830 Android Development] vo-1:
Wayland, its for you
[Galaxy Ace S5830 Android Development] marcin1147:
Replace libcamera_client.so with this one:

https://www.box.com/s/96218daedfe1d2488a5e
[Galaxy Ace S5830 Android Development] Wayland_ACE:
good, thanks
[Galaxy Ace S5830 Android Development] lagloose:
Ok, some more on preview and 'weird' pciture...

AFAIS (As Far As I Understand :-)) preview (and later picture) is created by jpeg librarie(s) which get picture data from camera and convert it in real time to jpeg. So my guess is that we have to replace and/or add some more libs.

marcin, did you just replace libs or did you compile complete new flashable zip ? If you compiled a complete new zip, it would be helpful if you create a zip from all files in /system/lib and upload it for us/me to check this out.

Ohh and BTW: You don't have to reboot your device every time you replace a lib. Just get pid of mediaserver (state: 'ps mediaserver' in adb shell) and kill this process. The mediaserver restarts and if it's ok, you should be good to go. If something's wrong you will see repeating messages of restart audio_flinger.

In that case just 'adb push' back original lib of this you've replace and mediaserver should start again...
[Galaxy Ace S5830 Android Development] marcin1147:
I've adb-pushed all the libs.
[Galaxy Ace S5830 Android Development] Wayland_ACE:
It seems, what SIGFPE is caused by this lines:

P.S Listing of native_set_parms:

I think it's a good way to play with GB sources to fix libcamera.so
[Galaxy Ace S5830 Android Development] marcin1147:
Maybe DEFAULT_PICTURE_WIDTH or HEIGHT is over int range?
[Galaxy Ace S5830 Android Development] Wayland_ACE:
Trying to research more

---------- Post added at 02:33 PM ---------- Previous post was at 02:28 PM ----------

#define DEFAULT_PICTURE_WIDTH 640

#define DEFAULT_PICTURE_HEIGHT 480
[Galaxy Ace S5830 Android Development] side_effect:
might be of some use

https://www.codeaurora.org/git/proj...en/libcamera2/QualcommCameraHardware.cpp#L507
[Galaxy Ace S5830 Android Development] lagloose:
Hmmm, at the moment i'm a little bit stuck and don't know what to do/try next...

IMO we have 2 main positions to fix.

V/QualcommCameraHardware( 3346): openCamera : X

V/QualcommCameraHardware( 3346): startCamera picture_sizes 0xa7758430 PICTURE_SIZE_COUNT 7

V/QualcommCameraHardware( 3346): startCamera preview_sizes 0xa7758468 previewSizeCount 5

V/QualcommCameraHardware( 3346): startCamera X

I/QualcommCameraHardware( 3346): initDefaultParameters E

F/libc ( 3346): Fatal signal 8 (SIGFPE) at 0x00000d12 (code=0)

D/OpenGLRenderer( 966): Flushing caches (mode 0)

D/memalloc( 966): /dev/pmem: Unmapping buffer base:0x4a790000 size:5447680 offset:4833280

D/memalloc( 966): /dev/pmem: Unmapping buffer base:0x4b294000 size:6062080 offset:5447680

D/memalloc( 966): /dev/pmem: Unmapping buffer base:0x4b85c000 size:6676480 offset:6062080

D/memalloc( 321): /dev/pmem: Freeing buffer base:0x4a6e4000 size:614400 offset:4833280 fd:287

at start of (Stock) camera

and

I/AudioHardware( 3346): set device to SND_DEVICE_SPEAKER device_id=0

I/AudioHardware( 3346): disabling post proc features with mask 0x0000

E/mm-camera( 3346): camera_issue_command: get_picture error (Connection timed out): length 36, status 52812

E/QualcommCameraHardware( 3346): native_start_ops: type 5 error Connection timed out

E/QualcommCameraHardware( 3346): getPicture: CAMERA_OPS_GET_PICTURE ioctl failed!

E/QualcommCameraHardware( 3346): get picture failed, giving jpeg callback with NULL data

I/CameraHAL( 3346): wrap_data_callback+++: type 256 user 0x13a98

I/CameraHAL( 3346): wrap_data_callback: CAMERA_MSG_COMPRESSED_IMAGE

after shooting a picture.

Am i right that this has to be fixed in the HAL we have ?
[Galaxy Ace S5830 Android Development] Wayland_ACE:
Marcin, we are still need debug kernel :)
[Galaxy Ace S5830 Android Development] marcin1147:
Maybe in HAL, maybe in any of all ICS libs ;)

Anyone know how to debug android with GDB? Maybe it'll help.

About debug kernels, kernel sources on Github are up-to-date and MSM-CAMERA-DEBUG-enabled. Maybe someone can compile it for cooper? (./make_cooper) I did it but i don't have device to test it ;)

zImages and kernels on: http://marcin.galaxyics.com/nightly/

But cooper.img is propably corrupted, don't know why
[Galaxy Ace S5830 Android Development] Wayland_ACE:
From other forums:

---------- Post added at 03:03 PM ---------- Previous post was at 03:02 PM ----------

I had built, but cant run too
[Galaxy Ace S5830 Android Development] marcin1147:
Strange, on Gio works good.

About overlay stub, maybe we should change "return 0;" in getWidth() to "return 480;" and "return 0;" in getHeight() to "return 320;"?
[Galaxy Ace S5830 Android Development] lagloose:
You can do a 'dmesg' which gives some more information on what's going on in the system, but i guess that you've already done this...
[Galaxy Ace S5830 Android Development] marcin1147:
@up - Without Ace i can't do dmesg ;D
[Galaxy Ace S5830 Android Development] Wayland_ACE:
Thinking the same

---------- Post added at 03:34 PM ---------- Previous post was at 03:30 PM ----------

Probably this values are not filled and it causes devision by zero and SIGFPE
[Galaxy Ace S5830 Android Development] djsky2011:
Simple solution but could work, that function could be returning negative values
[Galaxy Ace S5830 Android Development] marcin1147:
I don't have a time to try it out.

Maybe lagloose should try?
[Galaxy Ace S5830 Android Development] lagloose:
On the road right now. Not before tomorrow...
[Galaxy Ace S5830 Android Development] Lijop:
Chill guys. You guys have done a lot in few days. Hats off to that. It's time to watch some euro action.
[Galaxy Ace S5830 Android Development] deepesh.tickoo:
@lagloose

Bro can you pls upload or give me ur patched libui.so & libbinder.so ...
[Galaxy Ace S5830 Android Development] deepesh.tickoo:
Did u used the memoryheapbase.patch and overlay.patch too???

EDIT: Or it is only to get libui.so & libbinder.so??
[Galaxy Ace S5830 Android Development] :
Great work today guys, maybe we should publish all sources (including my device sources) at our GitHub?

Wysyłane z mojego GT-S5830 za pomocą Tapatalk 2
[Galaxy Ace S5830 Android Development] ZenPluS:
can be useful sources kernel and platform, downloaded from the samsung site?
[Galaxy Ace S5830 Android Development] oddeceed:
off topic

guys we have gone way off topic here unless you have some useful input to help the devs then go to the general forum section or keep it quiet
[Galaxy Ace S5830 Android Development] :
No, unfortunally it cannot help us with anything.

Wysyłane z mojego GT-S5830 za pomocą Tapatalk 2
[Galaxy Ace S5830 Android Development] ZenPluS:
ok :) does nothing, I wanted to be helpful
[Galaxy Ace S5830 Android Development] KoperKiller:
Omg omg omg omfg!!!
[Galaxy Ace S5830 Android Development] stupotty1210:
you devs deserve recognistion. and should be working for the highest of elite software/hardware developers and engineers, making a driver from basicly scratch... come on that is a hands down ultimate achievment. nice donation coming your way FROM ME as promised on working cam release. jus hope you can share the donation fairley. im sure you will as your team work/ effort/ and human communication between each other is beutiful. IT WOULD NOT BE POSSIBLE WITHOUT YOU GUYS! FACT! Lagloos / maclaw / everyone else. amazing work. now listen to this shiz :cool:.

mixed for beats mod for ace :D http://soundcloud.com/stu-innis/stu-innis-video-games-v2-2
[Galaxy Ace S5830 Android Development] vo-1:
we waiting for it
[Galaxy Ace S5830 Android Development] CallMeVentus:
I myself want the sources too :) please release them

This was sent from a Galaxy Ace. Problem?
[Galaxy Ace S5830 Android Development] marcin1147:
Ok, end of offtopic!

Today will try to play with overlay.
[Galaxy Ace S5830 Android Development] deepesh.tickoo:
Were u refering to the patch?? (Overlay.patch)

And isn't there ANY chance that i can get the 2 libs i.e libui.so & libbinder.so??? :(
[Galaxy Ace S5830 Android Development] marcin1147:
Yes, I mean Overlay in libui.

I'll try to add functions-entering-info, then we will know where the division by zero really is.

EDIT: BAD NEWS! It's NOT a division by zero in overlay :(
[Galaxy Ace S5830 Android Development] deepesh.tickoo:
Hmm..u mean the HEIGHT=320 and WIDTH=480...right??

Thanx for your hardwork devs...really appreciate it..will donate with my dad's card once camera is partially AND fully working.(i m only 17 :p)...keep it up n going guyz...

That was sent from an ace using my beloved hands.

Thanks will be appreciated. :)

EDIT: then??? :confused:
[Galaxy Ace S5830 Android Development] marcin1147:
Propably CAF Camera.apk will work!
[Galaxy Ace S5830 Android Development] themountig:
Just wondering if rather than trying different camera apps devs could use code to call camera activities in a step by step way. Not sure how easy or hard this is but if possible would be best method of identifying where the process is failing. Website listed gives simple code for calling camera preview etc.

http://developer.android.com/guide/topics/media/camera.html
[Galaxy Ace S5830 Android Development] K.A.:
Sorry because this isnt developing stuff..but i just wanted to ask..

Is the camera now only partially working for the gio or will it be implemented for the Ace too?

Thanks and sorry once again :)
[Galaxy Ace S5830 Android Development] marcin1147:
Will be implemented on Ace too.
[Galaxy Ace S5830 Android Development] djsky2011:
Currently rebuilding system after a hard drive crash, be back soon guys. Btw if its not division by zero, it could be division by a greater value, did u make sure the dimensions are consistent throughout
[Galaxy Ace S5830 Android Development] marcin1147:
I'm sure, it's nothing with overlay stub.
[Galaxy Ace S5830 Android Development] lagloose:
Still here... Will continue as soon as new sources are at github. Marcin could you also push HAL sources to github ?
[Galaxy Ace S5830 Android Development] marcin1147:
Sure, I will publish HAL tommorow.

I tried CAF camera app but without success.
[Galaxy Ace S5830 Android Development] SMillerNL:
Probably thought maclaw already has partial working camera so that he could help you. Not reading seams to be the source of most XDA evil.

OT: can you put like a read me with the sources on what you have changed so I can try it to?
[Galaxy Ace S5830 Android Development] FerhatRemory:
I'm back up and installed all my stuff. I'll look too. Let know more ;).
[Galaxy Ace S5830 Android Development] lagloose:
Anyone who has actual CM7 (NOT CM9 !) sources on his computer ?
[Galaxy Ace S5830 Android Development] coolya:
you can browse them online:

https://github.com/cyanogenmod/android_device_samsung_cooper

anyhow mine are pretty much uptodate, even a bit ahead of that whats on github ;-)
[Galaxy Ace S5830 Android Development] vo-1:
i have sources
[Galaxy Ace S5830 Android Development] lagloose:
First of all, coolya i've tried libcamera.so from your CM7 and can shoot clear pictures now with stock camera. Anyway, still no preview.

Obviously SIGFPE is thrown by libc through calling initDefaultParameters which is in QualcommCameraHardware.cpp.

V/QualcommCameraHardware( 1396): startCamera picture_sizes 0xa7758430 PICTURE_SIZE_COUNT 7

V/QualcommCameraHardware( 1396): startCamera preview_sizes 0xa7758468 previewSizeCount 5

V/QualcommCameraHardware( 1396): startCamera X

I/QualcommCameraHardware( 1396): initDefaultParameters E

F/libc ( 1396): Fatal signal 8 (SIGFPE) at 0x00000574 (code=0)

I/QualcommCameraHardware( 1396): AutoFocus is not supported

V/QualcommCameraHardware( 1396): DISABLE DIS

E/QualcommCameraHardware( 1396): Maximum zoom value is 61

V/QualcommCameraHardware( 1396): max zoom is 60

coolya, vo-1 could someone of you add more detailed logging using 'LOGV("bla bla.."); in method initDefaultParameters. Perhaps a chance to locate more precisely where and why SIGFPE ist thrown. After compiling new libcamera.so send to me via PM or add as attachement in this thread.
[Galaxy Ace S5830 Android Development] vo-1:
lagloose, i can compile at wednesday.contact me.
[Galaxy Ace S5830 Android Development] marcin1147:
I can try to do this! Any sources?
[Galaxy Ace S5830 Android Development] coolya:
nope, sorry. That lib isn't compiled from source. Its the samsung blob we used.
[Galaxy Ace S5830 Android Development] vo-1:
yes, i confirm working camera on ace without preview. amazing! flashlight also working
[Galaxy Ace S5830 Android Development] vo-1:
i cant upload this patch without lagloose's permission
[Galaxy Ace S5830 Android Development] lagloose:
vo-1 just asked me for permission to send out a patch. I asked him to wait until Friday because i want to check some more things. Maybe we also have a preview than...

I know that you're all waiting for a camera patch but please be patient a little bit more. I promise that, regardless of working preview or not, i (or vo-1) will send a patch on Friday...
[Galaxy Ace S5830 Android Development] lagloose:
Hmm, you're absolutely sure ? I'm talking about libcamera.so not liboemcamera.so.

If i do a 'diff' between libcamera.so from your CM7 and libcamera.so from Samsung Stock ROM, i'll get 'files differ'. Additionally i get different messages in logcat, if i use your libcamera.so.

Concerning device configuration from your github libcamera.so ist extracted by 'extract-files.sh' but relating to 'device_cooper.mk' libcamera.so' is not delivered through cooper files. It looks to me because BOARD_USES_QCOM_HARDWARE := true is set in BoardConfig.mk, that libcamera.so is compiled in hardware/msm7k/libcamera. Just do me the favour and 'touch QualcommCameraHardware.cpp' in hardware/msm7k/libcamera and start building to look if libcamera is rebuilt.

But maybe i'm wrong...
[Galaxy Ace S5830 Android Development] :
Tadam, GalaxyICS camera patch:

http://maclaw.pl/?p=51

IT ISN’T PATCH MADE BY LAGLOOSE, IT’S MADE BY MY TEAM AND WE CAN RELEASE IT WHEN WE WANT!
[Galaxy Ace S5830 Android Development] marcin1147:
I don't think so. Look: https://github.com/CyanogenMod/android_hardware_msm7k/blob/gingerbread/libcamera/Android.mk

Where do you see "BOARD_USES_QCOM_HARDWARE"?

I think that's lib from stock but old version. Maybe something like 2.2?

coolya, how did you get that lib?
[Galaxy Ace S5830 Android Development] lagloose:
:cool: so much to the fact of showing a little decency....

Anyway, trying to get preview working till Friday.
[Galaxy Ace S5830 Android Development] Wayland_ACE:
I had already wrote what lines causes SIGFPE in this thread
[Galaxy Ace S5830 Android Development] marcin1147:
@Wayland

No. Samsung's libcamera is different.
[Galaxy Ace S5830 Android Development] lagloose:
Thanks for the hint, obviously BOARD_USES_QCOM_HARDWARE only in CM9 sources but one level higher in https://github.com/CyanogenMod/android_hardware_msm7k/Android.mk i see definition of 'ifeq ($(BOARD_USES_QCOM_HARDWARE),true)' and 'ifeq ($(TARGET_BOARD_PLATFORM),msm7x27)'. I don't know if coolya changed TARGET_BOARD_PLATFORM to msm7x27. Was just an idea to find out where and why SIGFPE is thrown....
[Galaxy Ace S5830 Android Development] marcin1147:
Maybe we should just wait for cooyla

EDIT: As I promised https://github.com/GalaxyICS/camera_hal
[Galaxy Ace S5830 Android Development] K.A.:
camera zoom fx works good for me..dunno about your problem..
[Galaxy Ace S5830 Android Development] Mardon:
@dev team

In night vision camera preview is working with maclaws patch for ace.

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Galaxy Ace S5830 Android Development] :
OMG, REALLY WORKING O.o

Thanks for trying that :D
[Galaxy Ace S5830 Android Development] Mardon:
Yes. Works fine. Think driver works correct. Maybe time to check camera app to find out how the app gets a correct preview.

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Galaxy Ace S5830 Android Development] eagleeyetom:
I can understand your enthusiasm, BUT this is development thread.

I'll forgive you this time, but next time will be no excuses.

Development related posts only. Understand?
[Galaxy Ace S5830 Android Development] :
Thanks, now I know where's the problem and probably we'll fix it tomorrow ;-)

Going to rest, thank you again!
[Galaxy Ace S5830 Android Development] SiccaGm:
i confirm , it works , but also causes phone reboot

---------- Post added at 10:33 PM ---------- Previous post was at 10:20 PM ----------

thermal camera works also.

But force close after 1 min of preview.

Maybe a memory problem
[Galaxy Ace S5830 Android Development] Mardon:
No phone reboots for me on ace. App works fine. If its a memory problem u can try oom priority charger from my signature to confirm memory problem. U also find a oom undo in my sig. Test again with oom priority charger if its not crashing or rebooting.

I have oom priority charger on my ace.

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Galaxy Ace S5830 Android Development] SiccaGm:
Will try it

I noticed that all apps from fingersoft works

Envoyé depuis mon GT-P1000 avec Tapatalk
[Galaxy Ace S5830 Android Development] Mardon:
Nice to hear. Maybe u can put a list with working cam apps with preview in general rom thread. Think we shouldnt flood this cam dev thread.

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Galaxy Ace S5830 Android Development] stupotty1210:
cartoon cam preview working comfirmed :D
[Galaxy Ace S5830 Android Development] KcLKcL:
So if other camera works, I suppose the stock CM9 camera.apk would require some tweak, do you think so?

I mean, 3rd party apps has working preview because they need to make it working in a various Android versions while the stock Camera is ICS only (And our driver isn't an official ICS driver)

Well, I'm sorry if this post doesn't help at all, just trying to contribute something here.. Also, great job team!
[Galaxy Ace S5830 Android Development] deepesh.tickoo:
Night vision camera,motion camera & cartoon camera are working with previews but the picture clicked by them is not that clear as with stock camera without preview...so i decided to stick with stock camera but when i take a picture and view it then after going back to camera, it always show cant connect to camera...re-starting the app 2-3 times fixes this but again after viewing the clicked picture it happens...i have installed oom priority charger by mardon as well...

That was sent from an ace using my beloved hands ;).

Thanks will be appreciated. :)

ROM-CM9 nightly10062012 by galaxyics

MODS-Camera fix+oom priority charger v1.4 for nightly10062012

RECOVERY-PX custom recovery v0.3.6 beta
[Galaxy Ace S5830 Android Development] coolya:
yes it is set sot msm7k here:

https://github.com/CyanogenMod/android_device_samsung_cooper/blob/gingerbread/BoardConfig.mk#L35

but the rule libcamera is overwritten by:

https://github.com/koush/proprietar...gingerbread/cooper/cooper-vendor-blobs.mk#L20

which will simply copy the lib from the blobs. Hard to remember from which version it was is guess one of the first gingerbread release KPH or similar.

---------- Post added at 09:54 AM ---------- Previous post was at 09:50 AM ----------

the question that comes to my mind is, what did you contribute in here, except running a compilers and posting a binary file, that you didn't even test.

But well thats just some random fart from my brain :D
[Galaxy Ace S5830 Android Development] K.A.:
He and his team gave our outdated device ICS in the first place :)
[Galaxy Ace S5830 Android Development] djsky2011:
I think coolya is talking about camera not ics. Btw coolya was the first to compile cm9 for ace but didn't release because of camera. Lagloose deserves a lot of credit. Anyways back on topic. Is the preview problem really SIGFPE related?
[Galaxy Ace S5830 Android Development] marcin1147:
Thanks! I will try to find first gingerbread for Gio.
[Galaxy Ace S5830 Android Development] SMillerNL:
Maybe a thread for the 3.0 kernel would be an idea?
[Galaxy Ace S5830 Android Development] dude1986:
if cam works with preview the dev`s can make the HQ (like youtube videos) fix.. ;) but first on clipboard iss the preview... so plese wait a few days :)
[Galaxy Ace S5830 Android Development] marcin1147:
Maclaw is working with me also. As you can see I'm the member of GalaxyICS team.

So stop spamming please ;)
[Galaxy Ace S5830 Android Development] lagloose:
Hi all,

FYI...

Yesterday, Maclaw announced here: http://maclaw.pl/?p=67 that he has camera for ACE and GIO almost working. Fort hat reason i've decided to stop working for now because it doesn't make any sense at the moment.

I opened this thread to initiate active working for camera development on Galaxy Ace ICS and could finally bring you a basic working camera function for the first time. I hand it over to Maclaw now and i'm sure we will soon have all the camera functions which are meanwhile also present for other devices.

Ohh, and thanks a lot to marcin1147, djsky2011 and vo-1 for their active support :)
[Galaxy Ace S5830 Android Development] :
And I want to thank you and all other guys, who helped you. Without your help it could never happend.

Wysyłane z mojego GT-S5830 za pomocą Tapatalk 2
[Galaxy Ace S5830 Android Development] lagloose:
Hey, thanks, but cool down :)

I'm not out of the world...

I've only stopped 'at the moment'. Let's wait for the next release of CM9 and look what we've got...
[Galaxy Ace S5830 Android Development] eagleeyetom:
Many unnecesary words has been said.

It's XDA

Developers

- which means that developers need to be protected. Flaming them isn't the best idea because they can cease development, and you'll have to stay on stock ROM or change phone to newer one. If you don't get it - leave.

Please try to have your personal wars in private, otherwise I'll might get angry.

Regards

Tomek
[Galaxy Ace S5830 Android Development] coolboiz:
That would make you ANGRY EAGLE! :D chill.
[Galaxy Ace S5830 Android Development] ImbaWind:
That isn't funny and this is a development-related thread.
[Galaxy Ace S5830 Android Development] anshsahajpal:
has the development come to a stand still or what ?

RESPECT TO ALL YOU GUYS making impossible possible...

thanks for the camera
[Galaxy Ace S5830 Android Development] Mardon:
This is cam developement rhread and since camera is working now no need to post here.

Gesendet von meinem GT-S5830 mit Tapatalk 2
[Galaxy Ace S5830 Android Development] djsky2011:
No I didn't clone his git. We could just ask him, don't think he would have a problem giving us. What is it that you want to compile?
[Galaxy Ace S5830 Android Development] lagloose:
i wanted to try different things i.e. rapmv78's fro here https://github.com/rapmv78/android_hardware_qcom_camerahal

seems that Maclaw and marcin are also trying to get it running. Look at timestamps in 'our' galaxyics github.

Anyway, at the moment messing around with libs from other devices. Just tried camera.msm7x27.so from ZTE Blade with the following result during boot:

---

D/AudioHardwareInterface( 1181): setMode(NORMAL)

I/AudioHardware( 1181): Set master volume to 1.

I/CameraService( 1181): CameraService started (pid=1181)

E/CameraHAL( 1181): CameraHAL_GetNum_Cameras:

D/CameraHAL( 1181): CameraHAL_GetNum_Cameras: loading libcamera at 0xb000e8a8

D/CameraHAL( 1181): CameraHAL_GetNum_Cameras: numCameras:1

I/AudioFlinger( 1181): AudioFlinger's thread 0x10aa8 ready to run

I/AudioHardware( 1181): Routing audio to Speakerphone

D/AudioHardware( 1181): doAudioRouteOrMute() device 6, mMode 0, mMicMute 1, mBuiltinMicSelected 0, muted

I/AudioHardware( 1181): Routing audio to Speakerphone

D

---

Opening camera still crashes but i think we're getting closer...