There's a small hole in the SIM card tray. Push either a SIM card eject tool or a paperclip into it.
Press the tool in order to eject the tray. You may need to use some force to do this.
Take the SIM card tray assembly out of the iPhone.
Make sure that the SIM card is in proper orientation (in relation to the tray) when you're placing the SIM card back.
Lift the button assembly cable from its socket on the logic board with a spudger.
Make sure that you lift the connector and not the socket itself. If you lift the socket, you risk breaking the connector completely.
Lift the Lightning connector cable from its socket on the logic board with a spudger.
Make sure that you fold the Lightning connector cable so that it's not in the way of the logic board.
Disconnect the rear-facing camera cable from its socket on the logic board, using the flat end of a spudger.
There are seven screws on the logic board. You need to remove them.
One 2.4 mm Phillips screw
Two 2.3 mm Phillips screws
Four 2.8 mm Phillips screws
Remove all of these with a small flathead screwdriver.
Lift the logic board up so that you can grab it with your fingers. Do this with a plastic opening tool.
Separate the logic board and the rear facing camera only slightly.
The logic board is connected by an antenna cable on the back, so don't remove it immediately.
Turn the logic board toward the battery (similar to turning a page in a book).
Disconnect the antenna cable on the back of the logic board with the flat end of a spudger.
Take the logic board off the iPhone.
Flip the rubber camera cover out of its clip with a pair of tweezers and move it towards the outside of the rear case.
Do not try to remove the cover completely, because it is attached to the rear case. You only need to flip it open.
Disconnect the rear-facing camera cable connector from the logic board with a plastic opening tool.
Pry up only on the connector - not the socket.
Take the rear-facing camera off the rear case.
When you start the reassembling process, make sure that the camera cable is shaped like a “U" so that it can slot in behind the logic board.
In case the rubber camera bumper shifts, replace it before starting to reassemble your iPhone.
There are two 1.6 mm Phillips screws securing the rear-facing camera bracket. You need to remove them.
Push the tip of the spudger into the hole in the battery adhesive tab located near the headphone jack.
Pry the tab up somewhat and unfold the tab from its recess. Do this with the spudger.
Lift the adhesive tab up from the phone.
Separate the two white adhesive strips by cutting the black battery adhesive tab between them.
Pull the tab the furthest in evenly straight up.
Do not twist the tab, but try to keep the adhesive strip as wide and as flat as possible. If the adhesive bunches up, it might tear.
Do not pull the tab against any of the components of the phone. This may damage the adhesive, which would in turn tear the strip.
Carefully pull the tab around the corner of the battery. Make sure you pull evenly.
Separate the tab from the battery once you round the corner, to avoid the sharp corner.
In order to free the strip from the phone, pull it along the side of the battery.