Did not work for me
I have same/similar problem - my light comes on and off (all on its own)- stays on for hours killing the battery.
😱
Mine is iPhone 4 (not jailbroken), no water or any other damage, no flashlight app, camera flash off.
Earlier did visit the Apple store the 'Genius' response was - can't diagonse - they offered replacement for $149.
Followed binjunior's steps - Opened the phone and put 'transparent' tape - multiple layers - but as soon as I fix the camera ribbon back - the light comes on (much before closing the case).
🙁
So after few hours of effort - failed
😱, maybe my problem was different. Speaking with the 'mall repair' guys - they say replacing camera can solve the problem.
Now after reassembling the phone - the screen won't come on - even though the phone is working (it rings) and ofcourse the light is still on
😱. Where it is getting power I can't imagine.
😕
Doing this is not as easy it sounds - it is delicate work - you need very tiny 00 screw driver to deal with the tiniest of screws. Putting tiny/thin tape also not easy - cut and stick (glue might be a better idea - but I did not try that). All this when this very bright light is glaring on your face. So if you are not adept at this kind of work (and have the tools) - don't try. (I tried my best - but not good enough)
So probably will feed the beast (upgrade/contract OR

)
😡 🙄 😱