yashsingh1/xdaforums huggingface dataset:
[HTC ChaCha] xd.bx:
On the stock ROM, Camera Illusion works fine. We are using the same libcamera and liboemcamera as stock. I'm thinking this is an issue caused by the middle layer, that is the libcameraservice and libcameraclient. We already had to fix the CameraHardwareInterface, but obviously there is some additional magic required.

It's also very possible that the kernel sources provided by HTC do not match the actual sources they used to build the stock ROM.

EDIT: in fact, it would be very useful to try a CM7-based ROM with the stock kernel. Even though touchscreen won't work, we can try the Camera by key navigation. Anyone feels up for this?
[HTC ChaCha] abraham89:
YEA !!

am ready to give in a shot with stock kernel and CM7..

If you could pls tell me in detail how to do this ??
[HTC ChaCha] qbert456:
What's changed in this latest version please?

Thanks
[HTC ChaCha] adlx.xda:
- Proximity issue is fixed during calls

- Soft keyboard shouldn't show now when selecting a text field
[HTC ChaCha] qbert456:
Thanks, for quick reply ill give it a go in a bit.

Can somone please tell me, under supsetup , options, apps2sd will this remove need to use links2sd app that I currently use?

Cheers
[HTC ChaCha] qbert456:
I've installed it, app2sd works fine, on screen keyboard doesn't pop up but still get no word options.

I use "in app wifi toggle" and on last build it worked, now search button will only bring search up not in app toggle as before.

Still as fast as ever tho...

So I'm happy!
[HTC ChaCha] intel007:
Hi guys im a wildfire s user although my girlfriend has the chacha. Just thought I'd let you know the same camera and flash problems exist in the wildfire s port of cm7 by alquez, also wifi issues.

It is proving very tough to solve, so just thought if you guys get it sorted to drop a post in wildfire s section and vice versa if we get it fixed i will post back here because im guessing its the same issue.

Thanks.
[HTC ChaCha] mosamjc:
I just tried a stock 2.3.5 kernel from the EU 1.52 rom on the latest SuperOSR build to no avail. The image shows, flash goes off, then force closes. Wish I could be more helpful. Let me know if there is anything else I can do to help.
[HTC ChaCha] mosamjc:
I just wanted to mention to that the armv6 flash 10.2 and 10.3 work flawlessly on SuperOSR. Personally I think 10.2 runs just a little smoother, but both are great additions to an all ready kick ass ROM. I'm not a proponent of flash but I am a fan of free online content there is far more of that in flash right now than html5. http://xdaforums.com/showthread.php?t=1303168 if anyone's interested.
[HTC ChaCha] xd.bx:
Thanks for the info. Do you know who I should contact? In particular which WildFire S devs(s) is involved in the reverse engineering of the camera stuff.
[HTC ChaCha] intel007:
Yes mate, you should contact Alquez he's the dev who is working on it.

As i said though it's proving difficult.

Maybe if htc stopped being stubborn or lazy with unlocking these devices more devs would be porting and building more roms for our devices!
[HTC ChaCha] xd.bx:
Hi,

Thanks. I do fully agree -- HTC has proven repeatedly that contrary to say, Samsung or ASUS, they are not developer-friendly (except for those who want to use their proprietary, closed-source and bloated Sense interface).
[HTC ChaCha] xd.bx:
Hello,

The Camera.apk from AOSP < 2.3.5 works on stock ROM (including taking pictures). This confirms the problem lies within libcameraservice.
[HTC ChaCha] themickman007:
Is a problem in libcamera service hard to fix? Possible to steal libcameraservice.so from another htc device where the camera works on their cm7 rom?
[HTC ChaCha] sathara:
front cam works on Visidon applock
[HTC ChaCha] qbert456:
(Osr) This rom is very good, stable with good battery and runs nice and fast.

My only problem now iis the spell check doesn't show options - is that on the list to fix please?

Cheers!
[HTC ChaCha] astro11:
not once you get a cyanogenmod running! :cool:
[HTC ChaCha] qbert456:
Mikevhl, would you like a small donation to your "heres cm7 for your chacha everyone" fund??

