Chosen Solution

i repaired a broken iphone 5 that came without any dock connector after i used the dock connector of a donor phone (known to work 100% the phone keeps saying This accessory may not be supported i tried using the common methods such as cleaning the port trying a different battery but it did not fix the problem. is this something board level related? Please let me know!

Most likely an issue with the USB validator ship inside the phone. It’s repairable but not worth it on a 5.