yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] twistedumbrella:
Desire HD (Inspire / Telus), Thunderbolt, Evo 3G, Evo 4G, Evo Shift, Droid Incredible, Incredible 2, Moto Droid, Droid2.

I'm far from a one trick pony ;)

The libs had nothing to do with preview. I was just busting balls. The preview issue is in the surfacetexture from what I remember of when we were working on those. The libs don't even work properly for qsd8k because they are build against an msm structure (so they may not fit every situation this hal is used in). They can work, but there is a lot of changing needed to the hwcomposer.

Again, far from a one trick pony. I am working on a LOT of things. One of which is speaking for myself. I am working on the camera for msm7x30, the camera for qsd8, the USB mass storage for 8660, the camera for 8660, and a bunch of productivity options written from my old script directly into ICS.
[Nexus One Android Development] rapmv78:
Thanks to dermann, yes, I now have a HD2.
[Nexus One Android Development] djsolidsnake86:
ok waiting for a hd2 full camera working :)
[Nexus One Android Development] rapmv78:
Your wish just came true :D See

http://xdaforums.com/showthread.php?t=1562394
[Nexus One Android Development] ~semsem~:
Any news regarding updating camera video to work on N1 as well?

Thank you.
[Nexus One Android Development] Drizzin:
Thank you for this!
[Nexus One Android Development] jt.one:
is this kernel working with medroid 1.4.4?
[Nexus One Android Development] ARieS_:
This is not a kernel. This is camera.

Sent from my Nexus One
[Nexus One Android Development] vpupkin:
Hi! I'm trying to get this thing working on my Samsung Galaxy S plus (i9001).

I've successfully built camera.ariesve.so (ariesve is my board name) and put in in /system/lib/hw/ but when I try to start Camera app it does not load that module:

10:22:19.899 Verbose CameraHolder 1852 open camera 0
10:22:19.900 Error CameraService 133 Camera HAL module not loaded
10:22:19.900 Error CameraHolder 1852 fail to connect Camera
10:22:19.900 Error CameraHolder 1852 java.lang.RuntimeException: Fail to connect to camera service
10:22:19.900 Error CameraHolder 1852	at android.hardware.Camera.native_setup(Native Method)
10:22:19.900 Error CameraHolder 1852	at android.hardware.Camera.<init>(Camera.java:320)
10:22:19.900 Error CameraHolder 1852	at android.hardware.Camera.open(Camera.java:280)
10:22:19.900 Error CameraHolder 1852	at com.android.camera.CameraHolder.open(CameraHolder.java:131)
10:22:19.901 Error CameraHolder 1852	at com.android.camera.Util.openCamera(Util.java:267)
10:22:19.901 Error CameraHolder 1852	at com.android.camera.Camera$4.run(Camera.java:1100)
10:22:19.901 Error CameraHolder 1852	at java.lang.Thread.run(Thread.java:856)
[Nexus One Android Development] ~semsem~:
BUMP!
[Nexus One Android Development] jrs007:
I have the ROM CM9 3.3U1 BRAVO.

These updates work in this rom?:confused:
[Nexus One Android Development] earth08:
Pal, thank you very much for ur camera fix.
[Nexus One Android Development] EndOfDays-Wildfire:
Will this Mod work on the little Wildfire? Will this overwrite stock Camera?
[Nexus One Android Development] lagloose:
Hey folks,

i know this is not Galaxy Ace Thread but meanwhile i'm a little frustrated and have no idea how to go on, so i decided to ask here if someone has an idea what i can do or try. I have camera working on Galaxy ACE with no preview. Camera seems to be initialized correctly. I can shoot pictures with stock camera but no preview...

IMO preview can't be shown because of this SIGFPE in libc which is obviously thrown through calling 'initDefaultParameters'

...

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

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

V/QualcommCameraHardware( 145): startCamera X

I/QualcommCameraHardware( 145): initDefaultParameters E

F/libc ( 145): Fatal signal 8 (SIGFPE) at 0x00000091 (code=0)

I/Process ( 309): Sending signal. PID: 1421 SIG: 3

I/dalvikvm( 1421): threadid=3: reacting to signal 3

I/dalvikvm( 1421): Wrote stack traces to '/data/anr/traces.txt'

I/Process ( 309): Sending signal. PID: 1421 SIG: 3

I/dalvikvm( 1421): threadid=3: reacting to signal 3

...

This gives followup errors so that preview is not shown. Due to the fact that i've used proprietary libcamera.so from a stock ROM i've only limited possibilities to debug... I've attached a complete logcat from starting camera app through shooting a picture and ending camera app.

Anyone who can help ? if the answer is not of general interest, reply via PM to avoid flooding this thread.
[Nexus One Android Development] championswimmer:
regarding this

are you still interested in helping ?

i am trying to make camera work on Xperia X10 which is also qsd8k and uses 2.6.29 kernel

it has an opensource libcamera.so for gb as well as an alternate libcamera wrapper which works like this

libcamera.so > libcamerasemc.so (the libcamera present in stock rom renamed this way) > liboemcamera.so

also recently sony has released the sources for their gb libcamera recently and that can be used to compile a working gb libcamera atm

so almost everything is open source... but i'm kinda noobish when it comes to cpp and thus i need some help
[Nexus One Android Development] championswimmer:
i can confirm that this works on the Sony Ericsson Xperia X10 as well

(we need to set the -DBINDER_COMPAT flag in BoardConfig to make it work)
[Nexus One Android Development] abhishek046:
ARMV6

@rapmv78 Hey, I'm trying to fix the camera for cm9 & cm10 roms for the LG P690 aka LG OPTIMUS NET. Here's the logcat output that I get on initialising the camera.

I/ActivityManager( 1630): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera bnds=[0,330][80,417]} from pid 2756

I/ActivityManager( 1630): Start proc com.android.camera for activity com.android.camera/.Camera: pid=4470 uid=10032 gids={1006, 1015}

V/CameraHolder( 4470): open camera 0

E/CameraService( 1506): Camera HAL module not loaded

E/CameraHolder( 4470): fail to connect Camera

E/CameraHolder( 4470): java.lang.RuntimeException: Fail to connect to camera service

E/CameraHolder( 4470):	at android.hardware.Camera.native_setup(Native Method)

E/CameraHolder( 4470):	at android.hardware.Camera.<init>(Camera.java:320)

E/CameraHolder( 4470):	at android.hardware.Camera.open(Camera.java:280)

E/CameraHolder( 4470):	at com.android.camera.CameraHolder.open(CameraHolder.java:131)

E/CameraHolder( 4470):	at com.android.camera.Util.openCamera(Util.java:267)

E/CameraHolder( 4470):	at com.android.camera.Camera$4.run(Camera.java:1145)

E/CameraHolder( 4470):	at java.lang.Thread.run(Thread.java:856)

V/camera ( 4470): surfaceChanged. w=320. h=427

I/ActivityManager( 1630): Displayed com.android.camera/.Camera: +666ms

Its evident that the HAL module is failing to load. I've tried using your HAL module but the phone gets into a bootloop. I've replaced the libcamera.so and liboemcamera.so along with your apk. My device is an armv6 one and is a msm7x27 one. Also, camera.goldfish.so and camera.msm7x27.so are the only 2 libs in both roms related to camera present in /system/lib/hw. I've tried replacing both these files with your HAL by trial and error. I also tried renaming your HAL into camera.p690.so and then using it without replacing any of the 2 files above. Results were same.

I've attached links to the build.prop, libcamera.so and liboemcamera.so. I couldn't do a logcat because with your HAL the phone doesn't get past the boot image itself! Plz help me out...........

http://www.mediafire.com/download.php?0mgkwgieagm4h7w -----> build.prop

http://www.mediafire.com/download.php?3lz4otljpnqfvo3 ------> libcamera.so

http://www.mediafire.com/download.php?4xeg0flhap9eud8 -------> liboemcamera.so
[Nexus One Android Development] Rashed97:
Ported this to Jelly Bean!!!

Link: http://xdaforums.com/showthread.php?t=1849969

Great thanks to nobodyAtall :D
[Nexus One Android Development] j00m:
Are you running P4?
[Nexus One Android Development] munnition:
Yes, I do.
[Nexus One Android Development] bachmark:
It works for HTC HD2 with tytung ICS 4.0.3 Beta10:)

Thanks
[Nexus One Android Development] j00m:
Worked on N1!
[Nexus One Android Development] :
just tried it on desire z (androdamus alpha 7)...

first with the libs inside the zip, then i took the libs from cm7.1 for my device...

didn´t work, but i did not flash the boot image through fastboot...

EDIT: my skills are not good enough for this, i will leave it to someone else
[Nexus One Android Development] jwhood:
I have mt4g creamedglacier 6.0 ics, ive been trying to get this to work,if i flash the boot.img in fastboot

Will it brick my phone????

Sent frm the home of the "wire"
[Nexus One Android Development] twistedumbrella:
That is not "generic" by nature and sounds like it was written for a very specific kernel. I will wait for the source to modify it for the current "common" ics kernel, as most other devices are using the same ioctl and pmem configurations.
[Nexus One Android Development] onerider:
Camera is now working really well on Texasice N1 p4 build. :)
[Nexus One Android Development] rapmv78:
It will render your phone unusable since you are flashing a wrong kernel. May not brick if you can recover from bad kernel flashes. I am working with Nicgraner. Hopefully will have something for you to use.
[Nexus One Android Development] jwhood:
Great bro thats who i was speaking with when i first seen your post a few days ago he was trying to get it to work but couldnt get it to,glad to see that ill stop taking up space on threads and thanks again for your hard work!!! : )
[Nexus One Android Development] zaher.bahouth:
nice work

keep on :-)
[Nexus One Android Development] rqx110:
Thank u

but it has glitches on the screen~!:eek:
[Nexus One Android Development] Nicgraner:
Ok still having issues so I have attached the files, hope you can help me out :)
[Nexus One Android Development] j00m:
in camera:

glitches == some black lines on left of the screen? If yes, it happens with me too.

Hope rapmv78 will fix it ;)
[Nexus One Android Development] guy_smiley:
Almost 100% certain this is a HWA issue. Same happens when playing back videos for me, black lines when playing. No issue with the actual picture though.
[Nexus One Android Development] rapmv78:
I do not get those black lines, except in video mode (which I am trying to fix). Can someone post a screenshot? Also If anyone can try flashing the boot-new.img from the zip file (note that your wifi may stop working) and see if that makes it go away, then it could be a kernel issue. You can go back to using the boot.img from the original ROM once you are done checking.
[Nexus One Android Development] j00m:
flashed the boot-new.img, still same issue.

camera mode: only has some black lines about 1-2 cm on left screen, show random.

in video mode: full black lines which that knowns issue.

Hope will fix it.
[Nexus One Android Development] mulerokeh:
i can't zoom in or out, anyone have same problem?

phone also like not responding for a while after take 2 or 3 photos..
[Nexus One Android Development] la4o:
glitches

I have same glitches about 1 cm left screen (moving short black vertical lines)

but this is only in preview
[Nexus One Android Development] rapmv78:
Are you using the new HAL from this thread? The one from the other thread had that issue, which should be fixed with this one. If you are still having issues, can you post logcat?
[Nexus One Android Development] mulerokeh:
i'm sorry, my mistake..

try to push it again and it works like charm..

i'm sorry..

but confirm also has some glitches..

but great work, thank you very much..

Sent from my Nexus One
[Nexus One Android Development] j00m:
:D first try bootloops, that is not related to this new HAL. after reflash ROM, it is working good.
[Nexus One Android Development] jwhood:
Hey rap did u ever get around to looking into that camera fix for mt4g port of ics,nic posted a logcat of needed files a few post back thanks bro!!!

Sent from "World 8-4" bowser's castle!!!!!!
[Nexus One Android Development] rapmv78:
I wanted to chat with him on IRC, but he was not available. If you are, then come over to #ics_desire_nexus_dev on irc.freenode.net. There are some commands I woud like you to try and there will be some back and forth. IRC would be much better for that.
[Nexus One Android Development] sucon:
Thanks rapmv78! Hope a new boot.img can work with wifi+a2sd+camera.
[Nexus One Android Development] jwhood:
I got on irc u was there then soon as i started to chat u left out????

Sent from "World 8-4" bowser's castle!!!!!!
[Nexus One Android Development] bachmark:
Hi here is a screenshot, I am using the defaut boot.img (HTC HD2).

The glitches are no problem for me, critical are the random FC.

Thanks
[Nexus One Android Development] pibedeayer:
Camera works, the app takes a while to load.

Can anyone confirm if Barcode Scanner works? Didn't for me
[Nexus One Android Development] rapmv78:
Sorry, I did not see you. It was pretty late and I had to get some sleep. The session must have just timedout as I did not quit explicitly.
[Nexus One Android Development] jwhood:
I m on irc now no one responds??

Sent from "World 8-4" bowser's castle!!!!!!
[Nexus One Android Development] M..N:
People do take their time to respond on irc, just be patient you'll get a response from someone eventually :)
[Nexus One Android Development] jwhood:
thanks bro i seem to always miss him and can really use his expertise in helping me to get camera to work on mt4g