The sooner you get a chacha the better! :-)
[HTC ChaCha] astro11:
He already got himself a ChaCha, but you still should donate him if you feel that he deserves. I just donated 10 USD... if he does something for the ChaCha community (actually, he already does a LOT), we should really appreciate his effort, because there are something like ~10 ChaCha users willing for a CyanogenMod 7... the small userbase is a downside that doesn't motivate him (or any developers) at all.

Let's hope everything goes great. I'll try to gather more ChaCha users from facebook and other forums to xda-developers and CM7, so the userbase will be larger.
[HTC ChaCha] adlx.xda:
LOL, these days RIM would kill for anything that doesn't go through their datacenters, not only for a great OS like Android!
[HTC ChaCha] Moody:
I don't have the chacha yet. But I will get it very soon and I have already ordered an XTC Clip. :)
[HTC ChaCha] Alex C.:
I can still offer support with my phone :P Thinking of trying other roms (for Desire for example).
[HTC ChaCha] qbert456:
A desire Rom on the chacha ?

Is that what you mean?
[HTC ChaCha] Moody:
Exactly, trying to get a rom running on the chacha and then finding out which proprietary files we need.
[HTC ChaCha] xd.bx:
removed link because it was obsolete
[HTC ChaCha] Moody:
Wow.. How well does it work? The link is dead, by the way.

I guess this makes my work kinda obsolete, damn.. I will repay my donators if they want to, of course. Just kinda stupid that I already ordered an XTC Clip..
[HTC ChaCha] xd.bx:
Thanks, I fixed the link. Basically due to the strange screen resolution the PIN screen and the lockscreen are not fitting properly. In addition both touchscreen and keyboard don't work, which is a problem obviously. I might try the msm7227 kernel from CyanogenMod to see if it makes a difference (I doubt it).
[HTC ChaCha] Moody:
As far as the keyboard, I assume you already tried to fix the layout in /system/etc ?
[HTC ChaCha] xd.bx:
It's fixed already, the keylayout file from HTC had a couple non-standard keys in it.

The touchscreen is working now. For the record, the kernel .config from HTC was missing CONFIG_TOUCHSCREEN_COMPATIBLE_REPORT. This doesn't solve the gralloc issue though.
[HTC ChaCha] Alex C.:
Awww, link removed *cries deeply*.. Wanted to give it a test..
[HTC ChaCha] astro11:
don't say that, you are still helping the community and now you have a mate to work with :) two developers is better than one, right?
[HTC ChaCha] qbert456:
More help the better surely?!
[HTC ChaCha] xd.bx:
I no longer have time to work on this port. I recommend Mikevhl takes over once he receives his XTC Clip.
[HTC ChaCha] qbert456:
You mind putting the link back perhaps (please) ?
[HTC ChaCha] adlx.xda:
I guess I'm a bit behind you. I started also to port CM (sort of) to Chacha from Liberty. boots fine but no touchscreen either. My first expirience at porting and I have to say I'm stuck right now. I'll continue tomorrow. Any help is welcome.
[HTC ChaCha] Alex C.:
Nice, mind sharing the rom, as we could all provide some help maybe?
[HTC ChaCha] xd.bx:
It's a 600 kb binary, so it's a pain to reverse engineer. Your solution looks good although there are sadly few recent HTC ARMv6 devices as compared to the more common ARMv7. Maybe someone could try with the libcameraservice from the Wildfire S.
[HTC ChaCha] qbert456:
Sorry I made a mistake, camera not working- when I actually took a pic for first time today it fc.

Just thought id say in case you thought I had a random working rom!
[HTC ChaCha] themickman007:
I'll give the wildfire s libcamservice a test now but I dont think that their camera is working either in the cm7 rom so probably the same issue. Thanks again for looking into this even though i know before you said you were over it haha.

Qbert - I am a big fan of smart keyboard pro. If you select it as the keyboard and turn on prediction it gives a neat one line bar above the keyboard (bottom of the screen) which looks much better than any of the others i have seen, as well as being the most accurate with predictions.

Edit: I'll try the HTC aria libcamservice first as it has a 5mp camera is a htc and they have a working cm7 camera

I have to say though this really has put me off htc for the future - wish they didnt have to make everything so hard.

---------- Post added at 09:51 PM ---------- Previous post was at 09:24 PM ----------

I'm getting a hang on the boot screen when replacing the libcameraservice.so with the one from the aria. I'm guessing its a different camera and it wont recognize properly. I am trying the desire s libcam because it has a 5mp and 0.3 front one as well. Different chipset though so i am doubtful it will boot
[HTC ChaCha] themickman007:
libcameraservice.so from desire s gets to the boot screen but running a logcat it looks like it has an error with media.audio_policy.

Ive tried replacing the audiopolicy.so file but that makes it worse. I am not sure what else to do at the moment so I'm just going through google and seeing if anyone else has had a similar problem
[HTC ChaCha] mosamjc:
Out of curiosity, I tried the libcameraservice from the htc explorer and it booted up fine compared to the other couple I tried, which wouldn't boot at all. Unfortunately it just fc when I opened the camera app. I didn't do a logcat as I was away from my computer but I will later and see if it reveals anything useful.
[HTC ChaCha] themickman007:
Was it from a cm7 rom or from stock? Ive been trying out the cm7 ones hoping that if it does boot it wont have those fc's
[HTC ChaCha] Alex C.:
Give me a shout if you need any testing done. You can also use GTalk/Yahoo if you want.
[HTC ChaCha] xd.bx:
Hello guys,

Thanks to everyone for the additional camera tests. In addition, the main developer of the WildFire S CM port has kindly pointed me to his latest commit: https://github.com/alquez/android_device_htc_marvel/commit/e58ccace534da5f88ed9774e7fb87966cf495776

In summary, it replaces the proprietary libcamera.so with a version compiled from sources, which is very useful for debugging, leaving only liboemcamera as the remaining proprietary library.

The other route is instead to push the libcameraservice from stock ROM into CM7. It will not work out of the box since new APIs were introduced, so a slight tweaking of the camera client may be required.

EDIT: a careful study of differences between stock and CM7.1 shows several new parameters not present in CM7. Some are related to the face detection engine used by HTC. The most interesting is the capture-mode, which does not exist in CM7. See attached file.
[HTC ChaCha] themickman007:
Hey i cant really say i understand all the differences but i have noticed that when recording a video it only shoots at roughly 1 frame per second and in the params there it has a section called video size and format. There is also a similar one for picture size and format could it be that the camera doesnt know what size to shoot at?

Sorry i cant be of more help im trying to learn this stuff as i go along :eek:
[HTC ChaCha] xd.bx:
Alright, sorry for being off-topic, but as I was reading android-building, I came across

<rant>Once again Google pretend they like openness, although in truth they don't care -- in this regard, they are no better than HTC. In fact, they never bothered to include the hardware support that Qualcomm provided in the Code Aurora Forum. I'd like to also quote from http://source.android.com/tech/encryption/android_crypto_implementation.html:

Fortunately, the startup that made Android chose the (GPLv2) Linux kernel before it was bought by Google. Otherwise, we might have been left with a binary-only, BSD-style kernel instead. Think about it. </rant>

---------- Post added at 09:33 PM ---------- Previous post was at 09:31 PM ----------

Yep. I'm also thinking about video acceleration and the yuv420sp-adreno parameters, it's like shooting works but playing it back is not hardware accelerated.
[HTC ChaCha] xd.bx:
adlx.xda: I did a fresh CM 7.2 build, as almost everything works (the new Dialer is awesome!) However the 0/Symb key always shows the IME selector dialog instead of the proper key. Any idea? (I'm using your kl/kcm files).
[HTC ChaCha] sathara:
xdbg cool bro .. when gona come online ....
[HTC ChaCha] adlx.xda:
Have a look a this commit http://www.assembla.com/code/androi...sets/fcd8943702afd43b621954f4f1637c4f6155df5f

Look at the comment in the system.prop file especially ;) .
[HTC ChaCha] xd.bx:
Thanks, that's a clever change :)

BTW I managed to debug mediaserver on stock with the gdbserver from the latest NDK. It's actually rather easy as long as you don't forget to set solib-search-path (the list of break-able functions in libcameraservice.so can be obtained with option -T of objdump from the NDK). However I can't attach at the start of mediaserver which is when it seems to pass the parameters (or maybe I'm setting a breakpoint on the wrong function).
[HTC ChaCha] xd.bx:
This build is based on the latest CM 7.2.0 with adlx.xda's fix for the 0/Sym key:

http://www.mediafire.com/file/zyhjblf3az77hml/update-cm-7.2.0-RC0-ChaCha-KANG-signed.zip (no longer using FileFactory. which, btw, sucked ;))

The camera still does not work, so I've removed the APK for the time being. Wi-Fi is still the same as SuperOSR, my earlier experiments did not lead to an improved connexion.
[HTC ChaCha] qbert456:
On this latest cm build, what happens when the keyboard is used? Any word options please?
[HTC ChaCha] carstenheuer:
in the last CM7 build i have no more problems with the phone.apk :).

but unfortunately my german keylayout does not work :(
[HTC ChaCha] Alex C.:
Updated OP. Removed FIXED fields from both roms.
[HTC ChaCha] qbert456:
Somone told me to try smart keyboard pro, so I have and it works well with a hardware keyboard, options come up as they used to.

Thanks for that tip earlier!
[HTC ChaCha] xd.bx:
Awesome! Since I'm now using the same ro.ril values provided by adlx.xda, it probably fixed this issue for you. Btw, adlx.xda, where did you find there values from?

However I switched to the standard keycodes as used elsewhere in CM7 (Vision, etc.). This means you cannot use the kcm files from stock ROM, but need instead the kl/kcm files that are made for SuperOSR (I think there is a link to these files in the first post).
[HTC ChaCha] Alex C.:
Updated the link in the first post to correctly direct to the whole keypad files instead of QWERTY layout. Users should check the thread and read it thoroughly.
[HTC ChaCha] xd.bx:
Thanks! Btw I made a new thread on the topic of reverse-engineering the libcamera, see http://xdaforums.com/showthread.php?p=19943347
[HTC ChaCha] adlx.xda:
Regarding ro.ril props, I can't remember exactly, but I'd say I took them either from the liberty props or my stock Chacha (spanish) rom, from which I also took the proprietary files btw.

Yep, IIRC I made all the kl/kcm.bin files and published them in a comment, althought I can't remember if I made some more changes to the kl/kcm.bin chacha file since... So try and check with the one I provide for your country/layout and see if it works.
[HTC ChaCha] xd.bx:
Cool, thanks for letting me know :) I'm glad the ro.ril fixed carsten's phone call problem. Btw I'm downloading the CM9 tree as of now, will see how hard it is to port it over the ChaCha (I hope not too many hardware-related fixes will be required).
[HTC ChaCha] abraham89:
dude..

i just started using your CM7.2.. Been using it for about a few hours actually..

I've been getting a lot f FC's.. process.core and media server blabla :P

I had flashed the gapps in the OP which is pretty old and meant for 2.3.5 and not 2.3.7..

Could the old gapps be the reason or is it related to something else ??

Could you provide us with an updated gapps file ??
[HTC ChaCha] xd.bx:
Hi,

Thanks for the testing. I haven't tested the gapps yet. Can you tell the precise steps taken to reproduce the force close?

Btw, I do recommend doing a wipe in all cases.
[HTC ChaCha] abraham89:
okay..

just to clear the process, i was running SuperOSR..

backed it up using CWM, wiped all partitions..

installed from zip CM7.2..

started up the phone, works well.. (just one FC andrpid.process.core)

