yashsingh1/xdaforums huggingface dataset:
[Touch Pro, Fuze Android Development] poleshuka:
should i use libcamera.so.5mp.zip as libcamera.so ?
[Touch Pro, Fuze Android Development] viruscrazy:
At the moment, I don't have even tested gingerbread. Will do that later because I think froyo will soon become "unsupported" and anyway, camera will have to work on gingerbread. I think it can't work right now because the libcamera relies on some other libs from the froyo build. But don't worry, it won't take as much time as making the camera working.

Btw, camcorder now working, but quality with android codecs are crappy, so I'm working on the qcom codec to make it work.
[Touch Pro, Fuze Android Development] viruscrazy:
If you have a 5Mp device, then use the libcamera.so.5mp.zip.

Jerome
[Touch Pro, Fuze Android Development] poleshuka:
thanks you a lot - it works fine in camera mode !!!

fails in video :)
[Touch Pro, Fuze Android Development] lenny76:
I found a bug.

I cannot close a call.

screen turn off and keys works no more. so the only way to stop a call is that the other person close the call o if noone replied I need to reset the phone.
[Touch Pro, Fuze Android Development] LENINred:
Where i can find kernel or lib for working camcoder?))
[Touch Pro, Fuze Android Development] viruscrazy:
Be patient !
[Touch Pro, Fuze Android Development] Eodun:
Yes, XDAndroid Froyo FRX04
[Touch Pro, Fuze Android Development] Eodun:
Yeah, that works for blackstone.
[Touch Pro, Fuze Android Development] LENINred:
Ok) Thx you man... for all your hard work.
[Touch Pro, Fuze Android Development] viruscrazy:
First thread updated with a new kernel

Read the [22/01/2011] update section for details

Please, report if any problem.

Thanks, Jerome
[Touch Pro, Fuze Android Development] Eodun:
Strangely, the sentence "one of the last kernels..." made me happy and sad at the same time... that means you're near the full support, but also that this testing process is near the end, and I enjoyed it ;)

Thanks for your work again!
[Touch Pro, Fuze Android Development] Erikson89:
Topaz boots and camera works the same as the last kernel you released for Topaz.
[Touch Pro, Fuze Android Development] foggydew88:
What else man? :D

Simply many many thanks for this important step on Android development.

It works like a charm on my XDANDROID

Slán!
[Touch Pro, Fuze Android Development] Eodun:
Works without problems, same as previous.
[Touch Pro, Fuze Android Development] arrrghhh:
Agreed! Thanks again for all the hard work Jerome, you've done a great job managing and testing cam. I'm definitely excited to see it go mainline :D!
[Touch Pro, Fuze Android Development] pdawg17:
So no sense in trying newest kernel with Rhod400 right?
[Touch Pro, Fuze Android Development] arrrghhh:
You can, but if you read the first post:

The pink issue is still present, so there's nothing "fixed" in this kernel for RHOD.
[Touch Pro, Fuze Android Development] poleshuka:
works great,

thanks a lot !
[Touch Pro, Fuze Android Development] xUmaRix:
latest kernel update broke mp3 audio playback.the stutter bug reoccured
[Touch Pro, Fuze Android Development] :
Sorry for my language...

Best kernel for RAPH100 its the one for raphael on 17/02/2011...Im using froyo B From neopeek(xdandroid froyo frx04 gives me wifi error)..Everything working like a charm and im getting the best fps and speed from other working camera kernels..With the 22/02/2011 kernel the phone won't open after sleep..

Good job...:)
[Touch Pro, Fuze Android Development] viruscrazy:
That's because I started over from a fresh copy of the main linux-msm tree. The bug still need to be reworked as my solution was kind of dirty (not reading battery level during playback, so no level refresh during mp3). I need to either restore the way it was at the begginning (still a small stutter every 10 seconds but better than long stutter) or find an other way to read battery. I think, at first, the fix will be to read battery only once when playing mp3.

I will make the patch but this won't be in this kernel yet as I don't want to merge anything else than camera right no (don't want side effects as I had on blackstone or other devices).

regards, Jerome
[Touch Pro, Fuze Android Development] viruscrazy:
Anyone else experiencing this issue ?

Can you test the 21/02/2011 kernel ?

Regards, Jerome
[Touch Pro, Fuze Android Development] viruscrazy:
First post updated with a new library package

This package enables the video recording and also enable the HW accellerated codecs (the android SW codecs did some crappy video). Please, test and report any bug. Make a logcat / dmesg if it doesn't work.

FOLLOW THE INSTRUCTIONS ON THE FIRST POST !!!

Thanks, Jerome

P.S : There might be a FC on camera close after switching to video mode. It does not appear to be present on my diamond device where the libraries are integrated in my Xdandroid build. It might be a side effect of having libraries in a separate folder.

First post updated with a new kernel package for RAPHAEL

This package contains a new kernel that should fix the sleep issue you have. If not, then please, start the camera and make a dmesg log whil the camera is running. Then try to close the camera, make a new dmesg log. If the phone does not wakes up, then try again to make a dmesg log.

If you don't post me logs along with your posts, then it's useless as I don't have anything to work with.

Regards, Jerome
[Touch Pro, Fuze Android Development] arrrghhh:
Thanks for the update Jerome.

Video record worked great on my RHOD400, but still the pink preview screen after capturing - you probably already know that, as it doesn't look like you've fixed this yet.

Great work on the video record tho! Logcat and dmesg attached.
[Touch Pro, Fuze Android Development] Eodun:
Does that mean we have to use the included libGLES and gralloc? Or you're just talking about the cam?
[Touch Pro, Fuze Android Development] :
Problem solved with the 22/02/2011 raphael kernel...Thanks..One more thing...I never need to send dmesg and lagcat before ...Im using camera advance..Classic android camera software laggs a lot...How can i do it??I want to help...Thanks...
[Touch Pro, Fuze Android Development] GoldAngelo:
Check PM, I send you how can you do dmesg.txt and logcat.txt

On my RAPH100 (Lib_pack and kernel+zImagine-latest version) i have small problem. Screen when I turn Android (in the last phase) looped back. This is fresh pack (download today froyo pack from thread arrrghhh and latest rootfs+your pack from today). I try repair this and write.
[Touch Pro, Fuze Android Development] viruscrazy:
No, it's not dependant. If you didn't used the libGLES & gralloc, just disable them again in the froyo.user.conf file.

If the problem is fixed up then I don't need the logcat.

Camera might lagg a bit because of some debug outputs. For the release, they will be removed.
[Touch Pro, Fuze Android Development] skimike02:
Camera, Video, apps using camera all working great on Rhod 210 FRX04. Awesome work. Thanks.
[Touch Pro, Fuze Android Development] :
Thanks bro about The steps...For your problem i think that you should try froyo B from neopeek...With xdandroid i had many problems..But with this build im very happy without any loops or kernel panics...

Greatings From greece

Mixalhs..
[Touch Pro, Fuze Android Development] vansem12:
Everything works well on DIAM 100 ! (FRX04)

Thank you very much for the hard work done !!
[Touch Pro, Fuze Android Development] Eodun:
It WORKS! Perfectly, great quality. Saves in 3gp, nice ;)

Thanks again virus!
[Touch Pro, Fuze Android Development] jpci:
Hello,

Thanks, good work!

I have a DIAM100, your last release works fine, more fine than in the wm 6.5 I run in the other side...

Regards,

Jpci
[Touch Pro, Fuze Android Development] Erikson89:
Video recording (highest resolution) works fine on Topaz!

Great work again!
[Touch Pro, Fuze Android Development] djdafreund:
Shucks, i gotta double check some things. I grabbed the 3 new files today for my raph800, but now get a black screen after trying to load the camera app. Only change is, i kept the lib_camera directory (keeping conf changes this time) instead of dumping them directly into my SD directory (with dir changes made in conf). Will look deeper and post results. Was working fine before today's install.

Edit- Ok, tried other alt lib, also tried removing 2 lines for when using FRX04 (which wasn't needed before today to work), and still black screen. Will go ahead and make/post a log in a little bit to see what i'm doing wrong.
[Touch Pro, Fuze Android Development] arrrghhh:
There's a boatload of new files that are being symlinked in the froyo.user.conf... check the first post - new lib pack!
[Touch Pro, Fuze Android Development] djdafreund:
Yeah, i know, i mentioned in my post i got those.

[22/02/2011] :

* New kernel for all devices. This kernel should be one of the last kernels I do (except for rhodium bug which will be treated separately). This kernel enables the required stuffs for video recording BUT VIDEO WON'T WORK UNTIL I'VE RELEASED THE REQUIRED LIBS (it's working but I've got to cleanup the userland changes I made).

Link to the package :

http://www.4shared.com/file/UJ76-tp4..._02222011.html

* New library package for camcorder. Remove/rename you /sdcard/lib_camera folder (i.e rename it to something like lib_camera_old if you want to keep it). Extract the new lib_camera folder to your sdcard and DON'T FORGET TO UPDATE THE FROYO.USER.CONF in your conf folder with the new one (well, arrrghhh, you might have a look at it...as always, I may not have used the best options in here...but mount --bind does not seems to work when files does not exists).

Link to the library package

(will only work with the [22/02/2011] kernel)

: http://www.4shared.com/file/rTuoV0te..._02222011.html

* New kernel for raphael only. This is an attempt to fix the potential sleep bug on your RAPH100 devices.

Link to the package :

http://www.4shared.com/file/CNXwv_1T...11_raph_s.html

And also double checked my froyo.conf file (added the ending new stuff, replacing my previous setup, which was copied over from the one downloaded file. Everything SEEMS correct

# custom shell commands, these commands run last

custom_shells{

rm -f /sdcard/fsck*.rec

mount --bind /sdcard/lib_camera/libc.so /system/lib/libc.so

mount --bind /sdcard/lib_camera/libcamera.so /system/lib/libcamera.so

#mount --bind /sdcard/lib_camera/libGLES_qcom.so /system/lib/egl/libGLES_qcom.so

#mount --bind /sdcard/lib_camera/gralloc.msm7k.so /system/lib/hw/gralloc.msm7k.so

mount --bind /sdcard/lib_camera/liboemcamera.so.legend /system/lib/liboemcamera.so

#

# comment the line above and uncomment the line bellow if the camera fails to work.

#

#mount --bind /sdcard/lib_camera/liboemcamera.so.dream /system/lib/liboemcamera.so

ln -s /sdcard/lib_camera/libOmxCore.so /system/lib/libOmxCore.so

ln -s /sdcard/lib_camera/libmm-omxcore.so /system/lib/libmm-omxcore.so

ln -s /sdcard/lib_camera/libOmxH264Dec.so /system/lib/libOmxH264Dec.so

ln -s /sdcard/lib_camera/libOmxMpeg4Dec.so /system/lib/libOmxMpeg4Dec.so

ln -s /sdcard/lib_camera/libOmxVidEnc.so /system/lib/libOmxVidEnc.so

ln -s /sdcard/lib_camera/libqcomm_omx.so /system/lib/libqcomm_omx.so

ln -s /sdcard/lib_camera/libomx_m4venc_sharedlibrary.so /system/lib/libomx_m4venc_sharedlibrary.so

ln -s /sdcard/lib_camera/libomx_avcenc_sharedlibrary.so /system/lib/libomx_avcenc_sharedlibrary.so

}
[Touch Pro, Fuze Android Development] Eodun:
Had a similar problem. Do you use windows or linux in your PC?

If windows, try deleting your froyo.user.conf and using the one from virus's pack, modifiying it with wordpad and saving text-only.

I opened it once by mistake with word and it got corrupted :p

If using linux, no idea.
[Touch Pro, Fuze Android Development] djdafreund:
Thanks. I will give that a shot. Did get some message when saving in Notepad++. I'll just do that and copy the file directly instead of editing.

Edit- Yup. That was it. Recopied file directly, instead of copying and pasting new stuff. Camera is working, Camcorder is working = Raph800. Wow, never thought we'd see the day. THANKS SO MUCH Viruscrazy!!! :) :)

Is mp4 going to be an option in the works, or is it only 3gp for raph users? I just wanted to ask because we get mp4 in WM. Granted i have to dump it down one resolution value to get the same FPS recording speed as 3gp equivalent resolution. And

saw "This package enables the video recording and also enable the HW accellerated codecs (the android SW codecs did some crappy video)." and wondered if that helps our phone's record better with this.
[Touch Pro, Fuze Android Development] viruscrazy:
MP4 codec is a part of the qcom codecs file (in the libOmxVidEnc.so. It can be used but I think you will need a new camera application as the original one does not give the choice (at least I couldn't find it in the "light" menus.

The HW accellerated codecs only mean that the image processing is done via the ADSP not using software.? If you want to see the difference between accellerated and non accelerated codec, then just comment the libOmxVidEnc.so line in the conf file and it will use the SW codecs...

Regards, Jerome
[Touch Pro, Fuze Android Development] djdafreund:
Ok, thanks for the explanation. And all your hard work getting this finished. If there's ANYTHING i can further do to help with the flash switch problem to troubleshoot, just lemme know. I'm here for ya.
[Touch Pro, Fuze Android Development] idogxx:
DIAM500,Camera OK, Camcorder OK.

THANKS!
[Touch Pro, Fuze Android Development] viruscrazy:
First post updated with a new kernel

This kernel is an attempt to fix the pink screen bug on the rhodium devices. Please test it and report if you still have the pink problem.

Thanks ,Jerome
[Touch Pro, Fuze Android Development] surge919:
quick test of a few pictures and videos.. works good so far :)

thanks
[Touch Pro, Fuze Android Development] viruscrazy:
Did you had the pink screen problem before ?

Regards, Jerome
[Touch Pro, Fuze Android Development] Aggy73:
cam works

works fine on froyo from xandroid, but with neopeeks

builds there is still the problem "cant connect to camera"

anyone whoo can help me?
[Touch Pro, Fuze Android Development] surge919:
Nope.. no pink screen.

I've switched back and forth from camera and video and each time it's taking actual pictures and the auto-focus is working great.
[Touch Pro, Fuze Android Development] mizofizo:
Pictures and video work now with the new kernel. Thanks so much!! However, I did experience a reboot to WM after trying to wake from sleep. My last kmsg is here if needed: http://www.mizofizo.com/android/kmsg2-23.zip.
[Touch Pro, Fuze Android Development] arrrghhh:
I keep having reboots to WinMo after a small amount of uptime. Here's the first last_kmsg, more to follow...

Second one posted as well. Seem to be having better luck on this third boot...

Third time must be the charm...

Video record works fantastically, and no more pink screen!

I'd say the only outstanding issue I can find at this point is when the image is zoomed, the preview shows the zoomed in image, but when you actually snap the pic it goes back to 0x. Fantastic work Jerome, thanks!

Interesting. Ran this for a little while longer, and I went to take a pic, and it snapped... then hung. I waited a bit, tried to flip it to camcorder, no such luck. Eventually the frozen image I took turned black, and I got an FC/wait dialog. Now the cam just FC's... dmesg_logcat.zip are from these incidents!

Going back to testing other kernels & flashing. Let me know if you want more info Jerome, not sure what happened... Hoping my logs can help!
[Touch Pro, Fuze Android Development] NeoMatrixJR:
Also on RHOD400. First boot quickly rebooted to WinMo. Second boot came up and worked, but lots off oddities in logcat (see attached logcats). Took one picture. AF worked, but then pink. After that, Camera app FC's every time.

(sorry, logcats are from the same 2nd boot...but my USB disconnected and re-connected...stupid crappy docking station...)
[Touch Pro, Fuze Android Development] viruscrazy:
Hmm...well, at least the pink screen is gone...I've tested the camera on my rhodium and I've been able to reproduce the bug. It happens when you record a video then swithc back to the camera and try to take a picture. It seems that the video encoder can't properly close and keep some pmem active. I think it's either a bug of the video encoder or it's not closed the way it should be. I think I won't be able to solve this problem right now as it will require disassembly of the video encoder, and exploration of the calling process...

The zoom will also be a part of the "extra" features I will try to make work. It might just be a small adjustement but at first, I'd like to have the "basic" functions committed in the Xdandroid project (kernel + userland).

Regards, Jerome

EDIT : seems the pink screen problem didn't disappeared for everyone ?!?
[Touch Pro, Fuze Android Development] arrrghhh:
Understood, let me know if I can help out in any other way... you're doing great work, keep it up!
[Touch Pro, Fuze Android Development] viruscrazy:
Guys with the reboot problem, can you test the latest official kernel. I've merged the clock changes recently made in this tree and I was wondering if it was not comming from ther because it's alsways next to some hw3d operations...nothing really related to my memory changes.

Please let me know the results.

Regards, jerome
[Touch Pro, Fuze Android Development] DCraft12:
working camera Rhodium

Ok i have a touch pro 2 Rhodium400, i have two minor issues that i need help with to get the xdandroid completly operational.

1. The camera displays the picture on the screen i take a picture the camera freezed and the picture fails to save to my sdcard. the video works just fine

2. When i does freeze i have to hit the power button to reset the camera.

please help

I am using Kernel 02232011 with FRX04.
[Touch Pro, Fuze Android Development] arrrghhh:
I didn't get the reboots on 1260, but I haven't tested 1262 yet. I'll try it shortly.
[Touch Pro, Fuze Android Development] DCraft12:
camera issue

I attached the dmesg and log files

If someone can look at them and tell me what i am missing.
[Touch Pro, Fuze Android Development] DCraft12:
dmesg

here are the files.
[Touch Pro, Fuze Android Development] viruscrazy:
Please, try to use the legend library. It seems I've broken the dream libary support...

Regards, Jerome
[Touch Pro, Fuze Android Development] DCraft12:
testing

Will try the other setting will let you know thanks
[Touch Pro, Fuze Android Development] DCraft12:
sir

Thanks so much it worked, now all i need is the bluetooth to work can you help me with that.
[Touch Pro, Fuze Android Development] viruscrazy:
No.

1rst reason is that this thread is only dedicated to camera.

2nd reason is that bluetooth is not yet working on rhodium (well, I've made it work but the headset is not yet usable).
[Touch Pro, Fuze Android Development] GoldAngelo:
For me:

Picture and recording work-Big thanks for you.

Not working:

Zoom closer picture of the application, but the image is recorded without zoom.

Flash light

And When I took the test connection on my second phone-xdandroid like to hang. That is, everything worked together, but I could not hang up because RAPH100 did not respond to any key or whatever.

Market work, application Camera have some lags, but it's ok :-)

And one again-THANKS :-)
[Touch Pro, Fuze Android Development] mizofizo:
Since that first reboot, I haven't had any others. The only thing is sometimes I have some failed wakes which is a common problem.
[Touch Pro, Fuze Android Development] a290:
Thanx, I did what is says from update [22/02/2011]

Camera works on my HTC touch pro (Raph100) with XDANDROID 2.2.1 AOSP.

and I recommend camera app: Vignette (Zooming, auto focus, effects and everything els work in the app except the flash light)

thnx again
[Touch Pro, Fuze Android Development] spitzilla:
Confirmed working on my DIAM500

both camera with autofocus as well as video recording

using the following files

[22/02/2011] :

* New kernel for all devices. This kernel should be one of the last kernels I do (except for rhodium bug which will be treated separately). This kernel enables the required stuffs for video recording BUT VIDEO WON'T WORK UNTIL I'VE RELEASED THE REQUIRED LIBS (it's working but I've got to cleanup the userland changes I made).

Link to the package :

* New library package for camcorder. Remove/rename you /sdcard/lib_camera folder (i.e rename it to something like lib_camera_old if you want to keep it). Extract the new lib_camera folder to your sdcard and DON'T FORGET TO UPDATE THE FROYO.USER.CONF in your conf folder with the new one (well, arrrghhh, you might have a look at it...as always, I may not have used the best options in here...but mount --bind does not seems to work when files does not exists).

Link to the library package (will only work with the [22/02/2011] kernel):

using the froyo.conf that came with the lib package, unedited

The updated 2/23 lib package that was posted broke the autofocus and video recording.
[Touch Pro, Fuze Android Development] wmg316:
I am using the new zImage and Module on the Froy X Red build. Pics are working and video is somewhat working...

When I take a pic, the picture takes and then the white corner-frame outlines around the screen turn green and I have to take another pic to exit...or switch to video. In other words, I have to take two pics every time.

The video works, but there is no sound.

I only used the new zImage and Module; did not use the lib files nor the new froyo.user.conf file. Would that be the problem? Or does the sound not work?
[Touch Pro, Fuze Android Development] Eodun:
Ofc you need the libs... so you need to edit froyo.user .conf to use them.
[Touch Pro, Fuze Android Development] wmg316:
One more question:

Since I use the 'anboot' folder, do I modifiy the mounts to read:

i.e., add the andboot to the mounts?

EDIT:

Tested with no change to 'froyo.user.conf': camera works, video works, but with NO sound

Tested with changes made above to 'froyo.user.conf': Get "cannot connect to camera" error

Tested with changes made above to 'froyo.user.conf' with # prior to libGLES and gralloc lines: Get "cannot connect to camera" error

Tested with changes made above to 'froyo.user.conf' mounting dream instead of legend: Get "cannot connect to camera" error

Any other suggestions?
[Touch Pro, Fuze Android Development] Aggy73:
neopeek roms

can someone help me where i have to put the libs in a neopeek rom?

if i move the libs to the /system/lib folder, cam bring me the message "cant connect to camera"

is this the right folder for neopeek, or doesnt work the libs in this roms?

sorry, i cannot make a logfile because i cannot connect to the phone with adb...
[Touch Pro, Fuze Android Development] surge919:
In your case, you would need to modify them as you stated, but the libs can be anywhere and they don't have to be in your andboot folder.

I use different folders so I can try different versions

\sdcard\andboot_frx04

\sdcard\andboot_GBX0A

but I placed my libs at the same level

\sdcard\lib_camera

and my config points to

ie: mount --bind /sdcard/lib_camera/libc.so /system/lib/libc.so
[Touch Pro, Fuze Android Development] djdafreund:
@Aggy73 - Just a head's up. We are at the final stages of testing here, so i might recommend waiting til this is officially added to the branch after testing is complete (assuming your H/W is one mentioned for this thread), that way other rom's will start having support also. Otherwise, if your following the first page instructions and it doesn't (might not since your using a rom), don't expect it to work.
[Touch Pro, Fuze Android Development] NeoMatrixJR:
Q's before trying w/ main kernel.

I'll give this a test, but I've got a few questions first.

1.) you had us change our haret.exe we're using and add a line to startup.txt. Is that not necessary using the stock kernel?

2.) I'm assuming all we do is make the froyo.user.conf changes and drop in the libs?

Also, I'm not getting any reboots from the main kernel as-is but I have noticed a LOT more SOD's. I'm not sure if this is related.