Sent from "World 8-4" bowser's castle!!!!!!
[Nexus One Android Development] twistedumbrella:
Happened to glance at your log and it looks like the camera app is loading up, but it isn't connecting to the hal (camera.qsd8.so) and on a side note it looks like your OpenGL stuff is a little messed up, which may cause the corrupted appearance (if you have that).
[Nexus One Android Development] Nicgraner:
Thanks, I'm not the main dev for this rom, I'm just tryin for the camera to work haha but I'll look into it thanks for the advice :)
[Nexus One Android Development] chriscsh:
how can i get logcat for HAL only?
[Nexus One Android Development] j00m:
does adb work for you?

if yes, 'adb shell' from command line (cmd.exe or bash shell)

or you can install aLogcat https://market.android.com/details?id=org.jtb.alogcat

Then filter Camera, HAL keyword ;)

HTH
[Nexus One Android Development] chriscsh:
thanks, that work great :D
[Nexus One Android Development] j00m:
ops, it is 'adb logcat'

sorry. ;)
[Nexus One Android Development] Dacen:
Hello,

I was just wondering about the ability do decode a QR code using the camera live feed. Is that "video and fancy stuff" function or something else?

I have know idea, who to app is using the live feed and what function are important. This is appears in the log.

D/QualcommCameraHardware( 3094): af start (fd 49)
I/mm-camera 8x vfe( 3094): ch=769 cw=1283 vof=384 hof=641 wh=384 ww=641
D/mm-camera af_core( 3094): af_beta is executing!!
E/mm-camera-af( 3094): af_algo_preview: FAILED....
D/QualcommCameraHardware( 3094): native_set_afmode: ctrlCmd.status == 1
[Nexus One Android Development] jwhood:
Here is requested files frm my phone rapmv78,still not working after doing all you said......http://db.tt/UNJpL6DJ

Edit:libcamera.so is frm your zip forgot about swaping it actually loads with your libcamera.so but keeps timing out,with my libcamera.so cam app just crashes!!!!

Sent from "World 8-4" bowser's castle!!!!!!
[Nexus One Android Development] jokester902:
is there a way to us the flash the new boot.img without fastboot?
[Nexus One Android Development] andnad:
can somebody post the code needed to push the newer version? also could i use terminal emulator? it's not every day i use adb so i often forget
[Nexus One Android Development] deletarus:
I'm having some issues installing this camera fix.

I'm running Deck's ICS alpha1 on an EVO4g. I have adb'd the files to my device, installed the Camera.apk. But when I try to flashboot the boot-new.img I get the following error;

sudo ./fastboot flash boot boot-new.img
sending 'boot' (1900 KB)...
OKAY [ 0.581s]
writing 'boot'...
FAILED (remote: not allowed)
finished. total time: 0.582s

I realize I shouldn't have to sudo, but that's the only way I could get it run at all without the dreaded <waiting for device>.

What permissions does this img actually change? Can I change them myself in the terminal?

Any help would be much appreciated.
[Nexus One Android Development] Wayland_ACE:
What about proper liboemcamera.so for ICS armv6? My device is Samsung Galaxy Ace. I had compiled camera hal module, updated ramdisk, used liboemcamera.so from gingerbread rom from my divice, but:

liboemcamera.so from ICS working camera roms (armv7 only):

liboemcamera.so from gingerbread from my device (armv6).

Is any possibility to get liboemcamera.so for ICS armv6?
[Nexus One Android Development] jwhood:
#su

Chmod 0666 /dev/msm_camera/config0) chmod 0666 /dev/msm_camera/control0 ) chmod 0666 /dev/msm_camera/frame0) chmod 0666 /dev/graphics/fb0) put those cmd lines in ter emu and u wont have to flash boot.img im trying to fix cam on mt4g ics port and im not having any luck at all

Sent from "World 8-4" bowser's castle!!!!!!
[Nexus One Android Development] jokester902:
Has anyone had success with this?
[Nexus One Android Development] jwhood:
Hd2 and nexus one has

Sent from "World 8-4" bowser's castle!!!!!!
[Nexus One Android Development] chriscsh:
i think it would work on the other same processor devices :p

edit: it would better if OP can list all the working devices
[Nexus One Android Development] guy_smiley:
And the desire (bravo)
[Nexus One Android Development] geenyous:
played around with camera ZOOM Fx a bit, log attached.

