Jump to content


a way to cleanly integrate u8220 eclair libcamera.so into froyo

* * * * * 3 votes

48 replies to this topic

#41
pier11

pier11

    Addict

  • Members
  • PipPipPipPipPip
  • 883 posts
  • Gender:Male
  • Location:New York, USA
  • Devices:T-Mobile Pulse U8220

View Postdr.flo, on 25 January 2012 - 07:33 PM, said:

Slightly off topic - but: replacing system/bin/vold with one of the current CM6 roms version makes sd card work. This rom turned out to also have the wifi reconnection bug and the gps icon bug -> CM6 issues not fixed even though build from newest sources.
met this highlights how to plug unsupported device to CM... Might be useful to double check correct plugging of u8220 to CM6 (?) ... you asked about one day...

Long ago I tried with AOSP but it was far from obvious how to use even prepared u8220 configs...


#42
twrock

twrock

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,588 posts
  • Location:Taiwan
  • Devices:CHT8000 (Huawei U8220)

View Postdr.flo, on 22 January 2012 - 08:11 PM, said:

Status: Functionality of the wrapper
#5
ROM: CM6 TXG mod  (with modified wrapper that links to libui instead of libcamera.so; just to test libbinder part of the wrapper)
photo: no issues
video: no issues
I've read through the thread a few times, trying to understand what all is being said, but since I am not a programmer at any level, some of this is difficult for me to understand. Please help me if you can.

Are you saying that you tested the modifications you made to the libcamera.so and camera.so files in the TXG rom and it solved the camera issues we have been having with all the CM6.1 based roms? If this is correct, then is all I need to do for the next update of the TXG rom is to copy those two files into the rom? Is it that simple?
I'll try that while I await your reply.
(I assume I can get those two files by downloading the rom you link to in the first post and pulling them out.)

Thanks for you work.

Edit: Apparently I really do not understand. I pulled those two files out of the CM7.2 rom Pier uploaded and put them into TXG. (And I replaced the Camera.apk with the original from TomG's port.) The resulting rom build hangs on boot. So any help you can give would be appreciated.

Edited by twrock, 26 January 2012 - 04:46 AM.

Want a quicker answer?
  • Use the search function in the right hand column to search this forum or a particular thread.
  • Click on this link to go to "The Ultimate Pulse Owners Guide" and find your answer there.
  • Rom installation problems? Try this link.
(If you aren't willing to do any of that, don't be surprised if you receive a "harsh" answer from someone.)

#43
dr.flo

dr.flo

    Diehard

  • Members
  • PipPipPipPip
  • 429 posts

View Posttwrock, on 26 January 2012 - 04:05 AM, said:

Are you saying that you tested the modifications you made to the libcamera.so and camera.so files in the TXG rom and it solved the camera issues we have been having with all the CM6.1 based roms?
Not exactly. I was trying to figure out if my wrapper crashes in any environment. So I tried it in eclair which is the most native environment for our camera libs. If it would crash there, it could only be the wrapper because any other things were completely stock. But it didn't crash. So I tried going the way from eclair to gingerbread. Regarding the camera environment, the way is

eclair -> cm6 (all Tom G based roms with partially working camera) -> real froyo -> gingerbread

With regard to camera, your CM6 is not froyo but eclair. That's because it was compiled to act like eclair in certain aspects (libs, heap management; that's the reason these roms do not have libcamera_client and libsurfaceflinger_client by default). Real froyo would be a (CM6) rom compiled without said "eclair emulator" option.

Using the wrapper on eclair or CM6 (Tom G based) does not make sense. It is like having someone translate english into english. I just did that to see if the wrapper passes all function calls correctly (i.e, if it can read and write english if you want). It does. But in that environments, it cannot be expected to modify any functionality. Most likely, taking pictures with your rom just worked because I left the modified camera app untouched.


View Posttwrock, on 26 January 2012 - 04:05 AM, said:

Edit:  Apparently I really do not understand. I pulled those two files out of  the CM7.2 rom Pier uploaded and put them into TXG. (And I replaced the  Camera.apk with the original from TomG's port.) The resulting rom build  hangs on boot. So any help you can give would be appreciated.
That is expected behaviour. Because the wrapper files you extracted are those that expect a real froyo environment. One could say the wrapper is built to translate english into french. For the wrapper to work with your rom, you need to modify camera.so (to let it translate into english instead of french). You can easily do this yourself. Get a hex editor, search for the string libcamera_client.so inside camera.so. Then overwrite 'libcamer' with 'libui.so' at the beginning of that string, and after 'libui.so' you have to add a zero (not '0' on keyboard, but a 0x00 hexadecimal, to terminate the string. Then you get the modified wrapper - but as I already said - I don't expect that to fix any issues.

By the way - without anegins camera app - how many 3MP pictures do I need to take in order to reproduce the crashing bug? Is this like 3 pics or like 30+?

Edited by dr.flo, 26 January 2012 - 08:16 AM.


#44
dr.flo

dr.flo

    Diehard

  • Members
  • PipPipPipPip
  • 429 posts

View Postpier11, on 25 January 2012 - 09:45 PM, said:

met this highlights how to plug unsupported device to CM... Might be useful to double check correct plugging of u8220 to CM6 (?) ... you asked about one day...

Long ago I tried with AOSP but it was far from obvious how to use even prepared u8220 configs...

Thanks - I'll have a look at this.


#45
anarkill

anarkill

    Regular

  • Members
  • PipPip
  • 107 posts
  • Gender:Male
  • Location:Belarus, Gomel
  • Devices:Huawei u8230 CM 7.2 kernel .32
sometimes appears a bug in the Cm7.2 32 kernel and 29 kernel. "Hardware not response" and a black screen on the camera. Helps only reboot.

Edited by anarkill, 26 January 2012 - 10:28 AM.


#46
D-D-

D-D-

    Diehard

  • Members
  • PipPipPipPip
  • 407 posts
  • Gender:Male
  • Devices:T-mobile Pulse
  • Twitter:@boriseto
So i wanted to test this thing and as i can see the orientation freeze bug is back. :/
I do hope that the same thing doesn't happen with the .32


#47
dr.flo

dr.flo

    Diehard

  • Members
  • PipPipPipPip
  • 429 posts

View PostD-D-, on 26 January 2012 - 04:07 PM, said:

So i wanted to test this thing and as i can see the orientation freeze bug is back. :/
I do hope that the same thing doesn't happen with the .32

what exactly is "this thing"? Please clarify as there are at least two roms linked from within this thread...

Edited by dr.flo, 26 January 2012 - 04:23 PM.


#48
D-D-

D-D-

    Diehard

  • Members
  • PipPipPipPip
  • 407 posts
  • Gender:Male
  • Devices:T-mobile Pulse
  • Twitter:@boriseto
Oh sorry. I was referring to rom #1 (the one from this thread, not from the other), the first cm7 rom with integrated camera. After using it for a while, it suddenly got the orientation bug problem. I now wonder if that bug in cm6 is caused by the camera app/lib.


#49
twrock

twrock

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,588 posts
  • Location:Taiwan
  • Devices:CHT8000 (Huawei U8220)

View Postdr.flo, on 26 January 2012 - 08:15 AM, said:

By the way - without anegins camera app - how many 3MP pictures do I need to take in order to reproduce the crashing bug? Is this like 3 pics or like 30+?

If my memory is not too faulty, the second picture would crash the camera. At least that was my experience.

And thanks for the explanation. Yes, that was very helpful and makes sense to me. Looks like Tom did a lot of hacking to get his port to work. And it works quite well, considering how many people are running it as their daily use rom (or some mod of it).

Want a quicker answer?
  • Use the search function in the right hand column to search this forum or a particular thread.
  • Click on this link to go to "The Ultimate Pulse Owners Guide" and find your answer there.
  • Rom installation problems? Try this link.
(If you aren't willing to do any of that, don't be surprised if you receive a "harsh" answer from someone.)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users