Yahoo Messenger front camera is working now! :-)

nono240

Senior Member
Jul 2, 2011
61
25
0
Not really sure ! If they mind replying...

Another thing : I was used to use the "camera-id" hack for the Galaxy S before integrating your code, and it worked well. But a friend of mine reported me that since the update, it's front camera wasn't recognized anymore, while it was working before. I looked at your code, and everything seems right about this hack. Any ideas ?
 
  • Like
Reactions: droidrx

welard

Senior Member
May 5, 2009
297
14
0
hi..... could anyone tell me if this will work on htc blackstone running gingerbread 2.3.3? and if it will work on camera app with front face support? thanks....:confused:
 

droidrx

Senior Member
Apr 11, 2011
253
258
0
Toronto
Not really sure ! If they mind replying...

Another thing : I was used to use the "camera-id" hack for the Galaxy S before integrating your code, and it worked well. But a friend of mine reported me that since the update, it's front camera wasn't recognized anymore, while it was working before. I looked at your code, and everything seems right about this hack. Any ideas ?
That was the one I told you before that the seccamera is not working :-D If you look at the fix I posted to the Samsung user, I removed the seccamera and just used the "camera-id" property
 

droidrx

Senior Member
Apr 11, 2011
253
258
0
Toronto
has anyone tried this on LG Optimus Black?I tried the ADB method but it didn't work and I don't know how to copy that com.htc... because with ASTRO it didn't work. I have rooted my phone..thanks for help and I would really love to see this beauty 2 mpx front camera working
I already uploaded the APK versions you can install, no root required as long as you can sideload apps.

hi..... could anyone tell me if this will work on htc blackstone running gingerbread 2.3.3? and if it will work on camera app with front face support? thanks....:confused:
It should work as it uses the standard GB FFC API.
 

welard

Senior Member
May 5, 2009
297
14
0
I already uploaded the APK versions you can install, no root required as long as you can sideload apps.


It should work as it uses the standard GB FFC API.
thank alot for responce.......at the moment i only have back camera working........so with your com.htc.hardware.twinCamDevice.FrontFacingCamera fix will it work with all apps including (visidon applock) or is it just for Yahoo Messenger?......forgive me if im wrong!........its just that im trying to get front camera working and if this fix will do it that would be so so great! thanks for your help in anyway even if i was wrong..........
 

droidrx

Senior Member
Apr 11, 2011
253
258
0
Toronto
Oh ! I didn't understood that the seccamera was raising a false positive ! Great. Would you mind update the original post ?
I already updated the code in the first post (commented the seccamera). The code I posted does not have a check whether the device does really have FFC or not. It is assumed that those who download my mod does have FFC, otherwise they would not need it. Put some checking/validation that the device does actually FFC in your code.

Also, not all devices have the same camera orientation. It would be good (I think) if you can add some configuration in you app that allows users to change the camera rotation.
 

droidrx

Senior Member
Apr 11, 2011
253
258
0
Toronto
thank alot for responce.......at the moment i only have back camera working........so with your com.htc.hardware.twinCamDevice.FrontFacingCamera fix will it work with all apps including (visidon applock) or is it just for Yahoo Messenger?......forgive me if im wrong!........its just that im trying to get front camera working and if this fix will do it that would be so so great! thanks for your help in anyway even if i was wrong..........
This fix is only for YM, since you're using an HTC, my advice is for you to use the APKs as you might have the the com.htc.hardware.twinCamDevice.FrontFacingCamera in your system. But maybe not :D because YM should have worked if you have it. Just verify it so that you won't overwrite a system file. The ADB method will warn you if you have the file existing in your system anyway.

IF visidon applock is using the same logic as the YM (that looks for the jar), it might work.
 

welard

Senior Member
May 5, 2009
297
14
0
This fix is only for YM, since you're using an HTC, my advice is for you to use the APKs as you might have the the com.htc.hardware.twinCamDevice.FrontFacingCamera in your system. But maybe not :D because YM should have worked if you have it. Just verify it so that you won't overwrite a system file. The ADB method will warn you if you have the file existing in your system anyway.

IF visidon applock is using the same logic as the YM (that looks for the jar), it might work.
thanks alot.....
 

nono240

Senior Member
Jul 2, 2011
61
25
0
I uncommented the com.htc... things, but I'm still having some HTC not recognized :

Model : PC36100 (HTC)
Board : supersonic
Device : supersonic
Product : htc_supersonic
Hardware : supersonic