Works very well, apart from camcorder obviously, which is external to the app (i.e. the stock camcorder).

Hopefully this helps, great work so far!
[Nexus One Android Development] xXy3kXx:
after flashing boot img my phone is stuck at splashscreen i have my touch 4g CreamedGlaicer v6.1

---------- Post added at 09:49 AM ---------- Previous post was at 09:41 AM ----------

you have to enable engineering boot! you might find instruction in the android development fourm for your phone. i had the same problem some how my engineering boot reverted. but i fixed it!
[Nexus One Android Development] twistedumbrella:
Isn't the boot image intended for a Nexus? That may be part of the problem. In theory it shouldn't work, and if it does, just barely.
[Nexus One Android Development] YoMarK:
Guys, this boot.img is meant for the nexus one(and probably specific to this and 1 or 2 other roms), and the only thing it does is fixing some permission issues which you can fix manually, so you can still test if this even works on your device.
[Nexus One Android Development] AKRRKA:
Really realize the possibility of recording video in 720p?

Please think about this possibility.
[Nexus One Android Development] K900:
About a month after the original 720p joke in #ics_desire_nexus_dev, 4 days after the first camera driver version, someone has finally asked that.
[Nexus One Android Development] twistedumbrella:
So are the files here a compiled version of http://xdaforums.com/showthread.php?t=1379368 or is this something different that does the same thing?
[Nexus One Android Development] Gabe3:
what are the chances of video recording working?
[Nexus One Android Development] rapmv78:
Just wanted to update with some progress on making video work. I have fixed preview to work fine with video. No longer see the distorted view after switching to video mode. After many days of debugging, have been finally able to record a few frames at a relatively low resolution, but only by forcing software encoder. The software encoder is pretty slow and causes the camera app to FC. Looking into making the hardware encoder work.
[Nexus One Android Development] Gabe3:
good news, thanks for the time your putting in. video recording is whats holding me back from ics.
[Nexus One Android Development] twistedumbrella:
I would offer some help, but without source or an answer to the previous question it seems I can't.
[Nexus One Android Development] rapmv78:
Thanks for the offer ;) Greatly appreciated. The stuff I have to figure out is not really related to the HAL module, as I already have software encoding working. It is w.r.t stagefright hardware encoding support. Anything you can offer in terms of tips from prior experience would go a long way. Sorry, I missed your question earlier. I thought I had posted the reason in the other thread and a smaller version in the first post. But here is the main difference between the other work and the work tracked in this thread. The other work was a complete compile from source code to integrate the source corresponding to libcamera.so and the hal new code requirement in ICS as one HAL module. This thread tracks work to make existing libcamera.so stuff from gingerbread work in binary form, with as little device specific stuff as feasible. That was the reason I had mentioned that this may or may not work with 3.0 kernels as it requires the gingerbread libcamera.so to be compatible with the 3.0 kernel due to the HAL module's hard dependency on libcamera.so.
[Nexus One Android Development] twistedumbrella:
I wasn't referring to your other thread, I was referring to the HD2 thread, which based on this explanation does the same thing.

Also, tips from previous experience will be useless without any form of code to relate them to. It sounds like going to a lot of trouble to keep the source concealed until such time as it can be released as a finished product rather than assist in the general progress of getting the camera to work in general.
[Nexus One Android Development] geenyous:
twistedumbrella is right.

Don't you fear that we will not give you propper credit, since you developed your fix the use of ICS on HD2 has increased great time!

Everybody who is serious with flashing his HD2 with the latest goodies knows the name rapmv78 ;)

So unless you don't have any other reasons, I think it would be really beneficial to all of us if you guys could work on this final fix together.

I am sure donations will flow in your direction as soon as this is done... :D
[Nexus One Android Development] ale8530:
ICS with Qualcomm Processor

Rapmv78 Hello, I wanted to know if a rom ICS already developed with Qualcomm Adreno 220 processor and the processor can help you arrange Nexus One and Desire.

If you can help please contact me at ale@miui.it .
[Nexus One Android Development] rapmv78:
Well, I am not worried about credits or anything of that sort. Just did not want to release incomplete stuff and unclean code. Thats all. If someone can tell me a better way than a tarball to share the code, that would be great. Have been looking at using github for a while. For starters, I can use some newbie tips on how to use github, without much uploading and having to re-sync a brand new repo :) To be precise, I have started to use the everlov repo to be able to get the latest stuff, how do I create just the camera stuff into my github using the same repo url as evervolv?