Hi, I have this problem where my iPhone 4 thinks its always docked.

So any music/sounds from any apps doesn't come out from the speakers except for ringtones of calls or alarms. I've tried a lot of methods to my sound back, including cleaning the port with brushes, deleted some files with iFile, etc., but to no avail.

I understand that this is most probably a hardware problem where the port may be damaged but is there anyway I could permanently "Disable" my phone's docking function through any jailbreak tweak? If there isn't, would it be a very difficult tweak to produce?