Chosen Solution

i am fixing an iphone 7 for a friend it came with a broken yet fully functional screen and a charging issue, i replace both the screen and the charging port flex, the phone is now stuck in boot loop, but functions perfectly when i remove/unplug the home button(front camera, speaker, sensor all working), i’m pretty sure i didn’t damage it i even looked at it under microscope and couldn’t see any damage… any ideas ?

The iPhone 7/8 series have a very inconvenient bend on the Home Button flex. It’s really easy to tear the flex, either near the logic board connector or at the 90 degree bend before it sneaks underneath the LCD heat shield. You have to be careful when you lift the screen off the first time but also anytime the flexes are connected and you have the device open. The other area that is easily damaged is the connector on the Home Button itself and the opposite connector on the short flex that runs underneath the heat shield. The long and short of it is that there are multiple failure points. You will need to carefully inspect the Home Button and flex to see if there is any damage. Magnification here will help.  Look for tears to the flex or any physical signs of damage. You should also check the connector to insure none of the pins are damage or that there isn’t any debris. Unfortunately, there is no real DIY way to fix a Home Button, only Apple can replace it.