Before you begin
This guide will require both opening the Xiaomi Mi 4 and detaching the motherboard. The back cover and battery in the device must be removed first before getting to the cameras on the motherboard so you will need to tackle those first.