[SCRIPTS] IMEI backup/restore scripts (pds partition)

XIA3

New member
Dec 28, 2013
3
0
0
hello

Hello,
Here are a couple of scripts to backup and restore the device IMEI. They won't help with a lost IMEI. Use them to backup your pds partition that store all the device specific data just in case they are lost. They should also be compatible with any device that has the same partitioning as our Moto G (eg Moto X).

Requirements:
- Device has to be rooted, with USB debugging enabled.
- Motorola fastboot (see attachment).
- ADB installed, minimal or the full ADK.
You can search the forum to find how to meet these requirements or for the terms described in this post beginning here:
http://forum.xda-developers.com/showthread.php?t=2558638

Installation:
Extract imei_scripts.zip (attached) and copy the scripts "imei_backup.bat" and "imei_flash.bat" into the ADB root directory.
Extract mfastboot_only.zip (attached) and copy "mfastboot.exe" into the ADB root directory.

Description/How to use:
These are batch scripts and can be run by double-clicking them or opening a command window from the ADB root. Help is also contained in the scripts. They are run interactively and won't execute anything without the user selecting a choice.

"imei_backup.bat"
Use this script to backup and restore normally using ADB.

"imei_flash.bat"
Use this script to flash the partition as an alternative to the other method using mfastboot while in bootloader mode. The backup, "pds.img" must be located in the ADB directory for the script to run.

The backup is made on the sdcard and is named "pds.img". You'll want to store this elsewhere once backed up. Once done, that's it! You don't need to do anything more. The purpose is as a preventative in the event of the loss of your IMEI. :)

Run the scripts for additional options and help.:angel:

The contents of "imei_backup.bat" (use this script to backup and restore IMEI):
Code:
@ECHO OFF

:: 2014-03-09 script by eastdata @ XDA

:: run script from ADB root
IF NOT EXIST adb.exe (
	ECHO.
	ECHO This script must be run in the ADB root directory.
	ECHO.
	PAUSE
	EXIT /B 0
)

:: set path
SET PATH=.;%PATH%
:: unset android serial if set by dev
SET ANDROID_SERIAL=


:options
CLS
ECHO.
ECHO Moto G and compatible IMEI backup/restore script
ECHO.
ECHO   The device must have root permissions to perform the backup/restore functions in this script (su). USB debugging must be enabled. The backup must be in the sdcard root for restore.
ECHO.
ECHO   The backup will be created in the sdcard directory as "pds.img". The backup can be copied to/from the ADB directory using the script file functions. Use with caution, you won't be prompted again if you choose to restore the pds partition. Store the backup securely either locally or online for later recovery.
ECHO.
ECHO   DISCLAIMER: Use this script only at your own risk!
ECHO.
ECHO Options:-
ECHO.
ECHO   backup:
ECHO         b    - backup pds partition
ECHO.
ECHO   restore:
ECHO         r    - restore pds partition
ECHO.
ECHO   file functions:
ECHO         p    - copy backup from sdcard to pc
ECHO         s    - copy backup from pc to sdcard
ECHO         d    - delete backup from sdcard
ECHO.
ECHO   other:
ECHO         q    - quit
ECHO.
SET /P option="Select an option [b|r|p|s|d|q]: "
ECHO.

SET bad_option=1

:: backup to sdcard
IF /I "%option%" == "b" (
	ECHO Performing backup...
	adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/pds of=/sdcard/pds.img"
	GOTO :proc_end
)

:: restore from sdcard
IF /I "%option%" == "r" (
	ECHO Performing restore...
	adb shell su -c "dd if=/sdcard/pds.img of=/dev/block/platform/msm_sdcc.1/by-name/pds"
	GOTO :proc_end
)

:: copy to pc (pull)
IF /I "%option%" == "p" (
	ECHO Performing copy to pc...
	adb pull /sdcard/pds.img
	GOTO :proc_end
)

:: copy to sdcard (push)
IF /I "%option%" == "s" (
	ECHO Performing copy to sdcard...
	adb push pds.img /sdcard/pds.img
	GOTO :proc_end
)

:: delete from sdcard (rm)
IF /I "%option%" == "d" (
	ECHO Performing delete from sdcard...
	adb shell rm /sdcard/pds.img
	GOTO :proc_end
)

:: quit script
IF /I "%option%" == "q" (
	EXIT /B 0
)

:: bad option
IF %bad_option% == 1 (
	ECHO Bad option.
	GOTO :proc_end
)

:proc_end
ECHO.
PAUSE
GOTO :options
The contents of "imei_flash.bat" (alternative to restore IMEI using mfastboot):
Code:
@ECHO OFF

:: 2014-03-09 script by eastdata @ XDA

:: run script from ADB root
IF NOT EXIST adb.exe (
	ECHO.
	ECHO This script must be run in the ADB root directory.
	ECHO.
	PAUSE
	EXIT /B 0
)

:: require Motorola fastboot
IF NOT EXIST mfastboot.exe (
	ECHO.
	ECHO This script requires Motorola fastboot renamed "mfastboot.exe" in the ADB directory.
	ECHO.
	PAUSE
	EXIT /B 0
)

:: is there an existing backup?
IF NOT EXIST pds.img (
	ECHO.
	ECHO Backup file "pds.img" not found in the ADB directory.
	ECHO.
	PAUSE
	EXIT /B 0
)

:: set path
SET PATH=.;%PATH%
:: unset android serial if set by dev
SET ANDROID_SERIAL=


:options
CLS
ECHO.
ECHO Moto G and compatible IMEI flash script
ECHO.
ECHO   The device must be in bootloader mode to flash the pds partition. Use the device functions to reboot into the bootloader. Use with caution, you won't be prompted again if you choose to flash the pds partition.
ECHO.
ECHO   DISCLAIMER: Use this script only at your own risk!
ECHO.
ECHO Options:-
ECHO.
ECHO   flash:
ECHO         f    - flash pds partition
ECHO.
ECHO   device functions:
ECHO         b    - reboot into bootloader (adb)
ECHO         r    - reboot (mfastboot)
ECHO.
ECHO   other:
ECHO         q    - quit
ECHO.
SET /P option="Select an option [f|b|r|q]: "
ECHO.

SET bad_option=1

:: flash partition
IF /I "%option%" == "f" (

	FOR /F "usebackq tokens=1" %%C in (`mfastboot devices ^| find /C "fastboot"`) DO (

		IF %%C% EQU 1 (
			ECHO Performing flash...
			mfastboot flash pds pds.img
		) ELSE (
			ECHO Device not found or too many devices, reboot device into bootloader or disconnect any other devices.
		)

	)

	GOTO :proc_end
)

:: reboot bootloader
IF /I "%option%" == "b" (
	ECHO Performing reboot into bootloader, please wait for the device to become ready...
	adb reboot-bootloader
	GOTO :proc_end
)

:: reboot
IF /I "%option%" == "r" (
	ECHO Performing reboot, please wait for the device to become ready...
	mfastboot reboot
	GOTO :proc_end
)

:: quit script
IF /I "%option%" == "q" (
	EXIT /B 0
)

:: bad option
IF %bad_option% == 1 (
	ECHO Bad option.
	GOTO :proc_end
)

:proc_end
ECHO.
PAUSE
GOTO :options
DISCLAIMER: I've tried to make the scripts foolproof, but in the event that you lose data or they corrupt/break your phone, I won't be held responsible. That is, use only at your own risk!

I don't know whats wrong but it says device not found..
 

XIA3

New member
Dec 28, 2013
3
0
0
Hello,
Here are a couple of scripts to backup and restore the device IMEI. They won't help with a lost IMEI. Use them to backup your pds partition that store all the device specific data just in case they are lost. They should also be compatible with any device that has the same partitioning as our Moto G (eg Moto X).

Requirements:
- Device has to be rooted, with USB debugging enabled.
- Motorola fastboot (see attachment).
- ADB installed, minimal or the full ADK.
You can search the forum to find how to meet these requirements or for the terms described in this post beginning here:
http://forum.xda-developers.com/showthread.php?t=2558638

Installation:
Extract imei_scripts.zip (attached) and copy the scripts "imei_backup.bat" and "imei_flash.bat" into the ADB root directory.
Extract mfastboot_only.zip (attached) and copy "mfastboot.exe" into the ADB root directory.

Description/How to use:
These are batch scripts and can be run by double-clicking them or opening a command window from the ADB root. Help is also contained in the scripts. They are run interactively and won't execute anything without the user selecting a choice.

"imei_backup.bat"
Use this script to backup and restore normally using ADB.

"imei_flash.bat"
Use this script to flash the partition as an alternative to the other method using mfastboot while in bootloader mode. The backup, "pds.img" must be located in the ADB directory for the script to run.

The backup is made on the sdcard and is named "pds.img". You'll want to store this elsewhere once backed up. Once done, that's it! You don't need to do anything more. The purpose is as a preventative in the event of the loss of your IMEI. :)

Run the scripts for additional options and help.:angel:

The contents of "imei_backup.bat" (use this script to backup and restore IMEI):
Code:
@ECHO OFF

:: 2014-03-09 script by eastdata @ XDA

:: run script from ADB root
IF NOT EXIST adb.exe (
	ECHO.
	ECHO This script must be run in the ADB root directory.
	ECHO.
	PAUSE
	EXIT /B 0
)

:: set path
SET PATH=.;%PATH%
:: unset android serial if set by dev
SET ANDROID_SERIAL=


:options
CLS
ECHO.
ECHO Moto G and compatible IMEI backup/restore script
ECHO.
ECHO   The device must have root permissions to perform the backup/restore functions in this script (su). USB debugging must be enabled. The backup must be in the sdcard root for restore.
ECHO.
ECHO   The backup will be created in the sdcard directory as "pds.img". The backup can be copied to/from the ADB directory using the script file functions. Use with caution, you won't be prompted again if you choose to restore the pds partition. Store the backup securely either locally or online for later recovery.
ECHO.
ECHO   DISCLAIMER: Use this script only at your own risk!
ECHO.
ECHO Options:-
ECHO.
ECHO   backup:
ECHO         b    - backup pds partition
ECHO.
ECHO   restore:
ECHO         r    - restore pds partition
ECHO.
ECHO   file functions:
ECHO         p    - copy backup from sdcard to pc
ECHO         s    - copy backup from pc to sdcard
ECHO         d    - delete backup from sdcard
ECHO.
ECHO   other:
ECHO         q    - quit
ECHO.
SET /P option="Select an option [b|r|p|s|d|q]: "
ECHO.

SET bad_option=1

:: backup to sdcard
IF /I "%option%" == "b" (
	ECHO Performing backup...
	adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/pds of=/sdcard/pds.img"
	GOTO :proc_end
)

:: restore from sdcard
IF /I "%option%" == "r" (
	ECHO Performing restore...
	adb shell su -c "dd if=/sdcard/pds.img of=/dev/block/platform/msm_sdcc.1/by-name/pds"
	GOTO :proc_end
)

:: copy to pc (pull)
IF /I "%option%" == "p" (
	ECHO Performing copy to pc...
	adb pull /sdcard/pds.img
	GOTO :proc_end
)

:: copy to sdcard (push)
IF /I "%option%" == "s" (
	ECHO Performing copy to sdcard...
	adb push pds.img /sdcard/pds.img
	GOTO :proc_end
)

:: delete from sdcard (rm)
IF /I "%option%" == "d" (
	ECHO Performing delete from sdcard...
	adb shell rm /sdcard/pds.img
	GOTO :proc_end
)

:: quit script
IF /I "%option%" == "q" (
	EXIT /B 0
)

:: bad option
IF %bad_option% == 1 (
	ECHO Bad option.
	GOTO :proc_end
)

:proc_end
ECHO.
PAUSE
GOTO :options
The contents of "imei_flash.bat" (alternative to restore IMEI using mfastboot):
Code:
@ECHO OFF

:: 2014-03-09 script by eastdata @ XDA

:: run script from ADB root
IF NOT EXIST adb.exe (
	ECHO.
	ECHO This script must be run in the ADB root directory.
	ECHO.
	PAUSE
	EXIT /B 0
)

:: require Motorola fastboot
IF NOT EXIST mfastboot.exe (
	ECHO.
	ECHO This script requires Motorola fastboot renamed "mfastboot.exe" in the ADB directory.
	ECHO.
	PAUSE
	EXIT /B 0
)

:: is there an existing backup?
IF NOT EXIST pds.img (
	ECHO.
	ECHO Backup file "pds.img" not found in the ADB directory.
	ECHO.
	PAUSE
	EXIT /B 0
)

:: set path
SET PATH=.;%PATH%
:: unset android serial if set by dev
SET ANDROID_SERIAL=


:options
CLS
ECHO.
ECHO Moto G and compatible IMEI flash script
ECHO.
ECHO   The device must be in bootloader mode to flash the pds partition. Use the device functions to reboot into the bootloader. Use with caution, you won't be prompted again if you choose to flash the pds partition.
ECHO.
ECHO   DISCLAIMER: Use this script only at your own risk!
ECHO.
ECHO Options:-
ECHO.
ECHO   flash:
ECHO         f    - flash pds partition
ECHO.
ECHO   device functions:
ECHO         b    - reboot into bootloader (adb)
ECHO         r    - reboot (mfastboot)
ECHO.
ECHO   other:
ECHO         q    - quit
ECHO.
SET /P option="Select an option [f|b|r|q]: "
ECHO.

SET bad_option=1

:: flash partition
IF /I "%option%" == "f" (

	FOR /F "usebackq tokens=1" %%C in (`mfastboot devices ^| find /C "fastboot"`) DO (

		IF %%C% EQU 1 (
			ECHO Performing flash...
			mfastboot flash pds pds.img
		) ELSE (
			ECHO Device not found or too many devices, reboot device into bootloader or disconnect any other devices.
		)

	)

	GOTO :proc_end
)

:: reboot bootloader
IF /I "%option%" == "b" (
	ECHO Performing reboot into bootloader, please wait for the device to become ready...
	adb reboot-bootloader
	GOTO :proc_end
)

:: reboot
IF /I "%option%" == "r" (
	ECHO Performing reboot, please wait for the device to become ready...
	mfastboot reboot
	GOTO :proc_end
)

:: quit script
IF /I "%option%" == "q" (
	EXIT /B 0
)

:: bad option
IF %bad_option% == 1 (
	ECHO Bad option.
	GOTO :proc_end
)

:proc_end
ECHO.
PAUSE
GOTO :options
DISCLAIMER: I've tried to make the scripts foolproof, but in the event that you lose data or they corrupt/break your phone, I won't be held responsible. That is, use only at your own risk!
Hey how to fix system state when its says "system state:error" after enter the command "fastboot oem get\bootinfo"
 

ol_st

Member
Aug 2, 2014
41
6
28
IMEI = 0

I lost my IMEI after erasing the data. At the moment they are equal to 0. Is there any possibility to write them knowing actual IMEI, like applying combination:

Code:
echo 'AT+EGMR=1,7,"IMEI_1"' > /dev/pttycmd1 
echo 'AT+EGMR=1,10,"IMEI_2"' > /dev/pttycmd1
Moto G XT1033 (2 sim), AsiaRetail
 

elixxir

Member
Oct 25, 2007
33
0
0
London, Pune
Can a pds.emmc.win file from TWRP backup be used?

I seem to have erased the IMEI while converting a UK-bought XT1032 to GPE and back.

However, I had backed up the PDS partition earlier via TWRP. However, restoring normally via TWRP hasn't helped and the IMEI remained rather frustratingly blank.

The files have a different extension than listed here (pds.emmc.win and boot.emmc.win instead of pds.img, backed up with TWRP)

I read in some other threads that it is basically the same as the pds.img you have named here. Renaming and trying to restore with your batch files didn't work either, unfortunately.

Hoping others have more success.
 

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,328
0
I'm not aware of anyone that has actually repaired a lost IMEI by restoring the PDS partition. This is however the most likely location where it would be stored and hence why it is suggested you make a backup of it.

XDA user drfr has repaired his IMEI problem by removing SIM and fastboot flashing new firmware. His story here:

I'll assume you ran the command "fastboot erase all"? Think I'll suggest it get added to FAQ to prevent future lost souls haunting this thread.
 
Last edited:
  • Like
Reactions: elixxir

elixxir

Member
Oct 25, 2007
33
0
0
London, Pune
I'm not aware of anyone that has actually repaired a lost IMEI by restoring the PDS partition. This is however the most likely location where it would be stored and hence why it is suggested you make a backup of it.

XDA user drfr has repaired his IMEI problem by removing SIM and fastboot flashing new firmware. His story here:

I'll assume you ran the command "fastboot erase all"? Think I'll suggest it get added to FAQ to prevent future lost souls haunting this thread.

Thanks, you should surely add it to the FAQ!
I'm going to give it a shot, but probably will have to wait until the next full GPE firmware.

GPE 4.4.4 Cannot Be Downgraded to switch back to Stock. No option but to stick to custom ROMs until there is another full firmware image. It's what started this mess for me. Should probably get this added to the FAQ too...
 
Last edited:

Dev Null

Senior Member
Aug 26, 2009
184
30
0
Szeged
I seem to have erased the IMEI while converting a UK-bought XT1032 to GPE and back.

However, I had backed up the PDS partition earlier via TWRP. However, restoring normally via TWRP hasn't helped and the IMEI remained rather frustratingly blank.

The files have a different extension than listed here (pds.emmc.win and boot.emmc.win instead of pds.img, backed up with TWRP)

I read in some other threads that it is basically the same as the pds.img you have named here. Renaming and trying to restore with your batch files didn't work either, unfortunately.

Hoping others have more success.
Exactly the same for me!

It really took some time to get the dev back to life, but it's a mini tablet at the moment, since 0 IMEI is not what a provider accepts.
I see imei = "" in getvar output, and IMEI = 0 in a running system. I have got /pds, but guess not the whole content.

Code:
[email protected]_umts:/pds # ls -lR

.:
drwxr-xr-x mot_pwric mot_pwric          2014-08-08 03:49 batt_health
drwxr-xr-x mot_tcmd bluetooth          1969-12-31 20:01 bt
drwxr-sr-x mot_tcmd camera            1969-12-31 20:01 camera
drwxr-xr-x mot_tcmd mot_tcmd          1970-01-01 20:00 factory
drwx------ root     root              2013-05-23 10:01 lost+found
-r-------- root     root            0 1969-12-31 20:01 pds_formatted_v10
drwxr-xr-x mot_tcmd mot_tcmd          1969-12-31 20:02 public
drwxrws--- mot_tpapi mot_tpapi          2014-02-04 05:37 security
drwxrws--- mot_tcmd mot_whisper          1969-12-31 20:01 whisper
drwxr-xr-x mot_tcmd mot_tcmd          1969-12-31 20:01 wifi
drwxrwxr-x mot_drm  mot_drm           1969-12-31 20:01 wmdrm

./batt_health:
-rw-r----- mot_pwric mot_pwric       32 2014-08-08 03:49 batt-0123456789abcdef_0
-rw-r----- mot_pwric mot_pwric       32 2014-07-29 18:45 batt-0123456789abcdef_1

./bt:

./camera:

./factory:
-rw------- mot_tcmd mot_tcmd      128 1970-01-01 20:01 fti

./lost+found:

./public:
drwxrwx--- mot_atvc shell             1969-12-31 20:02 atvc
drwxr-xr-x mot_accy mot_tcmd          1969-12-31 20:01 battd
drwxr-xr-x radio    radio             1969-12-31 20:01 hiddenmenu
drwx------ system   system            1969-12-31 20:01 locale
drwx------ radio    radio             1969-12-31 20:02 omadm
drwxrwx--- system   mot_tcmd          2014-04-15 13:14 svcs

./public/atvc:

./public/battd:

./public/hiddenmenu:
drwxrwxr-x system   mot_tcmd          1969-12-31 20:01 data

./public/hiddenmenu/data:

./public/locale:

./public/omadm:

./public/svcs:
-rw-rw---- u0_a0    mot_tcmd        8 2014-04-15 13:14 activation_date

./security:
-rw-rw-r-- mot_tcmd mot_tpapi     1952 2014-02-04 05:37 iprm.dat
-rw-rw-r-- mot_tcmd mot_tpapi      608 2014-02-04 05:37 keymaptable.dat

./whisper:
drwx------ mot_whisper mot_whisper          1969-12-31 20:01 whisper_only

./whisper/whisper_only:

./wifi:

./wmdrm:

My last hope is the full 4.4.4 GPE factory image as well, but not really sure it will help.

Official service point to restore the factory image together with IMEI? Theres no such thing here in Hungary, if you live in a better place, can u please ask one?
 

elixxir

Member
Oct 25, 2007
33
0
0
London, Pune
Exactly the same for me!

It really took some time to get the dev back to life, but it's a mini tablet at the moment, since 0 IMEI is not what a provider accepts.
I see imei = "" in getvar output, and IMEI = 0 in a running system. I have got /pds, but guess not the whole content.

My last hope is the full 4.4.4 GPE factory image as well, but not really sure it will help.

Official service point to restore the factory image together with IMEI? Theres no such thing here in Hungary, if you live in a better place, can u please ask one?


Yup, we are in the same boat here. Also, this is worse than a mini-tablet - Play Store won't connect! I guess it needs the IMEI or some other ID we erased (How to tablets without cellular connections do this??

Pretty sure the service centres will not help, given the device is out of warranty after boot loader unlocking. I'd say, get another phone somewhere, meanwhile.

My later hope was to use this method by drfr (via lost101) to restore new firmware, but I guess that won't be possible for me to do unless there is a full image either.

Also need to find & stop all those threads suggesting a PDS backup to restore IMEI later and request them not to leave people with a false sense of security. It not a working method. I would certainly have been more careful if it were known :|
 

remo0073

Senior Member
May 28, 2014
507
186
0
ITALY
Exactly the same for me!

It really took some time to get the dev back to life, but it's a mini tablet at the moment, since 0 IMEI is not what a provider accepts.
I see imei = "" in getvar output, and IMEI = 0 in a running system. I have got /pds, but guess not the whole content.

Code:
.........

My last hope is the full 4.4.4 GPE factory image as well, but not really sure it will help.

Official service point to restore the factory image together with IMEI? Theres no such thing here in Hungary, if you live in a better place, can u please ask one?
If you want to try, now full factory image of 4.4.4 GPE is out

You can find the download link here

http://forum.xda-developers.com/showpost.php?p=54912538&postcount=366
 

elixxir

Member
Oct 25, 2007
33
0
0
London, Pune
Stock Image flashed properly, still no IMEI

  • Flashed the full GPE 4.4.4, but recovery and boot.img wouldn't flash (Have a XT1032 GB Retail).
  • Full Retail GB 4.4.4 ROM got installed without any errors.
  • Phone boots and Play Store works now. So slightly less of a brick than earlier.
  • BUT still no IMEI.
 

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,328
0
  • Flashed the full GPE 4.4.4, but recovery and boot.img wouldn't flash (Have a XT1032 GB Retail).
  • Full Retail GB 4.4.4 ROM got installed without any errors.
  • Phone boots and Play Store works now. So slightly less of a brick than earlier.
  • BUT still no IMEI.
I think you should be able to flash everything including recovery and boot.img without error. Try the different versions of fastboot in this zip: https://www.androidfilehost.com/?fid=23578570567719065
 
  • Like
Reactions: elixxir

elixxir

Member
Oct 25, 2007
33
0
0
London, Pune
I think you should be able to flash everything including recovery and boot.img without error. Try the different versions of fastboot in this zip: https://www.androidfilehost.com/?fid=23578570567719065
Thanks

The GPE versions (of boot.img & recovery.img) won't get flashed with any of the fastboot versions (had tried mfastboot earlier too). But both flash successfully from Moto Stock GB Retail (mine being the UK retail model).

I'm giving it up for now, just keeping this Moto G as a mini mini-tablet.
 

Dev Null

Senior Member
Aug 26, 2009
184
30
0
Szeged
Do we actually have a reason now, why people are loosing their pds partition?
More interesting, that pds partition is there, but no IMEI in the phone! How the file structure of this partition should look like?
ls -lRa please!

Very frustrating, it's nearly one month I haven't been able to use my phone for...

Can someone call a Motorola authorized service point nearby to ask if they can restore the IMEI?
We don't have such thing here in Hungary.
 

robin0800

Senior Member
Jan 22, 2012
437
174
0
More interesting, that pds partition is there, but no IMEI in the phone! How the file structure of this partition should look like?
ls -lRa please!

Very frustrating, it's nearly one month I haven't been able to use my phone for...

Can someone call a Motorola authorized service point nearby to ask if they can restore the IMEI?
We don't have such thing here in Hungary.
See the below post it does display OK but don't know if it will rewrite your IMIE

http://forum.xda-developers.com/moto-g/help/how-to-test-restore-lost-imei-imei0-t2860481
 

AnshRosenberg

Senior Member
Oct 9, 2013
84
4
0
Getting error... MORE THAN ONE DEVICE AND EMULATOR.. :eek:
Sent from my XT1033 using XDA Free mobile app
If you have BlueStacks uninstall that.

For me don't work i have a moto x the results of cmd say me the proceses are ok but never make thee pds.img file in the sd :S
sorry for my english xD
 

aschettler

New member
Sep 16, 2014
2
1
0
It's not the PDS partition

It seems to me that the PDS partition is not the partition we should be looking at. After numerous attempts at flashing, reflashing, and flashing some more, I can't restore the MEID on my Boost XT1031. This includes with the PDS backup I created before flashing. I've also noticed that other partitions are erased when the "fastboot erase all" command is issued. I have a feeling it has more to do with the "hob" and "dhob" partitions that are erased during this command than the PDS partition. I would test this theory, but I'm not nearly as skilled as the fine developers here in the XDA forums, nor can I gain access to these locked partitions. Perhaps there are others who could look into this?

There are several key portions in the phone's EFS that are inaccessible as well. No matter what I try, I can not rewrite my MEID. All of the suggested methods simply tell me the NV items that contain the IMEI, ESN, and MEID are read-only, so I'm stuck waiting for the full FOTA image before I can try a complete reflash from the bootloader.
 
  • Like
Reactions: RestlessScreams

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,328
0
Since the 'pds' partition alone clearly isn't enough, maybe this script should include all partitions; excluding kernel (boot), radio (modem), Android (system), Recovery and userdata. All of these dumped are 5mb zipped, 47mb extracted.

Code:
dd if=/dev/block/mmcblk0p3 of=/sdcard/Partitions/DDR.img
dd if=/dev/block/mmcblk0p4 of=/sdcard/Partitions/aboot.img
dd if=/dev/block/mmcblk0p11 of=/sdcard/Partitions/abootBackup.img
dd if=/dev/block/mmcblk0p25 of=/sdcard/Partitions/cid.img
dd if=/dev/block/mmcblk0p28 of=/sdcard/Partitions/clogo.img
dd if=/dev/block/mmcblk0p20 of=/sdcard/Partitions/dhob.img
dd if=/dev/block/mmcblk0p22 of=/sdcard/Partitions/fsc.img
dd if=/dev/block/mmcblk0p21 of=/sdcard/Partitions/fsg.img
dd if=/dev/block/mmcblk0p19 of=/sdcard/Partitions/hob.img
dd if=/dev/block/mmcblk0p35 of=/sdcard/Partitions/kpan.img
dd if=/dev/block/mmcblk0p27 of=/sdcard/Partitions/logo.img
dd if=/dev/block/mmcblk0p9 of=/sdcard/Partitions/logs.img
dd if=/dev/block/mmcblk0p30 of=/sdcard/Partitions/misc.img
dd if=/dev/block/mmcblk0p17 of=/sdcard/Partitions/modemst1.img
dd if=/dev/block/mmcblk0p18 of=/sdcard/Partitions/modemst2.img
dd if=/dev/block/mmcblk0p10 of=/sdcard/Partitions/padA.img
dd if=/dev/block/mmcblk0p16 of=/sdcard/Partitions/padB.img
dd if=/dev/block/mmcblk0p26 of=/sdcard/Partitions/pds.img
dd if=/dev/block/mmcblk0p29 of=/sdcard/Partitions/persist.img
dd if=/dev/block/mmcblk0p5 of=/sdcard/Partitions/rpm.img
dd if=/dev/block/mmcblk0p12 of=/sdcard/Partitions/rpmBackup.img
dd if=/dev/block/mmcblk0p2 of=/sdcard/Partitions/sbl1.img
dd if=/dev/block/mmcblk0p7 of=/sdcard/Partitions/sdi.img
dd if=/dev/block/mmcblk0p14 of=/sdcard/Partitions/sdiBackup.img
dd if=/dev/block/mmcblk0p24 of=/sdcard/Partitions/sp.img
dd if=/dev/block/mmcblk0p23 of=/sdcard/Partitions/ssd.img
dd if=/dev/block/mmcblk0p6 of=/sdcard/Partitions/tz.img
dd if=/dev/block/mmcblk0p13 of=/sdcard/Partitions/tzBackup.img
dd if=/dev/block/mmcblk0p8 of=/sdcard/Partitions/utags.img
dd if=/dev/block/mmcblk0p15 of=/sdcard/Partitions/utagsBackup.img
 
Last edited: