Hello,
I've got a rooted Android device (Motorola Photon Q running stock ICS 4.0.4) which happened to have rear camera broken - specifically - the camera connector on motherboard . Before, all the apps I tried were able to switch on the flashlight to use as a torch. Since the camera went broke, none of them work. When opening stock Camera application, it shows front facing camera view. The switch is grayed out. It used to show an error like "failed to initialize" about back camera before showing front camera view, but it does not anymore, after trying to fix the connector ;) I've written my own application to at least debug it and find out where the problem lays, and tried a few ways to light the flash, but no luck.
The question is:
Does anyone know of any way to bypass the checking of back camera (starting it) and going directly to switching on the flashlight? Or is there any general or device-specific way to enable flashlight without camera working (but plugged in, just a few pins of total 32 are lost)? I can provide any specific logs, files or parts of the ROM
I will be getting another motherboard in a few months probably, but before then, I want to challenge this. As of ideas, I was searching and thinking of either creating sth like DroidLED for my device (however I dont know if such approach is still valid under ICS) or somehow switching hardware addresses of back and front camera, so the front one would act like a back one. Both hard or impossible, but maybe you guys will show me the way ;)
I've got a rooted Android device (Motorola Photon Q running stock ICS 4.0.4) which happened to have rear camera broken - specifically - the camera connector on motherboard . Before, all the apps I tried were able to switch on the flashlight to use as a torch. Since the camera went broke, none of them work. When opening stock Camera application, it shows front facing camera view. The switch is grayed out. It used to show an error like "failed to initialize" about back camera before showing front camera view, but it does not anymore, after trying to fix the connector ;) I've written my own application to at least debug it and find out where the problem lays, and tried a few ways to light the flash, but no luck.
The question is:
Does anyone know of any way to bypass the checking of back camera (starting it) and going directly to switching on the flashlight? Or is there any general or device-specific way to enable flashlight without camera working (but plugged in, just a few pins of total 32 are lost)? I can provide any specific logs, files or parts of the ROM
I will be getting another motherboard in a few months probably, but before then, I want to challenge this. As of ideas, I was searching and thinking of either creating sth like DroidLED for my device (however I dont know if such approach is still valid under ICS) or somehow switching hardware addresses of back and front camera, so the front one would act like a back one. Both hard or impossible, but maybe you guys will show me the way ;)