[MODEM] [EFS] Nexus 5 Flashable Modems and EFS Backup [LMY48B]

Search This thread

autoprime

Recognized Dev / Inactive Recognized Contributor
Jun 23, 2010
2,630
11,875


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:
Code:
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:
Code:
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
 
Last edited:

Aerowinder

Senior Member
Aug 11, 2012
3,322
1,329
Here it is in script format. Not recovery flashable, not directly restorable. Requires busybox.

Code:
echo "";
echo "Creating backup directory: /storage/sdcard0/EFS Backup.";
mkdir -p "/storage/sdcard0/EFS Backup/temp/";
cd "/storage/sdcard0/EFS Backup/temp/";

echo "Commencing backup...";

echo "Copying mmcblk0p12: modemst1";
dd if=/dev/block/mmcblk0p12 of=p12_modemst1.img > /dev/null 2>&1;
echo "Copying mmcblk0p13: modemst2";
dd if=/dev/block/mmcblk0p13 of=p13_modemst2.img > /dev/null 2>&1;

datetime=$(date +'%Y%m%d_%H%M');
echo "Compressing backup (backup_$datetime.tar.gz)...";
tar -chzf "/storage/sdcard0/EFS Backup/backup_$datetime.tar.gz" *;

echo "Cleaning up...";
rm -rf "/storage/sdcard0/EFS Backup/temp/";
echo "Backup complete!";
echo "";
 

pathtologos

Senior Member
Mar 9, 2009
1,800
273
Ft. Lauderdale, FL
So efs isn't getting backed up with regular twrp system, data, boot options checked? I'm guessing we keep the back up separate--just a "just in case" thing, am I right? In general, we should be able to backup, flash, and restore without ever losing efs, correct?

Thanks all.

Nexus 5--That is all.
 

autoprime

Recognized Dev / Inactive Recognized Contributor
Jun 23, 2010
2,630
11,875
Can these be pulled with adb? I wrote a script to dump everything using adb. It should be the same end result, right?

yes, tho id suggest using adb while in recovery and not while the phone is booted if possible.

So efs isn't getting backed up with regular twrp system, data, boot options checked? I'm guessing we keep the back up separate--just a "just in case" thing, am I right? In general, we should be able to backup, flash, and restore without ever losing efs, correct?

Thanks all.

Nexus 5--That is all.

yes it's a just in case thing.. tho suggested if you're flashing stuff around. Never know when it may come in handy.

TWRP should be adding an EFS backup option.. you will soon see an EFS box to check along with the usual Boot, Data, System options.
 

elementaldragon

Senior Member
Feb 21, 2011
1,006
165
So efs isn't getting backed up with regular twrp system, data, boot options checked? I'm guessing we keep the back up separate--just a "just in case" thing, am I right? In general, we should be able to backup, flash, and restore without ever losing efs, correct?

Thanks all.

Nexus 5--That is all.

Yea... essentially just in case it happens. Was a known and fairly common occurrence on the Galaxy S3. Believe the issue was that that the IMEI number and such was stored essentially in an accessible part of storage, and there was a chance that performing a factory reset and flashing a new ROM could have wiped out the IMEI number stored on the phone... resulting in a tedious process of having to go in and manually re-enter it i believe through ADB somehow. It actually happened to my GS3, but thankfully i had actually performed said backup a month or a few prior to it happening, so getting it back was a breeze.
 
  • Like
Reactions: pathtologos

grneyez

Senior Member
Sep 3, 2009
736
119
What's efs?

Sent from my Nexus 5 using Tapatalk


Did you read the OP?

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.
 

casonswag

Senior Member
Aug 31, 2011
4,522
943
Jacksonville
Did you read the OP?

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.

Um i didnt understand it thays why i was asking n was gonna ask do we have to back it up but i see u say recommended

Sent from my Nexus 5 using Tapatalk
 

grneyez

Senior Member
Sep 3, 2009
736
119
I would highly recommend you doing so, its very easy and can save you a lot of headaches if the EFS gets screwed up somehow.

Sent from my Nexus 5 using Tapatalk
 

toxicneo

Senior Member
May 29, 2011
81
0
What is Modems and EFS backup?

A noob question :)

What is flashable Modem and EFS backup means?

Thanks in advance
 

autoprime

Recognized Dev / Inactive Recognized Contributor
Jun 23, 2010
2,630
11,875
So with the backup if we want to go back flash the modem then backup or vise versa?

Sent from my Nexus 5 using Tapatalk

root/unlock bootloader... install twrp.. backup efs... store efs backup off the device somewhere... flash modems/roms/anything you want.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 520


    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:
    Code:
    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:
    Code:
    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
    51
    Codefire/OP updated with new flashable zip and image.

    LRX22C (5.0.1)
    M8974A-2.0.50.2.22
    AAAAANAZQ20500024
    QUALCOMM Incorporated Nov 17 2014
    45
    i extracted the bootloader from the new OTA (KOT49E) update and made a flashable zip :

    new bootloader : HHZ11k (old one was HHZ11d)

    just flashed it for testing, everything works as expected :)

    MD5 : 807f95b809df0630668e10d3ed029306

    SHA-1: 65dbee01a15d6ddd83e54f2d7ebd04bdb383af65
    37
    I made a flasheable zip, just in case.

    https://www.dropbox.com/s/ydfq3zs0v4diqou/NEXUS5_MMB29K_RADIO.zip?dl=0

    Regards

    EDIT: btw, I did not have a great experience with it. Signal got worst and had drops eventually.