sharpness-max=30
zoom=0
taking-picture-zoom=0
zoom-supported=true
sharpness-min=0
sharpness=10
contrast=5
whitebalance=auto
jpeg-quality=100
preview-format-values=yuv420sp
jpeg-thumbnail-quality=75
preview-format=yuv420sp
preview-size=768x432
focal-length=-1
iso=auto
meter-mode=meter-center
front-camera-mode=mirror
preview-frame-rate-values=15
preview-frame-rate=15
focus-mode-values=auto,infinity
jpeg-thumbnail-width=768
jpeg-thumbnail-size-values=768x576,640x480,512x384,0x0
zoom-ratios=100,114,131,151,174,200
saturation-def=5
preview-size-values=1280x720,800x480,768x432,720x480,640x480,576x432,480x320,400x240,384x288,352x288,320x240,272x272,240x240,240x160,176x144
smart-contrast=off
picture-size-values=1280x1024,1280x960,1280x768,1280x720,640x480,640x384,640x368,480x720,320x240
contrast-min=0
min-exposure-compensation=-4
brightness-min=0
antibanding=auto
taking-picture-zoom-min=0
saturation-min=1
contrast-max=10
vertical-view-angle=-1
taking-picture-zoom-max=0
contrast-def=5
brightness-max=6
horizontal-view-angle=-1
brightness=3
jpeg-thumbnail-height=576
cam-mode=0
focus-mode=auto
sharpness-def=10
front-camera-mode-values=mirror,reverse
picture-format-values=jpeg
saturation-max=10
max-exposure-compensation=4
exposure-compensation=0
exposure-compensation-step=0.5
effect-values=none,mono,negative,solarize,sepia,posterize,aqua
meter-mode-values=meter-average,meter-center,meter-spot
picture-size=1280x1024
max-zoom=5
effect=none
saturation=5
whitebalance-values=auto,incandescent,fluorescent,daylight,cloudy-daylight
picture-format=jpeg
brightness-def=3
iso-values=auto,deblur,100,200,400,800,1250
antibanding-values=off,50hz,60hz,auto
 

droidrx

Senior Member
Apr 11, 2011
253
258
0
Toronto
I'm not sure why but the easiest way to find out is to check the files in the framework directory. If you can't find the exact file that is used to open the FFC, try to baksmali the framework.jar. You might be able to find out there how the front cam is opened.
 

nono240

Senior Member
Jul 2, 2011
61
25
0
I'm not sure why but the easiest way to find out is to check the files in the framework directory. If you can't find the exact file that is used to open the FFC, try to baksmali the framework.jar. You might be able to find out there how the front cam is opened.
The devices are not on my side, unfortunately... Since I already integrated all the <uses-library>, why should I need to pass the jar name to FFCByClass ? Could it be safer to remove them, passing null ?

(btw, thanks for your fast replies)
 

droidrx

Senior Member
Apr 11, 2011
253
258
0
Toronto
The devices are not on my side, unfortunately... Since I already integrated all the <uses-library>, why should I need to pass the jar name to FFCByClass ? Could it be safer to remove them, passing null ?

(btw, thanks for your fast replies)
Ooopps! I'm not sure but yes, that could be a problem. Maybe because you're loading 2 copies of the library and that's why it is confused.


Sent from my MB860 using XDA App
 

acorants

New member
Jul 4, 2011
1
0
0
Thanks for all your work on this!

Tried to install the apks on Droid Charge, but it wouldn't work. Still gave back camera only. Any idea why? Installed fresh & followed directions of installing previous version.
 

welard

Senior Member
May 5, 2009
297
14
0
htc blackstone:

hi there.....ive tryed everything but doesnt seem to work......i forgot to mention that im running gingerbread from sdcard.........i install yahoo but it doesnt show once installed........also does the com.htc.hardware.twincamdevice.jar require file from the modules in order to load front camera?............thanks
 

droidrx

Senior Member
Apr 11, 2011
253
258
0
Toronto
htc blackstone:

hi there.....ive tryed everything but doesnt seem to work......i forgot to mention that im running gingerbread from sdcard.........i install yahoo but it doesnt show once installed........also does the com.htc.hardware.twincamdevice.jar require file from the modules in order to load front camera?............thanks
Which files you installed? The jar files needs files that is usually shipped with the device. For GB, there should be no problem as it's using the 2.3 FFC API.


Sent from my MB860 using XDA App
 

welard

Senior Member
May 5, 2009
297
14
0
Which files you installed? The jar files needs files that is usually shipped with the device. For GB, there should be no problem as it's using the 2.3 FFC API.


Sent from my MB860 using XDA App

I HAVE INSTALLED:
yahoo.imvideo-270.apk AND
com.htc.hardware.twincamdevice.jar
THANKS
 
Last edited: