[TOOL] [May 1] One-Click Backup & Restore EFS on OnePlus One

Search This thread

schubeir

Senior Member
Apr 30, 2011
420
118
Mumbai
This is what I get.
EFS Backup
Press any key to continue . . .
Waiting for OnePlus One
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Backing up EFS...
dd: /storage/sdcard0/modemst1.bin: No such file or directory
dd: /storage/sdcard0/modemst2.bin: No such file or directory
remote object '/storage/sdcard0/modemst1.bin' does not exist
remote object '/storage/sdcard0/modemst2.bin' does not exist
Press any key to continue . . .

what do i do?
 

jovada

New member
Apr 7, 2016
1
0
Same issue:

Waiting for OnePlus One
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

Waiting forever. I've rebooted, tried killing the adb process, installed the latest version of adb through Google's Android SDK, but nothing... It keeps waiting.
 

FloppyTacoes

Member
Jan 27, 2014
5
0
EFS Backup
Press any key to continue . . .
Waiting for OnePlus One
Backing up EFS...
3072+0 records in
3072+0 records out
1572864 bytes transferred in 0.140 secs (11234742 bytes/sec)
3072+0 records in
3072+0 records out
1572864 bytes transferred in 0.128 secs (12288000 bytes/sec)
remote object '/storage/sdcard0/modemst1.bin' does not exist
remote object '/storage/sdcard0/modemst2.bin' does not exist
Press any key to continue . . .

What gives?
 

anurags156

New member
Aug 27, 2016
1
0
Tried to backup my EFS partition using this tool but my computer just hangs at: "Waiting for OnePlus One..."

Any idea how to correct this?

I am facing the same issue. The command prompt displays the message "Waiting for OnePlus One..." endlessly and does not go beyond this. Can someone please help me with this? Thanks in advance.
 

itechy

Senior Member
Oct 13, 2014
163
106
Google Pixel 4a
I get this too running the latest version of Magisk (v6) and the custom supersu that goes with it. ADB is enabled and has worked before.
 

J__

Senior Member
Sep 21, 2010
113
4
This is what I get.
EFS Backup
Press any key to continue . . .
Waiting for OnePlus One
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Backing up EFS...
dd: /storage/sdcard0/modemst1.bin: No such file or directory
dd: /storage/sdcard0/modemst2.bin: No such file or directory
remote object '/storage/sdcard0/modemst1.bin' does not exist
remote object '/storage/sdcard0/modemst2.bin' does not exist
Press any key to continue . . .

what do i do?

same with me... adb working and enabled, restarted it many times but still says no suck file or directory?
 

EagleTG

Member
Dec 10, 2012
9
5
Fixed backup script/batch should look like this:
Code:
@echo EFS Backup
@pause
@echo Waiting for OnePlus One
@adb wait-for-device
@echo Backing up EFS...
@adb shell su -c "dd if=/dev/block/mmcblk0p10 of=/storage/emulated/0/modemst1.bin bs=512"
@adb shell su -c "dd if=/dev/block/mmcblk0p11 of=/storage/emulated/0/modemst2.bin bs=512"
@adb pull /storage/emulated/0/modemst1.bin
@adb pull /storage/emulated/0/modemst2.bin
@pause

And the restore script would be:
Code:
@echo EFS RESTORE
@pause
@echo Waiting for OnePlus One
@adb wait-for-device
@echo Restoring EFS...
@adb push modemst1.bin /storage/emulated/0/modemst1.bin
@adb push modemst2.bin /storage/emulated/0/modemst2.bin
@adb shell su -c "dd if=/storage/emulated/0/modemst1.bin of=/dev/block/mmcblk0p10 bs=512"
@adb shell su -c "dd if=/storage/emulated/0/modemst2.bin of=/dev/block/mmcblk0p11 bs=512"
@pause

Essentially, the /sdcard0 part changes to /emulated/0 in each line of each script.
 
Last edited:

MrBrainstorm

Member
Jan 31, 2017
34
14
Fixed backup script/batch should look like this:
Code:
@echo EFS Backup
@pause
@echo Waiting for OnePlus One
@adb wait-for-device
@echo Backing up EFS...
@adb shell su -c "dd if=/dev/block/mmcblk0p10 of=/storage/emulated/0/modemst1.bin bs=512"
@adb shell su -c "dd if=/dev/block/mmcblk0p11 of=/storage/emulated/0/modemst2.bin bs=512"
@adb pull /storage/emulated/0/modemst1.bin
@adb pull /storage/emulated/0/modemst2.bin
@pause

And the restore script would be:
Code:
@echo EFS RESTORE
@pause
@echo Waiting for OnePlus One
@adb wait-for-device
@echo Restoring EFS...
@adb push modemst1.bin /storage/emulated/0/modemst1.bin
@adb push modemst2.bin /storage/emulated/0/modemst2.bin
@adb shell su -c "dd if=/storage/emulated/0/modemst1.bin of=/dev/block/mmcblk0p10 bs=512"
@adb shell su -c "dd if=/storage/emulated/0/modemst2.bin of=/dev/block/mmcblk0p11 bs=512"
@pause

Essentially, the /sdcard0 part changes to /emulated/0 in each line of each script.
Thanks. Just used to backup my EFS partition. Better safe than sorry later...:)
 

Shinoss11

Member
Dec 5, 2017
6
0
EFS Partition Restore Queries

hello all,

wish are you pretty fine ,
i want ask if the EFS partition restore wipe all data !!!?
and deleting all momery storage !?
and if i restore EFS partition solve my network issue ???

Thanks for your boost :)

yours respectfully,

G.A
 

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    Hey guys just made this for one and all ! :)
    Backup & Restore EFS on your OnePlus One through ADB! :D
    No TWRP Recovery needed! ;)
    UPDATED : MAY 1, 2018

    YOUR PHONE MUST BE ROOTED


    To Backup,
    First you need to enable USB Debigging mode by checking Settings -> Developer Options -> USB Debugging. If Developer Options is not found, go to Settings -> About Phone and tap the build number rapidly 6-7 times till a toast comes up saying 'You're now a developer' (or something like 'Developer Options is enabled'). Go back. Voila! You see 'Developer Options' above About Phone in settings. :) - Thanks to @Heisenberg for notifying!
    Just download the attachment, extract it to a folder, connect your phone to PC through ADB, double click on 'BACKUP EFS.bat'. When it says 'Press any key...' just press any key on your keyboard! You'll see 'modemst1.bin' & 'modemst2.bin' files in the same folder where you extracted the ZIP, make more copies and backup of it! That's your EFS!
    DONE!

    To Restore,
    Connect your phone to PC through ADB, place your 'modemst1.bin' & 'modemst2.bin' in the folder where you extracted the attachment (it should be there if you never moved it after backing up) and double click on 'RESTORE EFS.bat'.​
    DONE!

    Hope this helps someone :)
    3
    Fixed backup script/batch should look like this:
    Code:
    @echo EFS Backup
    @pause
    @echo Waiting for OnePlus One
    @adb wait-for-device
    @echo Backing up EFS...
    @adb shell su -c "dd if=/dev/block/mmcblk0p10 of=/storage/emulated/0/modemst1.bin bs=512"
    @adb shell su -c "dd if=/dev/block/mmcblk0p11 of=/storage/emulated/0/modemst2.bin bs=512"
    @adb pull /storage/emulated/0/modemst1.bin
    @adb pull /storage/emulated/0/modemst2.bin
    @pause

    And the restore script would be:
    Code:
    @echo EFS RESTORE
    @pause
    @echo Waiting for OnePlus One
    @adb wait-for-device
    @echo Restoring EFS...
    @adb push modemst1.bin /storage/emulated/0/modemst1.bin
    @adb push modemst2.bin /storage/emulated/0/modemst2.bin
    @adb shell su -c "dd if=/storage/emulated/0/modemst1.bin of=/dev/block/mmcblk0p10 bs=512"
    @adb shell su -c "dd if=/storage/emulated/0/modemst2.bin of=/dev/block/mmcblk0p11 bs=512"
    @pause

    Essentially, the /sdcard0 part changes to /emulated/0 in each line of each script.
    2
    Great idea. You might want to mention that you need to go into Settings/Developer Options and enable usb/adb debugging first, and to enable Developer Options you need to go into Settings/About Phone and click on Build Number seven or eight times. Also, the screen must be on and phone unlocked for adb to work.
    1
    Did you try it?

    Hey there, do you have any idea if this would work for a secondary from running via multirom? My primary rom COS12 is fine, but my secondary rom (CM11S) is showing with an unknown IMEI and baseband and has no wifi/signal etc. I have tried flashing the CM11s modem again on the primary rom but no luck.

    Never tried dual booting ROMs... (you're talking about that right?). See, as far as the mmc blocks for EFS partition are same, backup and restore should work. Find out what block contains EFS (if it's different for different ROMs while dual booting) and edit my code in BACKUP EFS.bat and RESTORE EFS.bat . You'll figure out it's easy!
    1
    Does this backup everything on the phone ? Including home screen widgets, apps, images, WiFi settings etc ?