I was looking at how yahoo video plug-in uses the HTC front camera and found out that it calls “com.htc.hardware.twinCamDevice.FrontFacingCamera. getFrontFacingCamera();” to load it. So I baksmali-ed the com.motorola.hardware.frontcamera.jar and changed it to look like the HTC version so YM can use it.
ADB Method (YOU MUST BE ROOTED TO APPLY IT):
1. Extract YMFrontCamADB.zip
2. Connect your device in Debugging mode (Settings -> Applications -> Development -> USB Debugging)
3. Run YMFrontCam.bat and follow the instructions.
4. Close the process for YM plug-in.
5. Make a video call.
YMFrontCamCWM.zip and YMFrontCWMCamRemover.zip can be used for CWM un/installation
NON-ATRIX devices should use the ADB method as the CWM method is specific for Atrix only. If the ADB method doesn't work, download the com.htc.hardware.twinCamDevice.zip, extract com.htc.hardware.twinCamDevice.jar, copy it to your /system/framework and change the permission to 644
2011-05-31 - Updated to support more devices.
Gingerbread devices (using the standard 2.3 front camera API)
Motorola
Samsung
LG
Dell Streak and Streak 7 (Untested)
Huawei (Untested)
Other htc devices without the com.htc.hardware.twinCamDevice.jar (Untested)
Feel free to edit the source and make it work on your device
2011-05-31 - Updated YMFrontCamADB.zip script to fix mount command on other devices. The new script requires busybox (rooted devices should have it anyway)
2011-06-11 -Updated YMFrontCamADB.zip and com.htc.hardware.twinCamDevice.jar to fix the exception in integer "Parameters" values (samsung, dell, lg). Source code FrontFacingCamera.java.zip is updated as well. CWM method NOT updated.
2011-07-03 - After more than 2 months of hiding and distributing the APKs in secrecy, I’m now attaching them in here. I was advised not to post modifications for Google Market APKs here and so I did but as I can see in other threads, everything is allowed.
For a fix that does not need root and ADB stuffs, you can download the APK versions. First you have to uninstall the YM and YM plug-in from the market, install yahoo.im.apk (a must) and choose one among the plugins that suits best your need.
There are 4 versions of the plug-in I made. Some users reported that their devices got the wrong camera orientation (side-ways, or flipped image) and so I made 3 additional versions that add 90, 180 or 270 degrees clockwise to the orientation. It might or might not show the correct orientation on the android device but the transmitted image should be correct. Another thing is that, FFC and back cam doesn’t always have the same orientation so fixing the other might break the orientation of the other; so choose which cam you prefer to use.
ADB Method (YOU MUST BE ROOTED TO APPLY IT):
1. Extract YMFrontCamADB.zip
2. Connect your device in Debugging mode (Settings -> Applications -> Development -> USB Debugging)
3. Run YMFrontCam.bat and follow the instructions.
4. Close the process for YM plug-in.
5. Make a video call.
YMFrontCamCWM.zip and YMFrontCWMCamRemover.zip can be used for CWM un/installation
NON-ATRIX devices should use the ADB method as the CWM method is specific for Atrix only. If the ADB method doesn't work, download the com.htc.hardware.twinCamDevice.zip, extract com.htc.hardware.twinCamDevice.jar, copy it to your /system/framework and change the permission to 644
2011-05-31 - Updated to support more devices.
Gingerbread devices (using the standard 2.3 front camera API)
Motorola
Samsung
LG
Dell Streak and Streak 7 (Untested)
Huawei (Untested)
Other htc devices without the com.htc.hardware.twinCamDevice.jar (Untested)
Feel free to edit the source and make it work on your device
2011-05-31 - Updated YMFrontCamADB.zip script to fix mount command on other devices. The new script requires busybox (rooted devices should have it anyway)
2011-06-11 -Updated YMFrontCamADB.zip and com.htc.hardware.twinCamDevice.jar to fix the exception in integer "Parameters" values (samsung, dell, lg). Source code FrontFacingCamera.java.zip is updated as well. CWM method NOT updated.
2011-07-03 - After more than 2 months of hiding and distributing the APKs in secrecy, I’m now attaching them in here. I was advised not to post modifications for Google Market APKs here and so I did but as I can see in other threads, everything is allowed.
For a fix that does not need root and ADB stuffs, you can download the APK versions. First you have to uninstall the YM and YM plug-in from the market, install yahoo.im.apk (a must) and choose one among the plugins that suits best your need.
There are 4 versions of the plug-in I made. Some users reported that their devices got the wrong camera orientation (side-ways, or flipped image) and so I made 3 additional versions that add 90, 180 or 270 degrees clockwise to the orientation. It might or might not show the correct orientation on the android device but the transmitted image should be correct. Another thing is that, FFC and back cam doesn’t always have the same orientation so fixing the other might break the orientation of the other; so choose which cam you prefer to use.
Attachments
-
257 KB Views: 5,642
-
5.3 KB Views: 1,868
-
2.4 MB Views: 2,885
-
5.9 MB Views: 2,678
-
5.9 MB Views: 1,644
-
5.9 MB Views: 1,916
-
5.9 MB Views: 1,886
-
2.7 KB Views: 1,947
Last edited: