yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] rapmv78:
Have updated the post with another flashable zip file which should fix colors for the panorama mode and also the barcode scanner mode should work now.

Enjoy!!
[Nexus One Android Development] j00m:
Thanks rampv78.

Does it work with last ROM pre-p8 of texasice? http://xdaforums.com/showpost.php?p=22223781&postcount=1955
[Nexus One Android Development] rapmv78:
It may. Give it a shot. Actually I just glanced through the other thread and looks like there are some kernel changes in that ROM, so may not work if they are incompatible.
[Nexus One Android Development] Theshawty:
Latest version works great, thanks!
[Nexus One Android Development] j00m:
yes, maybe that ROM has bug. cause bootloop.

Logcat for you: http://pastebin.com/DJevVxWb
[Nexus One Android Development] k3vink3vin:
Flashed under Texas' Evervolv p6

Panorama works, Barcode Scanner works, Google Goggles works
[Nexus One Android Development] uoY_redruM:
Can't get it to flash. Tried downloading 3 separate times and each one says "installation aborted".

Running latest Medroid ICS.
[Nexus One Android Development] Theshawty:
I run the latest Medroid ICS and it installed perfectly. Can it be so that the download gets corrupted for you for some apparent reason? Try checking the md5?
[Nexus One Android Development] kuyam:
Make sure you get the flashable zip from the second post, not the source from the 1st one :)
[Nexus One Android Development] dk_zero-cool:
@rapmv78

Was wondering one thing that I did not really think about until now. Before you updated the hal to include support for BarcodeScanner, I used the camera on my banking app to input a serial number on a bill. The tecnique behind this is somewhat similar to the barcode scanner, only it reads numbers instead of barcodes.

What I can't get is why the BarcodeScanner did not work while my banking app did? It had no problems at all reading the number on my bill, it did it with the same speed and such as it did on Gingerbread.
[Nexus One Android Development] djsolidsnake86:
instant heart rate don't work
[Nexus One Android Development] geenyous:
Must be the same reason why NeoReader always worked, I think they make some kind of OCR post processing of the picture - focus the pic, shoot it and then scan for information. BarcodeScanner and Goggles seem to make a live analysis of the video input and only give an output when they find something, not taking a pic in the process. Only reason I can think of atm.
[Nexus One Android Development] rapmv78:
If I were to take a guess, your banking app probably used video capture mode, but the barcode scanner apps seem to just use photo preview mode to capture frames, which I just fixed.
[Nexus One Android Development] Lothaen:
Not sure if anyone on the nexus had issues, but just wanted to make you aware of a few bugs we might have on the htc desire using the latest camera.

on sandvold's ICS rom if you flash the latest camera it does seem to work great until you have taken a pic - then the whole phone bugs out.

It could easily be just a tweak on the rom itself to sort it out but just thought it might be worth a mention in case other users on Nexus One had issues too?
[Nexus One Android Development] dk_zero-cool:
Try wipe camera data. Have no problems with pictures.
[Nexus One Android Development] djsolidsnake86:
with last version work but after 30 seconds the heart graphic get stuck
[Nexus One Android Development] ARieS_:
Green panorama issue solved with 02/09/2012 version on MIUI ICS rom http://xdaforums.com/showthread.php?t=1479348

Sent from my Nexus One
[Nexus One Android Development] rapmv78:
Here is a debug package, which should help devices which have different qualcomm cameras. It is a NOP for nexus-one compatible devices, so you do not have to use this if things already work fine for you. Also, If using texasice's new kernel, try this to get camera preview working till he fixes his kernel.

http://www.mediafire.com/?0j5bl4i92sggtzu

You will have to make sure that libcamera.so and liboemcamera.so or any other vendor specific camera library from gingerbread is in /system/lib/

I have added software decoding support for displaying frames and so will be a little slow. If you have camera working in gingerbread, this should get camera support for your qualcomm device in ICS. Should not matter what hardware you are running.

If you cannot get camera to work with this, please respond with the full logcat output, along with the build.prop.
[Nexus One Android Development] sweetbinodray:
Thx. Give to quick moments i am reverting You. Great work dude.
[Nexus One Android Development] rapmv78:
Can you check if the md5sum is correct?

0da5063979e080407961fe6df00d48af camera-debug_0212012-signed.zip
[Nexus One Android Development] sweetbinodray:
Yeah its correct. Whats the problem?
[Nexus One Android Development] imfloflo:
Should we flash it via recovery or adb push ?
[Nexus One Android Development] rapmv78:
Either way is fine. The zip file is recovery flashable, but if you choose adb, you can extract the zip file and push it, make sure to chmod the files appropriately if going the adb route.
[Nexus One Android Development] rapmv78:
Not sure. Can you try to manually push the files using adb? Also what device are you trying to use this zip file on?
[Nexus One Android Development] sweetbinodray:
It's LG Optimus P500. Ok let me check will revert you shortly.
[Nexus One Android Development] sweetbinodray:
Its not working. Now what to do?
[Nexus One Android Development] rkrishnan2012:
I'm experiencing the same problem as @sweetbinodray

Here is a logcat:

http://dl.xda-developers.com/attachdl/6b479d70b5b64602452b329fda14bbc1/4f3a56ae/9/0/1/3/4/0/log.txt

Also, it gave an error 0 during installation so this was done manually. This is for the HTC Aria (qualcomm processor). The camera worked perfectly in gingerbread so this should work...

Edit:

I'll try to get hold of the build.prop but until then, here is the git for the device directory:

https://github.com/WinSuk/android_device_htc_liberty

you should be able to browse and get everything you need.

-Thanks for your efforts
[Nexus One Android Development] rapmv78:
I cannot access the logcat output. It says 410 Gone..

Could you post it on pastebin or some other place easily accessible?
[Nexus One Android Development] rkrishnan2012:
Sure! How about this:

http://pastebin.com/pdE4rsg3

I also attached the build.prop you asked for from a gingerbread rom

-Thank You
[Nexus One Android Development] rapmv78:
Try to restore the libgui.so from your build, not from the package and also rename /system/lib/hw/camera.qsd8k.so to /system/lib/hw/camera.liberty.so
[Nexus One Android Development] rkrishnan2012:
so I should copy the libgui.so from the gingerbread build into the ics and rename that so to /system/lib/hw/camera.liberty.so?
[Nexus One Android Development] rapmv78:
The libgui.so should be from your ICS build and not from the package I posted.
[Nexus One Android Development] Aitrus:
i installed your zip with my libgui from the rom im using. but the video only works for a few seconds before the camera crashes and then my phone freezes and i have to pull the battery. everything else seems to work like you stated in the change log. any thoughts?

im using a HD2 cm9 rom v1.3 by tytung.
[Nexus One Android Development] fabzbear:
Anyone knows of any good porting Dev's I can get a hold of.
[Nexus One Android Development] rapmv78:
For HD2, there would not be any improvement, since it is compatible with Nexus One chipset, I already mentioned it.

Has anyone with a msm7x30 chipset tried the new camera HAL? If so, can you share your experience?

Thanks.
[Nexus One Android Development] jwhood:
Still doesnt work on ics port for the mt4g!!! : (

sent from the home of the "WIRE"
[Nexus One Android Development] rapmv78:
Can you post the full logcat? I would like to help fix the issue.
[Nexus One Android Development] djsolidsnake86:
for hd2 there is someone that is working for a better compatibility please?
[Nexus One Android Development] Arti_:
Could someone write a step by step how to install the patch to work with video recording at normal speed? What is it you need to install and running it on 4.0.3 ICSv Android 1.3?
[Nexus One Android Development] geenyous:
More kernel development, afaik.

Not much rap can do atm...
[Nexus One Android Development] mcpaddington:
MediaFire seems to be down for me, can anyone upload the ICS Camera HAL zip for me to another file host please?
[Nexus One Android Development] fabzbear:
Could someone help me out and point me to where I can hire a ROM porter.
[Nexus One Android Development] :
Camera debug package doesn't work on my Gio compilation for get camera working. I'm stucking on bootlogo (using libgui.so from your package and from my compilation).

Logcat:

http://pastebin.com/HtpvRuH9

build.prop:

http://pastebin.com/v6fg1LR5

Please, help me ;-)
[Nexus One Android Development] Tuborg68:
Will this package fix the camera preview issue which is present in Sandvolds ICS rom for HTC Desire with full HWA (versions 0.4 and higher)?
[Nexus One Android Development] K900:
No. This needs a fix for the kernel itself.
[Nexus One Android Development] rapmv78:
If all you are missing is the preview and clicking takes pictures. Then the HAL in the debug package should give you preview.
[Nexus One Android Development] rapmv78:
Restore libgui.so from your ICS ROM not from the package and rename the camera.qsd8k.so to camera.gio.so and reboot and if it does not work, please post logcat.
[Nexus One Android Development] k3vink3vin:
I tried flashing the debug package over texasice's Evervolv-Perdo-2.1.0p9 on my N1 and restored libgui.so from the rom.

Camera takes pictures but preview doesn't work. If I leave camera open for a longer time, say 10 seconds and take a picture, the phone will eventually freeze afterwards.

logcat when it takes a picture:

http://pastebin.com/y0TSPy9M

logcat when it freezes the phone:

http://pastebin.com/BAJt3NQF
[Nexus One Android Development] rapmv78:
The new gralloc seems to not be compatible. So, I am sorry this will not work, until texasice can fix it.
[Nexus One Android Development] jwhood:
So what libs from gingerbread need to be swapped into ics rom for this to work,just libcamera.so and liboemcamera.so or do i need to add more libs other then those two when I try to flash your package says it flashes but doesnt change nothing,I'm on virtuous quattro ics and really need ur help thanks,oh by the way its the mytouch 4g,can i some how push your file in terminal emu and if so how would i go about doing it

sent from the home of the "WIRE"
[Nexus One Android Development] edowar:
Hi rapmv78....

I got this error, when I used your camera hal library

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

E/HAL ( 122): load: module=/system/lib/hw/camera.fb0.so

E/HAL ( 122): Cannot load library: link_image[1965]: 122 could not load needed library 'libcamera.so' for 'camera.fb0.so' (reloc_library[1314]: 122 cannot locate '_ZN7android7Overlay5setFdEi'...

E/HAL ( 122): )

E/CameraService( 122): Could not load camera HAL module

what is that mean?

Thanks.
[Nexus One Android Development] jlokos:
I'm using the AOKP ICS-Dinc rom on my HTC Incredible. I flashed the bar code scanner fix and it worked fine. The problem, however, is it did not stick after I rebooted the phone. Any suggestions on how I can make this fix stick. Thanks for your great work.
[Nexus One Android Development] rapmv78:
It looks like the libcamera.so uses hardware overlay to display the preview frames. What device is this?
[Nexus One Android Development] rapmv78:
Sorry. Unless you can provide logcat output, it is hard to say what is happening.
[Nexus One Android Development] jwhood:
Ok i put a 3.5 rom back on my phone ill flash ics and flash your debug package and get a logcat of whats going on along with my build prop and go frm there k bro

sent from the home of the "WIRE"
[Nexus One Android Development] edowar:
my device is huawei x6...

Using hardware overlay, is that mean liboverlay.so from ics must be connected with libcamera.so ?
[Nexus One Android Development] maschnsi:
Hello,

how can i flash it with a SD-Rom-Version?

Sorry, i'm a noob.
[Nexus One Android Development] djsolidsnake86:
any update? camera slowdown my hd2 after take some picture
[Nexus One Android Development] dermann:
you'll have to manually put them in the correct folders.
[Nexus One Android Development] djsolidsnake86:
any news guys?
[Nexus One Android Development] svb4:
+1

Do you still working on an update??
[Nexus One Android Development] rapmv78:
Is there something particular that the current version is missing? What do you expect in a new update? I have been trying to see if we can get other devices with Qualcomm chipsets, but so far no luck without much debug output or device in hand.
[Nexus One Android Development] rapmv78:
I do not know how your device uses overlay. If it does not require liboverlay.so, it would not work. You can give it a try and see if it helps.
[Nexus One Android Development] svb4:
Video recording isn't working.

My device is HD2 with IceCreamTosti V0.8a.

Works video recording on your phone?
[Nexus One Android Development] rapmv78:
Yes, as far as I know, everything works fine on Nexus One. Someone else can confirm too, to make sure that I am not mistaken :)
[Nexus One Android Development] uoY_redruM:
You have camera preview and such working for the N1 now?
[Nexus One Android Development] clarkg:
Hi,

I have an HTC HD2 with Tytungs CM9 1.4. At the moment that build has the 01/30/12 version of your driver. A few of us with that build have tried the 02/09/12 driver, but rolled back because it after taking a few photos we get system slowdowns. I'm not too worried personally about the barcode scanner functionality in your latest driver, but I would quite like to have the colour fix for panorama mode that I heard was in the latest version. I can do some testing for you on my device if it would help, just let me know what I need to provide you with (a logcat maybe?). Alternatively, if there's some tweak I can apply to the driver version I have to just get the colour fix that would be great.
[Nexus One Android Development] djsolidsnake86:
yes in hd2 video recording work poor
[Nexus One Android Development] clarkg:
That's right... and, as has been pointed out a thousand times in just about every thread for an HD2 ICS build, it's because of the lack of proper hardware acceleration in current ICS kernels for the HD2. It's not because of this driver and there's nothing this developer can do about that.
[Nexus One Android Development] rapmv78:
Okay. If the barcode scanner fixed build is giving you problems and only want panorama mode, here is one thing you can try out. Install the build without the barcode scanner fix and from the build with the fix, extract /system/lib/libmosaic_jni.so and replace it on your system. Panorama should work. Make sure to backup your existing libmosaic_jni.so, just in case you need to revert back.
[Nexus One Android Development] Bologna:
I would only like to thank you for what you're doing trying to give us a full working camcorder and camera :)

keep up the good work! :)
[Nexus One Android Development] skitty:
Preview doesn't work on HWA roms but at least we can tale pictures
[Nexus One Android Development] clarkg:
Thanks for that. I've given it a quick go and the colour is generally right on a panorama. It does create a new issue though: any slightly brighter parts in the image (like outside a window or reflection off a shiny surface) are now covered by black patches. It's like the sensor has been overwhelmed at the top end of the brightness range so it hasn't recorded any data, but these patches aren't seen in the view when actually taking the panorama. This is just one test taken inside our office at work, but the windows aren't that bright because it's overcast outside. I'll have to do a few more tests after work.
[Nexus One Android Development] djsolidsnake86:
but with this method video works with no slowdown?
[Nexus One Android Development] DisneyF1:
video enabled?

Hey,

I was redirected to your work from HD2 NAND threads. Looks really good.

I couldn't figure out, though, what the 'video enabled' versions "for large or small" did versus the zip file version and how to flash that image.

Thanks,

OZ
[Nexus One Android Development] djsolidsnake86:
rapmv78 can you do something for hd2 video please?
[Nexus One Android Development] rapmv78:
I do not have a HD2 device. So, will be really hard. If there is an equivalent issue on N1, I can try to help.
[Nexus One Android Development] djsolidsnake86:
if i can help in some way let me know
[Nexus One Android Development] edowar:
thanks rapmv,

and now camera hal is loading fine....I just added camera parameter and overlay from gingerbread, but only black screen and I couldn't take picture at all.

here is for logcat

http://pastebin.com/k8Bf0Jnp
[Nexus One Android Development] nhatientri:
Any news about camera for new ics kernel, nexus one

Current camera preview not work
[Nexus One Android Development] twistedumbrella:
https://github.com/ThePlayground/an...mmit/9da7947602e0d5c90e47e3a8ba946df8c570d616
[Nexus One Android Development] texasice:
I already tried that it didnt work. the hal needs to be changed (along with that change)
[Nexus One Android Development] twistedumbrella:
Every time i mess with the overlay in frameworks i lose preview. That might help.
[Nexus One Android Development] djsolidsnake86:
development stopped? on hd2 can't record videos and there are random freeze with camera
[Nexus One Android Development] Bologna:
what a bad news!!

A lot of people waiting for a working camcorder on hd2...

If you need to debug on hd2 or test something or for anything else, just let me know!

I really hope you can do something for us...

Thank in advance. rapmv78 :)
[Nexus One Android Development] dermann:
What would you do if you did have an HD2? :)

I have a spare that I haven't used in a bit, if I donated it to you, would that help? :D It's not in the best condition, but it should do the job.
[Nexus One Android Development] rapmv78:
If I have the device, at the bare minimum I can work on the issue and resolve the issue if I get lucky :)
[Nexus One Android Development] dermann:
Alrighty, pm sent. :D
[Nexus One Android Development] djsolidsnake86:
are you sending to it?
[Nexus One Android Development] dermann:
Its on its way. :)
[Nexus One Android Development] sarshadd:
In order to get my camera to work can i just fastboot flash boot the .zips (which one?? or do subsequent updates contain previous ones??) located in post number 2 or do I have to manually adb push the file replacements from post 1 or both??
[Nexus One Android Development] romvahav:
there is any news about stable camera? if not what is the main problem ?
[Nexus One Android Development] matts95:
Assuming your either on an unserported device, the recently discussed HD2, or the currently unstable N1,Desire,(other 8x50 devices).

* On the HD2 a phone has been shipped to rapmv78 by dermann, hopefully rapmv78 can sort something out :)

* On the supported 8x50 devices where camera preview broke with opengl (HWA) enablement, drewis is working on this issue:

Hope this helped :)
[Nexus One Android Development] texasice:
rapmv78: i think the preview problems are being caused by the copybit blit operation you are using. i know prior to hwa copybit wasnt being used and probably didnt work (it was being build for msm7x25) so i guess it was necessary to manage the blit within the hal.

whats tripping me up is what to replace it with. we could call copybit directly like below. but im also having issues with the copybit region so the code below doesnt build.

replaced contents of CameraHAL_CopyBuffers_Hw with.

+ int err;
+ copybit_device_t * copybitEngine;
+ hw_module_t const * module;
+
+ copybit_open(module, &copybitEngine);
+
+ copybit_image_t dst;
+
+ dst.w = w;
+ dst.h = h;
+ dst.format = destFormat;
+ dst.base = (void *)destOffset;
+ dst.handle = (native_handle_t *)destFd;
+
+ copybit_image_t src;
+
+ src.w = w;
+ src.h = h;
+ src.format = srcFormat;
+ src.base = (void *)srcOffset;
+ src.handle = (native_handle_t *)srcFd;
+ src.horiz_padding = 0;
+ src.vert_padding = 0;
+
+ copybit_rect_t rect; //put in region
+
+ rect.l = x;
+ rect.t = y;
+ rect.r = w;
+ rect.b = h;
+
+ copybit_region_t * region; //properly assign this
+
+ err = copybitEngine->blit(copybitEngine, &dst, &src, &region);
+
+ if(err < 0)
+ LOGE("%s: blit failed", __FUNCTION__);

also the above will need calls to genlock to work effectively.

but in ics copybit is never called directly. it is managed through hwcomposer. and hwcomposer is managed by surfaceflinger.

im still unsure of quite a few things but since you know the hal much better than me maybe this will help.
[Nexus One Android Development] rapmv78:
Do you have a logcat to show the errors that you get when using copybit? When using my debug HAL which used software conversion, I came across a logcat from a user which showed issue with geninfo and gralloc. Have you fixed that issue?
[Nexus One Android Development] texasice:
i need the code for the debug build
[Nexus One Android Development] rapmv78:
I lost those diffs. Will build it again. Meanwhile, can you post the logcat?

Thanks.
[Nexus One Android Development] djsolidsnake86:
are you working on hd2?
[Nexus One Android Development] Burag:
... and why can't you do something by yourself?

Oh, you cannot?

Then STFU and wait for other's work. This is non-commercial, free-time and community development. Don't think that you can take something, without giving anything.

And do not forget about donations, some people are spending thier free time to bring us this great stuff. They deserve some respect.

[/rant]

I hope you get my point, without being offended. If you are, then I'm sorry, because I couldn't find other words for explaining this. Have a nice day.
[Nexus One Android Development] rajnallan:
rapmv78: I would love to do testing and report the findings on HTC EVO 4G. Please include my name as a tester...Thanks
[Nexus One Android Development] servabat:
Hey,

thanks for this kernel, but btw will Full HWA still working ?

Thanks in advance for you're answer,

bye :)
[Nexus One Android Development] chitoka:
I just have a noob question i have the X8 and currently there is an ics version for our phone kernel that i have is the 2.6.29.6 the rom i used has camera but just in test mode so you see a square bouncing up and down, ok my question is can i have this camera fix working on my phone? Thanks for any replies
[Nexus One Android Development] tajimura:
***deleted, nevermind***
[Nexus One Android Development] twistedumbrella:
Fixed camera for me, what about you?
[Nexus One Android Development] tajimura:
Really?

Sent from nowhere
[Nexus One Android Development] twistedumbrella:
Yup. Figured that's why it was posted here, wasn't it?
[Nexus One Android Development] n1newbie:
u mean the preview? so u got taking pictures and preview working? :)
[Nexus One Android Development] twistedumbrella:
You don't? Im lost.
[Nexus One Android Development] matts95:
HOW?

I would be interested (as would, I'm sure, everyone else) in hearing exactly what you did to integrate the driver properly and get working preview

As I'm sure your aware the driver is supposed to be similar to that used by drewis in the pasion/bravo (and on all opengl enabled 8x50 ROMs), so I'm supprised to hear its having such an effect :D

What device are you on? (is it the same camera as Desire/N1?)
[Nexus One Android Development] Lothaen:
You think maybe he is pulling your leg? :p
[Nexus One Android Development] :
Twistedumbrella devs on desire hd & his tbolt?
[Nexus One Android Development] M..N:
If I remember correctly (I may be wrong) he is working on getting camera functional for msm7x30 devices.
[Nexus One Android Development] djsolidsnake86:
rapmv78 have you received the hd2?