[Nexus 5 Android Development] autoprime:
Nexus 5 Modems

All modems are in .zip and .img format. Flash .zip in custom recovery(TWRP/CWM/etc). Flash .img in bootloader/fastboot.

Fun fact: The D820 and D821 modems have matching md5 sums.

They are the same modem byte for byte

.

This means there are no "D820 modems" or "D821 modems".. there are just "Nexus 5 modems"

And no!! Flashing, for example, a D821 modem to a D820 will NOT give your D820 the D821 LTE bands.

To dump your modem to the root of your internal sdcard:

su

dd if=/dev/block/platform/msm_sdcc.1/by-name/modem of=/sdcard/modem.img

D820

GSM: 850/900/1800/1900 MHz

CDMA: Band Class: 0/1/10

WCDMA: Bands: 1/2/4/5/6/8/19

LTE: Bands: 1/2/4/5/17/19/25/26/41

D821

GSM: 850/900/1800/1900 MHz

WCDMA: Bands: 1/2/4/5/6/8

LTE: Bands: 1/3/5/7/8/20

[See HERE to Enable LTE Bands 3/8 on D820 and LTE Bands 2/4 on D821]

KFS78N (4.4)

M8974A-1.0.25.0.12

AAAAANAZQ1025010

QUALCOMM Incorporated Sept 27 2013

KQS81M (4.4)

M8974A-1.0.25.0.13

AAAAANAZQ1025015

QUALCOMM Incorporated Sept 30 2013

KRT01B (4.4)

M8974A-1.0.25.0.15

AAAAANAZQ1025019

QUALCOMM Incorporated Oct 29 2013

KRT16M (4.4)

M8974A-1.0.25.0.17

AAAAANAZQ1025019

QUALCOMM Incorporated Oct 11 2013

KOT49E (4.4.1)

M8974A-1.0.25.0.23

AAAAANAZQ1025019

QUALCOMM Incorporated Nov 19 2013

KTU84M (4.4.3)

M8974A-2.0.50.1.13

AAAAANAZQ20500017.1

QUALCOMM Incorporated May 7 2014

KTU84P (4.4.4)

M8974A-2.0.50.1.16

AAAAANAZQ20500017.1

QUALCOMM Incorporated Jun 4 2014

KTU84Q (4.4.4 Release 2)

M8974A-2.0.50.1.17

AAAAANAZQ20500017.1

QUALCOMM Incorporated Jun 9 2014

LPV79 (L Preview)

M8974A-2.0.50.2.08

AAAAANAZQ20500018

QUALCOMM Incorporated May 7 2014

LPX13D (L Preview)

M8974A-2.0.50.2.21

AAAAANAZQ20500024

QUALCOMM Incorporated Oct 1 2014

LRX22C (5.0.1)

M8974A-2.0.50.2.22

AAAAANAZQ20500024

QUALCOMM Incorporated Nov 17 2014

LMY47D (5.1)

M8974A-2.0.50.2.25

AAAAANAZQ20500024

QUALCOMM Incorporated Jan 14 2015

LMY48B (5.1.1)

M8974A-2.0.50.2.26

AAAAANAZQ20500024

QUALCOMM Incorporated Mar 26 2015

MRA58K (6.0)

M8974A-2.0.50.2.27

AAAAANAZQ20500024

QUALCOMM Incorporated Jun 24 2015

MMB29K (6.0.1)

M8974A-2.0.50.2.28

AAAAANAZQ20500024

QUALCOMM Incorporated Oct 20 2015

DOWNLOAD MODEMS FROM CODEFIRE HERE
​

EFS Backup

The Nexus 5 has no built in EFS backup partitions. EFS contains things like your MEID or IMEI... your data profiles.. radio settings. The EFS cannot be replaced... it is unique to your phone only... backing up your OWN EFS is highly recommended.

I want to point out... if using TWRP to backup EFS... try to have an original backup and save that off the device somewhere. Down the road you may end up with lots of EFS backups(if you backup via TWRP each time) and somewhere along the line you could mess your EFS up.. perhaps worse over the course of a month. If you get into the habit of only saving your most recent EFS backup... that recent EFS backup may already be partially damaged. I'm not saying don't make frequent backups.. just have the very first one tucked away somewhere.

DO NOT RESTORE EFS BACKUPS TO ANYTHING OTHER THAN THE ORIGINAL PHONE.

Backing up EFS

In TWRP, flash the Nexus5_Flash2BackupEFS.zip linked below. Nexus5_Flash2BackupEFS.zip creates a flashable zip backup of your EFS in /sdcard/EFS_Backup/. Please check to make sure the backup zip worked and actually made a .zip file. If you can't find it under /sdcard/EFS_Backup/... try /data/media/0/EFS_Backup/ instead.

Flashable EFS Backup Zip = HERE

To manually backup EFS:

adb shell
su
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/sdcard/modemst1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/sdcard/modemst2.img

Backup your Nexus5_EFS_Flashable_Restore.zip or EFS partitions somewhere else besides your internal SD!!! Email.. cloud.. PC..

Restoring EFS

To restore your original EFS just boot into recovery and flash the Nexus5_EFS_Flashable_Restore.zip in your /sdcard/EFS_Backup/ folder.

To manually restore EFS:

adb shell
su
dd if=/sdcard/modemst1.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst1
dd if=/sdcard/modemst2.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst2