IPhone 5

* Notice for all iPhone 5 models: Be careful when disconnecting the battery, if you dig in between the connector and shield behind it you can knock off a VERY VERY small resistor, there's many of them and depending on which ones you knock off you can get strange issues like battery percentage misreporting or the phone only working when plugged in.

{| class="wikitable" !Problem!!Solution - When attempting to restore using iTunes, error 4013 is displayed.
 * - Phone displays  error while booting.
 * - Phone displays  error while booting.

The error message


[NAND] _FindFlashMediaAndKeepout:601 physical nand block offset 1 [NAND] start:356 this PROVIDER= flashMedia= [NAND] WMR_Start:149 Apple PPN NAND Driver, Read/Write [NAND] WMR_Start:174 FIL_Init [OK] [NAND] WMR_Open:371 VFL_Open   [OK] [NAND] s_cxt_boot:88 sftl: error, unclean shutdown; adopted 6016 spans [NAND] WMR_Open:420 FTL_Open   [OK] [NAND] _publishServices:642 FTL capabilities: 0x00000001 [NAND] _ppnvflGetStruct:3469 Checking borrowed blocks - count: 23 max_count: 23 [NAND] _fetchBorrowedList:881 number of borrowed blocks 16 █

Possible Fixes
- The error is mostly associated with water damage or bad ribbon cables / connections.

- Some users report that unplugging the front camera, the back camera, the camera flash, the proximity sensor ribbon cable or even the whole display assembly can circumvent the issue. This can allow the device to be used or restored with iTunes.

- If the above methods don't work, removing the compass IC (U15) can allow the phone to boot again. The compass IC is located right next to where the front camera ribbon cable plugs in at the very edge of the PCB. It's hidden below some black adhesive tape (see this video: https://www.youtube.com/watch?v=nc1Thaqn3J8). The device itself will work fine without the chip, but some functions won't be available (compass, screen auto-rotation, maybe other minor things). If the device boots without the chip, installing a new chip may restore the missing functions.


 * }