Chosen Solution
Xs max restarts every 3 -4 minutes It started happening when i changed its charging port Any suggestions
You will need to purchase another charge port. It could have been damaged while installing it or it was a cheap aftermarket one. It is best to source one from a reputable supplier or even try and find a store selling OEM ones which are pulled from known working phones. The charge port assemblies have sensors in them. If the sensors are faulty or not integrated properly it will display the symptoms that you are facing.