noticed that i had no gapps on it.. so downloaded gapps n flashed it via CWM..

started up system, and there.... lots of FC's couldnt do a proper google sign in because of the massive number of FC's..

Atlast switched back to my SuperOSR backup..

(only because this is my primary phone and i needed my contacts n other stuff)

Will it be possible to provide us a new updated gapps package ??
[HTC ChaCha] xd.bx:
Only Google can ;)

Seriously though, I noticed something wierd when flashing CM 7.2.0: the gapps were still there, which means the update package didn't reformat /system but instead flashed itself over it without refomatting.

I haven't had any FC yet. Please provide a full logcat after reinstall+cache & data wipe, otherwise I can't really help fixing this issue.
[HTC ChaCha] dvfk:
Hey, what about making it an option to have the facebook button work as part of the qwerty keyboard? - like a symbol or an internationall char?

(though the possibility of using it to launch home or an app would still be very very useful - especially since non-physical android (touch) keys below the screen suck :)

---------- Post added at 04:29 AM ---------- Previous post was at 04:24 AM ----------

Also try igCamera - pretty good replacement for the default CM cam.
[HTC ChaCha] qbert456:
On osr I've got a new problem,

When I press green button to go to the dialer app, then try to manually enter nunbers, only the zero key will work-the rest I have to press shift at the same time.

This may of course be down to me using smart keyboard pro but I've not noticed it before as I rarely have to enter a number manually.

Also, this new market....how do I get the old quicker one back does anyone know please?
[HTC ChaCha] Alex C.:
The problem has been reported since first release of both ROMs. Please check OP.

@abraham89 - your FC's are related to contacts syncing. I'm going to look into this but I can't promise anything unfortunately.

Please try one more thing:

- Full wipe, wipe cache, dalvik cache, sd card, everything

- Install the ROM

- Boot the ROM and leave it for 3-4 minutes to finish initializing

- Re-boot into CWM and install Gapps

- Try booting normally afterwards

- Post results
[HTC ChaCha] carstenheuer:
i find the rom is not so smoothly. unfortunately i have still one FC in the phone.apk.

but it is different now! when the proximity sensor is inactive i can talk normally (with the speaker!).

as soon as I take the cell phone to my ear the connection is interrupted. : (
[HTC ChaCha] xd.bx:
Do you have this problem with SuperOSR or CM7? Or both?
[HTC ChaCha] carstenheuer:
oh sorry...i only tested the new CM7-7.2.0 ;)
[HTC ChaCha] adlx.xda:
this issue should be solved. Actually I just tested and I can't reproduce it. It works fine on mine. Can you make a video?
[HTC ChaCha] qbert456:
Fair enough, I didn't see it. My bad
[HTC ChaCha] adlx.xda:
I've published my git repositories: http://xdaforums.com/showthread.php?p=19986382#post19986382
[HTC ChaCha] sathara:
Turn off auto screen rotation to get off market force close ...
[HTC ChaCha] xd.bx:
You sir, are awesome. Congrats on your great work! Any chance you could provide a CM7 build too? I'm thinking I may not have all your fixes in my frameworks/
[HTC ChaCha] carstenheuer:
yes...please...:)
[HTC ChaCha] adlx.xda:
Thanks you, some people help me too, in the deving, testing, bug reporting... Actually it reminds me I should give credit somewhere.

Yep, a priori I've no problem building a CM build, other than getting the right time windows to actually do it (and maybe size/space issue on disk, and DL sources, make the necesary modifications and build lol)... On wednesday I'll leave for holiday until sunday late, so until next monday I won't be able to do anyth.

Btw, what was the camera app that was working as a substitute of Camera.apk?

I tried IgCamera yesterday but it seemed to freeze the same as the Camera.apk. I remember someone once talked about another app, right? Was it working on SuperOSR? Thanks :)

Btw I haven't tried to use Alquez's libcamera yet, xdbg: have you tried? I tried to email him, but he didn't answered me yet.
[HTC ChaCha] adlx.xda:
I have added the list of thinks I changed to this post: http://xdaforums.com/showthread.php?p=20020367#post20020367 . I hope I haven't forgotten anything.
[HTC ChaCha] dvfk:
Have you tried tweaking igCamera resolution ? that's what made it work for me (on Arc S... got a ChaCha too so I'll be tesing soon) but the reso was the all important setting for it to work.

Perhaps a few other settings is worth trying to tweak too.
[HTC ChaCha] xd.bx:
Yes, I've noticed already the preview and capture sizes differed between CM and stock. It would be very cool it the solution is just to tweak these values :)

adlx.xda: the libcamera in alquez's repo won't build. Even if it did, I'm unsure it would cooperate nicely with liboemcamera out of the box.
[HTC ChaCha] adlx.xda:
Thanks, you're saving me some precious time ;)

Indeed, it would be great. Actually, since the beginning I'm thinking it shouldn't be that hard (I mean disassembling-hard), because having a look at all the htc devices in CM tree, none of them have a lot of stuff for camera IIRC.
[HTC ChaCha] xd.bx:
Cool. I'm thinking the libcamera issue is linked to post-processing, in particular HTC sets up a bunch of post-processing parameters not present in AOSP/CM:

$ grep postproc ~/gdb-output-htc.txt
0xa79134ff <__dso_handle+4264623>:	"postproc-active-flash"
0xa791252a <__dso_handle+4260570>:	"postproc-iso"
0xa7912537 <__dso_handle+4260583>:	"postproc-width"
0xa7912546 <__dso_handle+4260598>:	"postproc-height"
0xa7912556 <__dso_handle+4260614>:	"postproc-action-screen"
0xa791256d <__dso_handle+4260637>:	"postproc-YUVoffset"
0xa7912537 <__dso_handle+4260583>:	"postproc-width"
0xa7912546 <__dso_handle+4260598>:	"postproc-height"
0xa791256d <__dso_handle+4260637>:	"postproc-YUVoffset"
0xa7912556 <__dso_handle+4260614>:	"postproc-action-screen"
$ grep postproc ~/gdb-output-cm7.txt
0xa7913485 <__dso_handle+4264501>:	"postproc-active-flash"
[HTC ChaCha] intel007:
Hey guys check the wildfire s cm7 thread now theres seems to be a

F I X !
[HTC ChaCha] xd.bx:
Very cool going to try it over the WE :)
[HTC ChaCha] pongzor:
Hi

I am using SuperOSR and i really like it. The only problem is that the camera is not working. Is there any news for a camera fix already?

Or is there another good rom which has the camera available?

Last question: can i return to stock rom and so how? I need my camera because i am going on a trip and want to make some quick photos for friends to post it on facebook
[HTC ChaCha] adlx.xda:
Thanks for the info :)
[HTC ChaCha] xd.bx:
Hmm I think they used a froyo libcamera.so, which is a simple yet elegant solution.
[HTC ChaCha] intel007:
No problem, hope you guys get it working.

Good luck.
[HTC ChaCha] adlx.xda:
But there's no Froyo rom for the Chacha afaik? !
[HTC ChaCha] xd.bx:
Hi,

The camera libraries in the russian ROM are from liberty. I haven't been able to make it work though.
[HTC ChaCha] qbert456:
The smart keyboard isn't as great as I thought. Anyone have a different solution perhaps please?

Thanks
[HTC ChaCha] abraham89:
Where are the devs ?? Isn't there any work goin on here ??
[HTC ChaCha] adlx.xda:
Here I am, but December isn't a good month for dev, Christmas preparation, and a lot of holiday here. So be patient, or take the source ;)
[HTC ChaCha] abraham89:
I have some free time here.. so.. could you please guide me how to develope a CM9 build from source ?? I think I could help in some way.. and I feel you're the right person to ask for help here ;)
[HTC ChaCha] dvfk:
If you mean software keyboard here's a unique solution - if you like it I'll see what I can do (it's not yet in the market):

http://plus.google.com/photos/115725579600654805836/albums/5632161808112396401