• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [DEV] WIP CM9 (Camera) [updated 2/23/2013]

With BSydz's build the camera rotation is incorrect on preview then is corrected after you take your first picture.All pictures save with correct rotation tho even the first when the preview isn't correct.Also it shows correct time and date on pictures taken.

As for the theory of the fact that video isn't working is causing the video chat apps to not work it makes sence.But the only reason why I kinda disagree is cause they where working on the 20130127 CM9 build.That's what bugs the hell out of me.If it's not working cause we don't have working video then how did it work before with that same issue.Now the only thing that isn't working with video is that it's not allowing us to record and save a video but we still get a preview.I feel that apps like Skype just use the camera in preview mode to stream the video feed.That is the only way that it would be able to work on one build but not another it seems to me.Now I know that adam is probably tired of me talking about it but it just bugs me you know.It's like your brakes on your car are worn and you replace them but then the brakes don't even work anymore at all lol.(ok that was extreme but it's the only way to compare it)

I have never seen the rotation wrong, I even did a fresh install just a second ago. The cam came up fine the first time.

Well that is the thing, they were working before the camera fixes, and all that was changed was camera stuff. It may be the encoder that is not working and throwing in to a loop. It is not just related to the cam itself, something may be getting lost in translation.

re: rotation issues in PA...

I double-checked that I committed the preview rotation fix, and I did. It was the:
enableMsgType(CAMERA_MSG_PREVIEW_FRAME);

on line 625 of cameraHAL.cpp. If you have that as well, you may want to try changing it to:

enableMsgType(CAMERA_MSG_ALL_MSGS);
Thanks, I don't think I touched the cameraHal, it previews on the first go around fine for me. I have been working on the kernel and now the video record doesn't FC the app, but it still doesn't record. I am getting ready to go on vacation so I'll be away from my rig for a week or so, so I won't be able to contribute very much over the next week. But this should give everybody some error logs to keep them busy. :D

I basically pulled in all msm camera stuff and changed all the video stuff, see the attached screenshot. I was also working on the touchscreen drivers, I have all files from the M410 kernel except bi041p_ts.
Kernel-CM9-PA-Camera-touch-Test1.zip

 
I have never seen the rotation wrong, I even did a fresh install just a second ago. The cam came up fine the first time.

Well that is the thing, they were working before the camera fixes, and all that was changed was camera stuff. It may be the encoder that is not working and throwing in to a loop. It is not just related to the cam itself, something may be getting lost in translation.
It might have did that to me cause I had flashed from the 20130127 CM9 build.Maybe I didn't wipe everything I needed to but I usually do.Anyways thanks for you hard work man.Hope your week away is a vacation ;)
 
It might have did that to me cause I had flashed from the 20130127 CM9 build.Maybe I didn't wipe everything I needed to but I usually do.Anyways thanks for you hard work man.Hope your week away is a vacation ;)
Remember to wipe until everything is clean.
 
Remember to wipe until everything is clean.
Yeah I usually do double wipe on data cache and dalvik cache along with 2 factory resets.Anyways I haven't had any issues with the ROM so I'm assuming I did wipe everything but that there could have been camera residue
 
Remember to wipe until everything is clean.

Long time lurker and usually just hit the "thanks" and "likes"... but I couldn't resist...

...words of wisdom, dsmryder, words of wisdom... :p

Props to all the devs for the awesome work they've put into everything.
 
Why does this phone require so much wiping(3) before a rom install? My optimus v only required one

It was meant as a bathroom joke. I'll tell you the truth, I only factory reset and install the next tester. I see people saying they format various partitions, but I know that the install formats /system, so I don't and the reset formats /data and /cache. I think the dalvik is kept undet /data.

Anyway. I had a moment while I was waiting for a service advisor to pickup his phone.
 
Roaming problem is annoying but its seem to have found a way around It. So far it's working for me but when I leave my wifi on it doesn't go into roaming. Sure it's still an experiment, but if you guys wanna try it give me some feedback to see if it's working that be great.
 
EDIT: Spoke too soon once again, it looks like we do have overlayLib source in cm7, quite a bit different than current cm9 sources, though.

I have tried moving the cm7 overlay into cm9. Unfortunately, I don't think this will ever work. The cm7 overlay depends on frameworks/base/libs/surfaceflinger_client in order to allocate and manage the overlay data structures. This has been completely reworked in cm9, which no longer appears to use surfaceflinger at all. So, I can't tie in camerahal to the cm7 overlay, although I have put it in frameworks/lib/ui and hardware/msm7k/display. That much appears to "work" in that things don't blow up, but there is no preview on the camera, and it can't take pictures.

So right now, I'm done looking at overlays unless someone has a brilliant idea about what we can do for this.
 
Roaming problem also occurs with Paranoid Android. Leaving WiFi on does fix the problem.


I get it on PA but not on CM9. Not sure why one but not the other. Leaving the Wifi on kills the batterylife though.. I got about 7 hours from my battery yesterday before I had to swap it over. I normally can get about 14 hours..

Also, Chrome works on PA but not on CM9. I can get to the menus and everything like that on it, but it won't display a web page. That pane is always completely blank. I've tried uninstalling/reinstalling etc, but nothing can persaude it to run.
 
I get it on PA but not on CM9. Not sure why one but not the other. Leaving the Wifi on kills the batterylife though.. I got about 7 hours from my battery yesterday before I had to swap it over. I normally can get about 14 hours..

Also, Chrome works on PA but not on CM9. I can get to the menus and everything like that on it, but it won't display a web page. That pane is always completely blank. I've tried uninstalling/reinstalling etc, but nothing can persaude it to run.

I had the same problem with chrome in cm10 til the new update that came out a few days ago
 
Why does this phone require so much wiping(3) before a rom install? My optimus v only required one

I only ever did a single wipe between ROMs & never had an issue with my MT, but then I wasn't wiping every day (sometimes several times a day) like some of the devs.

I say stick to the single wipe until you run into an issue...
 
Remember to wipe until everything is clean.

It might have did that to me cause I had flashed from the 20130127 CM9 build.Maybe I didn't wipe everything I needed to but I usually do.Anyways thanks for you hard work man.Hope your week away is a vacation ;)
So I found out why the rotation got all screwy...I took a picture with the camera from side to side.When I closed and came back to take a normal up and down picture it still had the side to side rotation but it saved correctly.Anyways thought that might help cause it wasn't from a bad wipe.
 
I've only noticed one odd thing so far with the rom. My phone shot down after snapping about 8 pictures the other night saying the battery was on 0% even though it was at about 70% at the time. I charged it and did the same thing the next night with the same result. I thought it was odd that the battery would have drained so fast under any conditions, especially since the phone was not warm at all indicating that something was running wild. After about a 5 minute wait the second night, I re-booted and the battery was back up at 70% where it had started, but 3 more pictures and it was shutting down again claiming that the battery was drained. Any thoughts? Do I need to double wipe and re-install the rom? Great job, by the way, this thing is SWEET!! :)
 
Back
Top Bottom