Evaluation to restore IMEI - Samsung Galaxy SL i9003

Hi Member :fingers-crossed:
Again, the wave of lost of imei seen coming back.
there are still have alot of SL lost the imei and baseband.
Tried hard to find away to repair it, but since....that's not way without the back up still....
At the mean time wait for the beta of CM10.1 or maybe CM10.2, i go back to GB again. Yeah.. it is boring.. so i playing with EFS partition again.
HAH. this time, i get a new info...it is been along time trying to find our what is BML3 about and what is the relationship with STL3, our EFS partition.
i get to know that from I9000 thread, that seen BML3 is about the "mother" of STL3. (sorry for the bad english, i'm not cursing)
why i said that ? cause i do a test on it.
My Test on BML3
1. dd out the BML3 partition. i read the image using Hex Editor, i found the word of nv_data.bin and nv.log inside it.
2. (do not know why i did this), than i dd back the image into the BML3 partition. than my STL3 corrupted, or it can said as it is gone from partition list.
3. so, it cant be mount by the phone.
4. so, you have not imei and baseband
So, if you still haven't doing any flashing of the STL3 or EFS folder from the blank tar templet using odin or any why to put the image in, it is still have possibility that the nv_data.bin or .nv_data.bak still usable. so dd it out and keep safe.
Still remember? i have backup my stl3 partition, so i flash back it using Heimdall-frontend. (Odin not able to flash the dd image, you have to tar it in linux into Odin flash able.)
why i using flashing instead of dd it back, cause i tried, but it fail, cause the STL3 is not mounted.
So, i suspect the lost of imei is not STL3 or EFS folder corrupted, it is the BML3 some how lost link or bad block.
I attach my generic imei of the BML3 and STL3 image
you can try as below method.
AGAIN....STANDARD DISCLAIMER....
Code:
** YOU HAVE TO KNOW WHAT YOU ARE DOING.
** THERE ARE RISK TO YOUR PHONE WHAT EVER YOU TRYING TO FLASH WHAT EVER IN IT.
** IF YOUR POINTING THE FINGER AT ME BECAUSE YOU CHOOSE TO DO IT
** I WILL LOLLLLLLLLLLLLLLLL AT YOU
OK, the instruction
Code:
i'm using Ubuntu as OS and Heimdall and Heimdall-Frontend to flash.
install Heimdall command, and install Heimdall-Frontend for the UI
Download the attachment, and rename it.
1. in adb shell, dd out the BML3 and STL3 for backup
Code:
dd if=/dev/block/bml3 of=/sdcard/bml3.img
dd if=/dev/blcok/stl3 of=/sdcard/stl3.img
2. using my copy of BML3.img, dd it back
Code:
dd if=/sdcard/bml3.img of=/dev/block/bml3
than reboot
3. after the reboot, reboot into download mode, flashing my STL3.img using heimdall-frontend
a. open terminal, key heimdall-frontend
b. in the UI, go to Utilities tab, click Detact Device, makesure the device is detacted.
c. go to Flash tab, in pit, put in the Pit File, untick the repartition
d. Partition, click add than at the Partition Detail, Partition name, choose EFS
e. in File, put in the STL3.img file
f. than Start, wait few min, the phone will reboot it self.
4. after that, you will get generic imei.(atleast i get it)
So now, tried to flash you own STL3 image from just now you dd out.
if you are lucky, you will get back the imei, and if you are very lucky, you will have my imei.(but i think the possibility is very low)
Have fun tying..
~~Old Post~~
CORRECTION
Actually the EFS Pro work great for the Restoring the EFS image, :good:
it is just the stl3 or efs partition did not mounted so the app show error
the correct step to use EFS Pro as follow
1. flash to stock with RFS file system.
2. flash CF-ROOT kernel to root the phone (optional, due to odin flash not need rooted)
3. flash the efs.tar to mount back efs folder
You get back the efs partitional and generic imei
Ahh.. by the way, after flashing the efs.tar, the bluethoot and wifi mac will changed follow the original phone which output the efs.rfs
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi Guys, today I was so boring, so I get my phone efs partition corrupted. YES, I corrupted it purposely.
few item need to prepare
1. your efs backup (nv_data.bak or original nv_data.bin)
2. odin 1.85 only, odin 3.04 got problem
3. stock Froyo and Gb
4. CF-root kernel (i use Bam kernel, thanks to XDA_BAM)
5. efs.tar download herethanks to celica7
6. EFS Pro
Of Couse I have the efs backup.
That’s how I corrupted. I mean the efs folder...
* Flash a stock firmware with EFS clear tick! (Odin 1.85) DXKE1 * everything goes normally.
* Still I having the IMEI. Due to the backup still there
* So, continue to screw it up, flash to GB 2.3.4 DXKP9 and root it with Bam kernel 14fix. Use RE to delete all efs file.
* Still get the generic imei
* still not enough corrupted, continue to screw it, flash again stock firmware dxkp9 with efs clear, but generic imei still there
* flash again bam kernel to root.
* Than do dd if=/sdcard/efs_backup.img of=/dev/block/stl3 to restore the backup efs image.
* Still get the generic imei
* try corrupt it with EFS Pro (sorry dude), just due to the tool having function of format efs folder. But it format efs fail
* chown the efs folder to root, and reboot
* still the system changes it back to radio. (ogh, so hard to corrupt it)
* ok, flash back to stock froyo, and see.
* All right, now I have blank imei or unknown imei
* due to lazy to fine root procedure for Froyo base, I continue to flash GB
* Odin flash pass, but phone boot into 3e recovery and show;
E: failed to mount /efs (invalid argument)
E: check_selective_file:Can't mount /efs
Multi-csc applied failed (NICE:victory:!!)
OK, now time to restore imei :fingers-crossed:
* flash bam kernel to root.
* after flash bam kernel, imei show 004999010640000, it supposed to show unknown imei, due to efs partition is not mounted.
* who care. continue to restore imei using EFS Pro (failed)
* try restore imei with backup img by EFS Pro (FAILED!!):crying:
* NOW, try others method from XDA
* flash efs.tar with ODIN to get back efs mounted
* delete every in the efs folder.(the generic imei file)
* copy your nv_data.bak to efs folder and rename to nv_data.bin
* chmod 700 nv_data.bin
* chown radio nv_data.bin
* chgrp radio nv_data.bin
* reboot
* Guess what next ? I get the imei back

Really nice tutorial buddy But most of the people are not able to restore IMEI because they dont have IMEI backup. I am really looking for such a tutorial where IMEI can be restored without IMEI backup.

its a useful experiment and can help many of us
nice guide

vishal24387 said:
Really nice tutorial buddy But most of the people are not able to restore IMEI because they dont have IMEI backup. I am really looking for such a tutorial where IMEI can be restored without IMEI backup.
Click to expand...
Click to collapse
Yeah it need backup to restore.
But some members did have initially but srew it more worst than lost the last chance to restore.
Most of tham is flashing failed. So the nv_data.bak is still safe. However cant mount stl3, so restoring failed. No even efs pro can restored when stl3 cant mount.
So flashing efs.tar on odin pda is the most imp step. Afthe mounted the efs folder than you have alot of way to restore.
Sent from my GT-I9003 using Tapatalk 2

good guide, very useful to others but to me no luck my IMEI and Baseband is till unknown. im hoping i can borrow nandroid backup for i9003 so i can restore it and repair the IMEI using z3x box

arjun08 said:
good guide, very useful to others but to me no luck my IMEI and Baseband is till unknown. im hoping i can borrow nandroid backup for i9003 so i can restore it and repair the IMEI using z3x box
Click to expand...
Click to collapse
@arjun08
what is the condition of your nv_data.bak or nv_data.bin? is it still the original ?
if yes, im sure this way can help. did you try ?

chongns said:
@arjun08
what is the condition of your nv_data.bak or nv_data.bin? is it still the original ?
if yes, im sure this way can help. did you try ?
Click to expand...
Click to collapse
.nv_core.bak 10/12/2012
.nv_core.bak.md5 10/12/2012
.nv_data.bak 10/12/2012
.nv_data.bak.md5 10/12/2012
.nv_state 11/27/2010
the phone lost its IMEI in november 2012 the .nv files was dated in october 2012 i don't know if it is the original files.

what is the nv_data.bin date?
try below cmd in adb and post the screen out put
adb shell
su
df
to see is your efs folder mounted
edit: something happening on 27/Nov, cause your nv_state changed.
it is very high change to get back imei. backup all those file incase you need to try and error.
you need to do is mount back your efs folder using efs.tar flash unsing odin 1.85
1. flash back to stock file system, just the pit and xxkpe
2. root it with cf-root kernel
3. flash efs.tar
4. install what ever root file manager.
5. check efs folder owner and group, should be radio system in GB stock
6. delete all file in efs folder (including nv_data.bak)
7. copy and rename nv_data.bak (from your backup) to nv_data.bin and set owner and group to radio radio in efs folder
8. set permission to rwx------
9. reboot
Sent from my Galaxy Nexus using Tapatalk 2

chongns said:
what is the nv_data.bin date?
try below cmd in adb and post the screen out put
adb shell
su
df
to see is your efs folder mounted
edit: something happening on 27/Nov, cause your nv_state changed.
it is very high change to get back imei. backup all those file incase you need to try and error.
you need to do is mount back your efs folder using efs.tar flash unsing odin 1.85
1. flash back to stock file system, just the pit and xxkpe
2. root it with cf-root kernel
3. flash efs.tar
4. install what ever root file manager.
5. check efs folder owner and group, should be radio system in GB stock
6. delete all file in efs folder (including nv_data.bak)
7. copy and rename nv_data.bak (from your backup) to nv_data.bin and set owner and group to radio radio in efs folder
8. set permission to rwx------
9. reboot
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
nv_data.bin 10/12/2012
done steps 1-4
confusing im not a pro in this kind of thing,i didn't understand 5, 7 and 8
5. how should i check efs folder owner and group
7. how should i do this, set owner and group to radio radio in efs folder
8. set permission to rwx------ how to change this.. for now i saw rwxrwx--x in efs

arjun08 said:
nv_data.bin 10/12/2012
done steps 1-4
confusing im not a pro in this kind of thing,i didn't understand 5, 7 and 8
5. how should i check efs folder owner and group
7. how should i do this, set owner and group to radio radio in efs folder
8. set permission to rwx------ how to change this.. for now i saw rwxrwx--x in efs
Click to expand...
Click to collapse
you have done step 1 to 4 , did you backup the old nv_data.bak and nv_data.bin
ok, if you have backup the old efs file before you flash efs.tar, than
you can use the terminal type
ls -l
than,
assuming you have root your phone (if not flash cf-root first)
use root explorer to delete all the file in efs folder
copy the original nv_data.bak (the bak file before you flash efs.tar) into the folder and rename it to nv_data.bin
in terminal type below command
su
cd efs
ls -l
chmod 700 nv_data.bin
chown radio nv_data.bin
chgrp radio nv_data.bin
reboot

chongns said:
you have done step 1 to 4 , did you backup the old nv_data.bak and nv_data.bin
ok, if you have backup the old efs file before you flash efs.tar, than
you can use the terminal type
ls -l
than,
assuming you have root your phone (if not flash cf-root first)
use root explorer to delete all the file in efs folder
copy the original nv_data.bak (the bak file before you flash efs.tar) into the folder and rename it to nv_data.bin
in terminal type below command
su
cd efs
ls -l
chmod 700 nv_data.bin
chown radio nv_data.bin
chgrp radio nv_data.bin
reboot
Click to expand...
Click to collapse
im almost done but when i type this
chgrp radio nv_data.bin ------ chgrp: not found
this is the only error i got

try type
chown 1001:radio nv_data.bin
or
chown radio.radio nv_data.bin
Sent from my GT-I9003 using Tapatalk 2

done all, no luck didnt get my IMEI back
i wonder if i put other efs backup from other person the same phone i9003 will that works?

if he or she willing to share with you
Sent from my GT-I9003 using Tapatalk 2

I really dont get it. Err!
Sent from my GT-I9003 using xda premium

Under03Ground said:
I really dont get it. Err!
Sent from my GT-I9003 using xda premium
Click to expand...
Click to collapse
@Under03
check you efs partition in mounted, do the below step in adb shell.
df >/sdcard/df.txt
ls -a -l efs >/sdcard.efs.txt
mount >/sdcard/mount.txt
cat /proc/partitions >/sdcard/cat.txt
noted:
df to show you mounted partition
ls to list out the efs file (including the hidden file)
mount to show all the mount point
cat is to show all the partition list. (efs partition is stl3)
the > text file, it out the result of the command to text file so you can forward it to me to have alook.
attach or forward me the text in reply.

could anyone help me out. my imei n baseband show unknown . i have a very old efs back up taken from efs pro which is nearly 1 gb.i tried restoring it but of no use help me guyzzz.....:crying:

sebastiand95 said:
could anyone help me out. my imei n baseband show unknown . i have a very old efs back up taken from efs pro which is nearly 1 gb.i tried restoring it but of no use help me guyzzz.....:crying:
Click to expand...
Click to collapse
Efs backup size is 6mb. You maybe have wrong backup
Sent from my Galaxy Nexus using Tapatalk 2

chongns said:
Efs backup size is 6mb. You maybe have wrong backup
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
but it is under the name efs backup

@ chongns
Hey buddy I think you were working on creating IMEI using some genuine IMEI. Any progress related to it??

Related

Permanent unlock - set your code to 00000000 - fix no code found?

I can't read french, but the translation site seems to indicate that this hexedit will permanently unlock any phone. My Captivate nv_data.bin matches perfectly.
I just can't translate all the comments and i really want to read what everyone is saying.
Any french speakers out there?
http://forum.frandroid.com/forum/viewtopic.php?id=26052
Thanks to zzyxy for posting this in another thread.
EDIT - changed title and found English Post on XDA.
http://forum.xda-developers.com/showpost.php?p=8182729&postcount=107
Translated by google chrome
Here is how to unlock a phone that has missed its flash Froyo JPC (request for unlock code and displays the correct imei)
New semi automated method available here: http://forum.frandroid.com/forum/viewtopic.php?id=27019
Beware if the imei is not good before you start, it will not be at the end.
This method can also be used to modify the Product Code for those interested
All that was done on'm Android 2.1 since Froyo modifies the files to his liking (I advise to do New JM1, it works very well).
Thank you for everything you read, do not fly the tutorial is very important !!!!! I could not be responsible for those who are mishandling
Before anything else, save the file efs /, we will play with:
http://forum.frandroid.com/forum/viewtopic.php?id=25668
Need to be root, busybox, android sdk available here:
http://developer.android.com/sdk/index.html
(In windows) we decompress the ZIP, it renames the file "android-sdk-windows" to "android" short and placed in c: \ (the name and location to the sdk is placed are important to commands typed by hand later)
Extracting a nv_data.bin:
Plug the phone in usb mode enabled USB debugging
Start => Run => cmd (a DOS window will open)
Tapper to space by:
cd ..
cd ..
cd android
cd tools
adb pull / efs / nv_data.bin
Close the DOS window
The file will appear in the nv_data.bin réperoire c: \ android \ tools.
Edit the file with a hex editor nv_data.bin (EditHexa available in my example here: ... http://www.logitheque.com/logiciels/win a_9903.htm):
188 021 offset (page 3137) to "XEF" (ca will recognize the phone as "naked") (thus change the product code)
Offset 18146E (page 3,083) to "00000000" (ac will put the network unlock code 00000000)
We backup ^ ^
Then we go back in adb ^ ^
Start => Run => cmd (a DOS window will open)
Tapper and point in space by:
cd ..
cd ..
cd android
cd tools
adb shell mkdir / sdcard / efs "
adb push nv_data.bin / sdcard / efs
adb shell
su
mv / efs / .nv_data.bak / efs / .nv_data.bakk
mv / efs/.nv_data.bak.md5 / efs/.nv_data.bakk.md5
rm / efs / nv_data.bin
rm / efs/nv_data.bin.md5
rm / efs/.nv2.bak
rm / efs/.nv2.bak.md5
cp busybox / sdcard / efs / nv_data.bin / efs / nv_data.bin
chmod 755 / efs / nv_data.bin
chown radio.radio / efs / nv_data.bin
If he ever put the radio user does not exist, try "chown 1001:1001 / efs / nv_data.bin" instead and yes for some it is still not the same ....( thank you Froyo JPC / JPH )
There may be errors on. Nv2.bak and md5 (they do not exist at all)
I renamed the. Bak. BAKK to set aside the time everything is finished, they will be erased later.
do: ctrl + c
unplug the phone, remove the battery without turning the phone 30 seconds.
restart (on or before this point we must put the sim)
The network will unlock code: 00000000, it will the code is good but not unlock it anyway. If its not working properly and restart the phone again.
once functional, * # 06 # displays the correct imei
After there are bugs that require reflashing, reflash in New JM1 via Odin with re-partition active (I did not test other firmwares)
Must rooter again (the busybox normally installs with the root) ... and yes again ^ ^
reboot (so the normally nv_data.bin.md5 must have recreated)
Creating the. Bak
plug the phone into USB debugging mode enabled
We return under adb ^ ^
Start => Run => cmd (a DOS window will open)
Tapper and point in space by:
cd ..
cd ..
cd android
cd tools
adb shell
su
rm / efs / .nv_data.bakk
rm / efs/.nv_data.bakk.md5
busybox cp / efs / nv_data.bin / efs / .nv_data.bak
busybox cp / efs/nv_data.bin.md5 / efs/.nv_data.bak.md5
chown radio.radio / efs / .nv_data.bak
chown radio.radio / efs/.nv_data.bak.md5
Ctrl + c
Unplug your phone
and it finally finished your phone is unlocked and working again all operators ... remember to save them now ^ ^
A big thank you to Rickou who brought me on a platter chown radio.radio Chaineau who was missing.
And has Reve40 with whom I studied nv_data.
And Hideki Jis26 who tested the method before it is online.
A remark Hideki:
hideki wrote:
Otherwise I just add details about my case.
So personally I stopped before the stage flashing in JM1 because I had no problem and my bak files were recreated itself at startup.
I tried the following reredémarrer my imei and no problems still, no application code. And like bin files are recreated at each boot from bak, I concluded that my bak was so good .
What greatly simplify the procedure .
This was not the case for me and therefore Jis26 peus be that after the Roma moved to the base, we could have some small variations, I can not say more.
Last edited by helroz (25-09-2010 1:50:37 p.m.)
Thanks for the translation but I found something even better then machine gobbly gook ,
I just found the original post by Helroz - in english on XDA if anyone wants:
http://forum.xda-developers.com/showpost.php?p=8182729&postcount=107
"This method work for galaxy s with damaged nv_data caused by froyo JPC (good imei but unlock code required)
this method is to recreate a new unlock code and allow the phone to unlock with new unlock code
I post this on frandroid with pictures and link for software:
h***://forum.frandroid.com/forum/viewtopic.php?id=26052"
So has anyone tried this method? Is changing the country code "XEF" necessary for unlock? Is that just for changing the product code?
michael.seltzer said:
So has anyone tried this method? Is changing the country code "XEF" necessary for unlock? Is that just for changing the product code?
Click to expand...
Click to collapse
I have yet to try it, but changing the country code is only necessary if you flashed a different international firmware and it changed that.
Ya i flashed to cognition 2.2 so it shouldn't be an issue right?
michael.seltzer said:
Ya i flashed to cognition 2.2 so it shouldn't be an issue right?
Click to expand...
Click to collapse
Not the country code, since you flashed an AT&T build.
when performing the busybox line, I get
cp: write error: No space left on device
Why? I have plently of room on my phone, what is the problem here?
No one has any idea?
Vae Hostilis said:
when performing the busybox line, I get
cp: write error: No space left on device
Why? I have plently of room on my phone, what is the problem here?
Click to expand...
Click to collapse
I ran into this, and i have an answer... took me bit to discover it...
The /efs partition is only about 6MB in size - the nv_data.bin is 2mb. There is a hidden backup file and another file as well that are also about 2mb.
ls -l -a (you can't do ls -la as in linux or unix) will show you hidden files and sizes.
So you probably tried to backup your nv_data.bin in the /efs folder, and then copying a new one over and you ran out of space. Delete the nv_data.bin after you back it up to your SD card, then copy the changed one over.
alphadog00 said:
I ran into this, and i have an answer... took me bit to discover it...
The /efs partition is only about 6MB in size - the nv_data.bin is 2mb. There is a hidden backup file and another file as well that are also about 2mb.
ls -l -a (you can't do ls -la as in linux or unix) will show you hidden files and sizes.
So you probably tried to backup your nv_data.bin in the /efs folder, and then copying a new one over and you ran out of space. Delete the nv_data.bin after you back it up to your SD card, then copy the changed one over.
Click to expand...
Click to collapse
Tried deleting the file in the efs folder, then just copying the file over using root file manager and it still says I don't have enough room. after deleting the file, I have 1.91mb free in that folder. is there anything in there I can toss?
And what does busybox have to do with transfering the file? as in why do i have to include busybox when typing in the command on adb?
Edit: here is the list of files in there in case I have some unnecessary ones.
.android (folder)
---empty
.imei (size: 15)
.nv_data.bakk (2097152)
.nv_data.bakk.md5 (32)
.nv_state (1)
imei (folder)
---bt.text (23)
---mps_code.dat (3)
nv.log (96)
after listing these off, I notice there is a serious math problem here..... how do i have 4.01 mb (according to root file manager) filled?
Vae Hostilis said:
Tried deleting the file in the efs folder, then just copying the file over using root file manager and it still says I don't have enough room. after deleting the file, I have 1.91mb free in that folder. is there anything in there I can toss?
And what does busybox have to do with transfering the file? as in why do i have to include busybox when typing in the command on adb?
Edit: here is the list of files in there in case I have some unnecessary ones.
.android (folder)
---empty
.imei (size: 15)
.nv_data.bakk (2097152)
.nv_data.bakk.md5 (32)
.nv_state (1)
imei (folder)
---bt.text (23)
---mps_code.dat (3)
nv.log (96)
after listing these off, I notice there is a serious math problem here..... how do i have 4.01 mb (according to root file manager) filled?
Click to expand...
Click to collapse
I did all this via ADB shell and i didnt use the busybox command; but i don't see your original nv_dat.bin - that is 2MB. You can delete the bakk file - that was made by some script - i have never seen the OS add 2 K's.
If you want to keep something move it to SD card and then delete from /efs. I know it is the nv_data.bin and .nv_data.bin that are 2MB files - they take up the room in the partition.
Unless you use a terminal and type in the commands - it is hard to tell what the file manager may still be hiding. I haven't used root file manager.
alphadog00 said:
I did all this via ADB shell and i didnt use the busybox command; but i don't see your original nv_dat.bin - that is 2MB. You can delete the bakk file - that was made by some script - i have never seen the OS add 2 K's.
If you want to keep something move it to SD card and then delete from /efs. I know it is the nv_data.bin and .nv_data.bin that are 2MB files - they take up the room in the partition.
Unless you use a terminal and type in the commands - it is hard to tell what the file manager may still be hiding. I haven't used root file manager.
Click to expand...
Click to collapse
I have the .nv_data.bak, the .nv2.bak, and the nv_data.bin in the sdcard folder. I believe the instructions told us to move those out of the efs folder and rename the copies (left in the efs folder) to .bakk instead of .bak, as they were the ones that would be deleted later.
All the files you see, are all the files in there, looking through ADB and the Root File manager app w/ hidden files shown. and the file sizes are not adding up to the total 4 it says I have in there, but I will try deleting the .bakk file and see what happens.
The nv_data.bin is the important one.
With what you listed, you should have about 4mb free, not 4 mb used. If you are in ADB shell you also have the df and du commands to show you how much of the /efs partition is used.
lol. it tells me 4.01mb is used.... sigh.....
Edit: just wiped my phone for the hell of it to see if it fixed anything. All the files are back, safe and sound, and the MATH ADDS UP (Yeay!). I'll try one more time before I give up.
Edit 2: just ordered a replacement device from at&t. I'll just run the Generate Code program on that, hopefully. Thank you for your help!!
So has anyone actually tried this? Does it actually work?
Sent from my SAMSUNG-SGH-I897 using XDA App
How did you get att to replace it?
michael.seltzer said:
So has anyone actually tried this? Does it actually work?
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
It does work. As long as your IMEI is good. (*#06#). Take a good unlocked nv_data.bin - put your IMEI and unlock/unfreeze codes in it; in the right places. Move it your phone and reboot.
so if i just follow the guide exactly i'll be good? Is there a chance that my phone might not boot up? For some reason my phone can't get into download or recovery mode so i don't want to be stuck.
michael.seltzer said:
so if i just follow the guide exactly i'll be good? Is there a chance that my phone might not boot up? For some reason my phone can't get into download or recovery mode so i don't want to be stuck.
Click to expand...
Click to collapse
with a bad nv_data.bin - it should still boot -but I can't guarantee it. Never tried.
Hacking system files, there is always the chance the phone won't boot. AT&T did it with OTA upgrade.... How bad do you need to unlock your phone -that is the question you need to ask yourself.

[Need Help] Galaxy 3 Backup Tool

Hi,
i hope anybody can help me to make a Galaxy 3 Rom Backup Tool.
I made a little script for the German Forum, and it works fine but i can not flash the backupped Rom files.
Can somebody help me how i can push the backupped /data partition in datafs.rfs to the Phone without getting a Bootloop?
Here is a link to the Script http://www.multiupload.com/TAIJ9Z53J7
Sry for my english ^^
Nice work!
Will try ASAP...
And btw your english is good enough!
Ok, translated for you :
Code:
Install Total Commander and connect your Galaxy 3 to your PC in USB debugging mode
Next run Backup.bat
Your backup is finished when the window closes by itself. You can find the data in the folder backup on your SD
Copy the whole folder to your PC
Open the ROM Image.tar in total commander
Now you can flash your backup as One Package in Odin.
WARNING: please mention my name when you upload or translate the tool
Thanks for the code, I was just thinking along the same lines. You can skip the Total commander thing if you'd include something like 7zip commandline which is free. You can then call it from your batch file. Or tar it in the phone itself or is this too slow/bad for SD ?
You pull the files over with adb pull, but instruct to copy them from the SD as well.
As for why it bootloops : need to test it, but will probably wait for a fresh rom.
You can also put it back with dd ?
hmm
with which adb command i can put all 5 files in a flashable .tar file?
and how i can put the whole /data partition from the datafs.rfs in the /data folder and overwrite the files in the data folder?
Hmm, I see it's Busybox responding on my Galaxy, maybe it's not installed by default, but it was included in a custom ROM ?
Code:
BusyBox v1.18.4 (2011-03-20 15:16:04 CDT) multi-call binary.
Usage: tar -[cxtzjamvO] [-X FILE] [-f TARFILE] [-C DIR] [FILE]...
Create, extract, or list files from a tar file
Operation:
c Create
x Extract
t List
Options:
f Name of TARFILE ('-' for stdin/out)
C Change to DIR before operation
v Verbose
z (De)compress using gzip
j (De)compress using bzip2
a (De)compress using lzma
O Extract to stdout
h Follow symlinks
m Don't restore mtime
exclude File to exclude
X File with names to exclude
T File with names to include
You'd have to remount /data r/w to make any changes to it. But if you're dd-ing, it'll talk to the block device directly. Not sure how to clear it though, maybe dd does it by itself. Have a google for linux commands.
hmm ok,
and why i get a bootloop when i want to flash the files with odin?
one more question ^^
how i can pull the complete /data partition to SD card?
And Creating a .tar file with 7zip commandline works, but the File is not flashable.
you can find the info in i9000 forum
http://forum.xda-developers.com/showthread.php?t=943588
http://forum.xda-developers.com/showthread.php?t=960946
http://forum.xda-developers.com/showthread.php?t=965190
Okay i have a 1 click Rom backup now ^^
But its still the problem that i get a bootloop after flashing...
Ok, I tested it and /data was wiped, phone can't mount sd card etc. etc.
tgm28 said:
Ok, I tested it and /data was wiped, phone can't mount sd card etc. etc.
Click to expand...
Click to collapse
Use THIS from HERE.
Quoting deskjeti.
deskjeti said:
Hi,
I made a Backup & Recovery Script in the German Android Hilfe Forum for the Galaxy 3.
The Tool make a flashable Rom with 3 Clicks and Restore the Backup with one Flash and one Click.
The Script restores all Apps, app Data Google Account and Wifi key´s.
How To:
Unzip the zip file wherever you want and plug in your Phone with USB Debugging Mode.
Run the Step1 and wait, after Step1 is finished run Step2 and if Step2 finished Run Step3
In the "Alexgalaxys G3 Recovery v2 Final" Folder now is a CustomRom.tar.
Flash it as One Package.
If the Phone is started plug the Phone in Usb debugging mode and Run the Recovery.bat after it is complete you have to reboot you Phone.
Link: http://www.multiupload.com/NV0CFVYV2I
Click to expand...
Click to collapse
Although I edited the files to just be one click.

[Q] [T] nexus s i9020 scrambled voice calls

Recently, whenever I flash a rom that is not stock, I am having trouble making and receiving phone calls. The first call is all scrambled distorted and subsequent calls are no voice at all. This never used to happen to me at all with any rom. I COMPLETELY deleted everything off my phone via both CWM and ADB shell's parted rm command. I then reflashed the img files (radio, recovery, and the zip) and everything worked fine in ICS Stock. This is a Telus phone. Has anyone dealt with this kind of bug?
Try running CPU at 1GHz (or lower). I found voice distorted if I overclock.
Backup your EFS it's muy importante!
_android_ said:
Try running CPU at 1GHz (or lower). I found voice distorted if I overclock.
Click to expand...
Click to collapse
Well it wasn't overclocking or a radio image issue as I tried both. I can't proove it but I think a custom rom overwrote my /efs partition and essentially made my phone on the network invalid, luckly I was able to find a proper backup of the /efs and reinstall it I just hope this doesn't happen again and I encourage all of you to BACKUP YOUR /EFS PARTITION it's very simple just type adb root, then adb remount then finally adb.exe pull /efs/ boom there it is in your pc.
Well I thought I had the problem licked, turns out for some reason, and I do hope someone knows the answer to this problem, if I flash back to stock 4.0.4,*#06# shows my proper IMEI, if I flash a custom rom (any custom rom) and my IMEI goes back to IMEI: 004999010640000
ethan_hines said:
Well I thought I had the problem licked, turns out for some reason, and I do hope someone knows the answer to this problem, if I flash back to stock 4.0.4,*#06# shows my proper IMEI, if I flash a custom rom (any custom rom) and my IMEI goes back to IMEI: 004999010640000
Click to expand...
Click to collapse
Install your custom rom, then paste back your /efs folder from your backup?
polobunny said:
Install your custom rom, then paste back your /efs folder from your backup?
Click to expand...
Click to collapse
Tried that, didn't work. I don't know maybe it has something to do with the permissions/owner of the files. To make matters worse now that partition is showing signs of corruption but I don't know how to repair it. It is a YAFFS partition.
/dev/block/mtdblock6 /efs yaffs2 rw,nosuid,nodev,noatime 0 0
I got my imei back yeah!!
oh i am so relived
It took me a while to understand how the imei system woks but i think i have the gist of it now. i don't know if this works for other models but it must considering i took information from a multitude of sources to work out a solution here's what I did
Before starting this tricky set of commands please make sure your phone has the following settings:
ROOTED
HAS BUSYBOX INSTALLED
HAS EITHER ROOTEXPLORER OR ADB
YOUR PC HAS A PROPER UNIX TEXT EDITOR (NOTEPAD++ OR JEDIT)
Ensure you have one good copy of nv_data.bin somewhere on the phone. it could be located in either /efs or /data/radio
Ensure you have a nv.log with at least one line that looks somewhat like this:
MD5 fail. orignal md5 'XXXXXXXXXXXXXXXXXXXXXX' computed md5 'XXXXXXXXXXXXXXXXXXXXXXXXX' (rild)
where the X's are a bunch of number and letters.
Copy the good nv_data.bin, nv_data.bin.md5 and nv.log to both the sdcard and then via usb put them on your hard drive in a folder called efsbackup
(use either rootexpoler or adb shell to copy the files to the sdcard first)
Open the nv.log and look for the second sting of lines. after the words computed md5 (the first string is the md5 the phone found and the second string is the md5 it was expecting for. if the md5 it was expecting can't be found, it uses the default IMEI 004999010640000
Open nv_data.bin.m5d with a proper unix text editor (I suggest Notepad++ or jedit) and remove the sting of numbers and letters and replace it with the string from the nv.log (the second string after computed md5) and save the file
Go back to the phone and put the phone into Airplane Mode (this turns off the radio)
Copy the files nv_data.bin and nv_data.bin.m5d back to the sdcard overwirting them
Using either rootexplorer or adb shell copy the nv_data.bin and nv_data.bin.md5 back to the original folder (either /efs or /data/radio (for me it was /data/radio that did the trick))
Using either rootexplorer or adb shell ensure both files have the following attributes Owner:radio Group:radio Owner:RWX Group:R Other:R
Using adb shell type ps (this lists all the running processes) find the one that end with rild and remember the pid
Using adb shell type kill pid# where pid# is the rild process (this restarts the radio)
Go back to the phone and take the phone out of Airplane mode
Reboot the phone
Open up the dialer and dial *#06# (the universal way to get your IMEI it SHOULD be equal to the one written under the battery):good:
If you have any problems please list them below and i will do my best to solve them

EFS Backup from device (without PC) [Update 11Feb14]

EFS Backup from device (without PC)
Why we need EFS backup ?
EFS folder contains some important and some basic info related to our device identity like Wi-Fi address, Bluetooth MAC address and the very main IMEI address (nv_data.bin).
Now if this EFS partition accidently corrupted then your phone’s IMEI number will get erased and you can not make voice call further. This kind of damage is often not accepted by the service center of your respected handset’s company.
Here your backup can only be savior for you
You needs device rooted, Here is guide how to root N7100.
NEW METHOD (Updated 11Feb14)
Install this app and select backup/Restore that's it. (keep USB debugging ON). Also read play store description.
Dr.Ketan EFS Tool N7100
Video guide
OLD METHOD
Backup EFS
1.Install Terminal emulator
2.Open it, you will get ***@android:/$
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3.Now typebelow said command and enter
Code:
su
it will ask superSU permission, grant it (it will ask only if your superSU setting - default permission is set to 'prompt', if you have set to 'grant' it will not ask)
4.you will have now this
[email protected]:/ # (this # symbol suggest it got root access)
5.Now type below mentioned command (case sensitive) and enter (to make this step easy from device, i have attached 5.txt (5i for backup to Int sd card) file at end, just open and select text. later you can paste to emulator to avoid spell mistake)
Code:
dd if=/dev/block/mmcblk0p3 of=/storage/extSdCard/efs.img bs=4096
In case you don't have ExtSdCard and want to make backup to Int Sdcard then command should be like this
Code:
dd if=/dev/block/mmcblk0p3 of=/storage/sdcard/efs.img bs=4096
6.After successfull backup you will find msg as seen below in image, as well you can see 20MB file efs.img on Ext SD card
Now copy efs.img from Ext Sd card to safer place on pC/Laptop/media/online so you can find whenever you need it.
Restore
Make sure you have efs.img which you have got with backup, placed on Ext Sd card
Repeat step 1-4 as said above, and in step 5 you have to give below said command to restore it.(you can copy below command by opening R.txt file (Ri.txt for restoring from int SD )attached at end to avoid spell mistake)
Code:
dd if=/storage/extSdCard/efs.img of=/dev/block/mmcblk0p3 bs=4096
In case you restoring from IntSd card then command should be like this
Code:
dd if=/storage/sdcard/efs.img of=/dev/block/mmcblk0p3 bs=4096
- Reboot device
FOR SOME ROMs like AOSP mounting point is different, so in case above command doesn't work then you need to know mount point. for this do following
Follow first 4 step said above to make backup (upto grant SU permission)
then Type
Code:
ls /storage
This will show mounting point of storage on your device like below shown image.
Here storage mounting point is
extSdCard for Ext SD card
sdcard0 for Int Sd card
So make changes in command accroeding your storage mount point.
Edit 28June13 : Just to report, today i have lost IMEI and got chance to restore with above said method and it work like charm.
Click to expand...
Click to collapse
With all respect for ur great work and effort, but I learned from u last time u helped me...I found the easiest way for the efs story...every phone I use, directly after rooting I install root explorer copy the efs folder to my pc and ext-sdcard...no matter what happened to the phone I just paste the folder back to its place and restart the phonw...and thats it, or u have objection about it? Please let me know
Sent from my GT-N7100 using XDA Premium HD app
That's not good idea, when you copy folder with explorer it will messup permission.
Sent from my GT-N7100 using xda premium
dr.ketan said:
That's not good idea, when you copy folder with explorer it will messup permission.
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
agree
via《t4p4t41k》
in trouble !
dr.ketan said:
That's not good idea, when you copy folder with explorer it will messup permission.
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
Hi there
I am in New Zealand, recently rooted with your help and installed PhilzCWM. Also on your advice, I backed up my EFS.
My problem: just today I realised I cannot send text, or make phone call. I am on X-Note ROM from 3-4 days ago. I am very sure that after installation, I had normal Mobile connectivity and was surprised to I didn't. Not sure if my EFS became corrupted, or other ROM setting is wrong.
My SERVICE STATE says Out of Service
My Mobile NETWORK STATE says disconnected.
My phone number says UNKNOWN
What's weird is
My IMEI lists a long number, assumed correct
So if my EFS partition is corrupted I assume I wouldn't see any IMEI at all.
Far as I know my SIM is activated (I am on a company plan & coworker's phones are normal)
Just now I restored my stock nandroid and .... same thing! No service. So I doubt it's even a modem problem.
Guys I'm screwed, any tips what settings to check etc??
OK update:
I sucked it up and decided to try restoring the EFS image I had earlier created. Mate, it worked! I have network service now.
Thanks to DrKetan. It was only because I read his advice to backup my EFS...and his advice how to restore. Very helpful bloke.
Thanks.
I flashed a ROM yesterday and my imei changed luckily I'd copied the full efs folder to my ext_SD so I just copy and pasted it back and that worked for me once I restarted.
Sent from my GT-N7100 using xda premium
Dr.Ketan thank you for the lovely Guide . I did a backup as per your instructions. I would like to know about the aroma installer which offers a backup option when installing a Rom.I have a backup of the Same . I note that there are two files which is only 268 kb & 40 kb respectively.My question- Does this backup help & if it helps how do we restore it (backup done during aroma installer)
Sent from my GT-N7100 using xda app-developers app
Here said method backup complete partition that's why size is big.
There may be option available in aroma, i have never tried aroma.
Sent from my GT-N7100 using xda premium
I too had the same problem, I then remembered that I had backed up my efs using this method. Thank You Dr.Ketan
Sent from my GT-N7100 using xda premium
I lost a lovely Galaxy Note 2 to a corrupt EFS before I even knew that such a thing could happen to a flasher of roms.
I probably have the most backed up EFS of all time, since that horrific incident.I never knew about this way , I was just using EFS proffesional, but you best be sure so I have used this method too, and uploaded the backup to Dropbox.
Many thanks dr.ketan, so many peoples saviour.
And any one who is thinking, EFS thing won't happen to me....BEWARE!!!
AND JUST DO IT!!!
You guys put back life to this thread, probably I forget even about this thread.
Sent from my GT-N7100 using xda premium
dr.ketan said:
You guys put back life to this thread, probably I forget even about this thread.
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
I came from a Nexus S phone, and flashed a lot of stuff over the years. But never once did the topic of EFS/IMEI come up. It was simply not an issue discussed in that device's XDA forums. So when I upgraded to the Note and joined these forums, I assumed I knew most of the important stuff.
I read your EFS thread and thought....hmm imagine if I ended up with a bricked phone or unusable in some way....I would be mad at myself and out of $$...so I did the backup. Far out, I am fortunate to have done so. People like you do exist in other forums - very helpful and unselfish with their time and expertise; XDA is based on the spirit of such people. Major props to you!
cannot open for read: No such file or directory
dr.ketan said:
EFS Backup from device (without PC)
Why we need EFS backup ?
EFS folder contains some important and some basic info related to our device identity like Wi-Fi address, Bluetooth MAC address and the very main IMEI address (nv_data.bin).
Now if this EFS partition accidently corrupted then your phone’s IMEI number will get erased and you can not make voice call further. This kind of damage is often not accepted by the service center of your respected handset’s company.
Here your backup can only be savior for you
You needs device rooted, Here is guide how to root N7100.
Backup EFS
1.Install Terminal emulator
2.Open it, you will get ***@android:/$
3.Now typebelow said command and enter
Code:
su
it will ask superSU permission, grant it (it will ask only if your superSU setting - default permission is set to 'prompt', if you have set to 'grant' it will not ask)
4.you will have now this
[email protected]:/ # (this # symbol suggest it got root access)
5.Now type below mentioned command (case sensitive) and enter
Code:
dd if=/dev/block/mmcblk0p3 of=/storage/extSdCard/efs.img bs=4096
6.After successfull backup you will find msg as seen below in image, as well you can see 20MB file efs.img on Ext SD card
Now copy efs.img from Ext Sd card to safer place on pC/Laptop/media/online so you can find whenever you need it.
Restore
Make sure you have efs.img which you have got with backup, placed on Ext Sd card
Repeat step 1-4 as said above, and in step 5 you have to give below said command to restore it.
Code:
dd if=/storage/extSdCard/efs.img of=/dev/block/mmcblk0p3 bs=4096
- Reboot device
Click to expand...
Click to collapse
Hi @dr.ketan!
i cant remember if i had backed up my efs.
but just in case, i tried this steps.
i got this message after following the backing up procedure in terminal emulator:
cannot open for read: No such file or directory
what should i do?
im using note 2 n7100.
thank you.
tongueinamow said:
Hi @dr.ketan!
i cant remember if i had backed up my efs.
but just in case, i tried this steps.
i got this message after following the backing up procedure in terminal emulator:
cannot open for read: No such file or directory
what should i do?
im using note 2 n7100.
thank you.
Click to expand...
Click to collapse
Got the same message.. im presuming you must have wrote it wrong. make sure its exactly the way dr ketan has posted. after 2 tries i was succesfull.
Is this method better than doing a nandrod back up using the recovery? Thanks!
tongueinamow said:
Hi @dr.ketan!
i cant remember if i had backed up my efs.
but just in case, i tried this steps.
i got this message after following the backing up procedure in terminal emulator:
cannot open for read: No such file or directory
what should i do?
im using note 2 n7100.
thank you.
Click to expand...
Click to collapse
gnikolakis said:
Got the same message.. im presuming you must have wrote it wrong. make sure its exactly the way dr ketan has posted. after 2 tries i was succesfull.
Click to expand...
Click to collapse
Correct there should be something wrong
rq005 said:
Is this method better than doing a nandrod back up using the recovery? Thanks!
Click to expand...
Click to collapse
Both are different things
Sent from my GT-N7100 using xda premium
gnikolakis said:
Got the same message.. im presuming you must have wrote it wrong. make sure its exactly the way dr ketan has posted. after 2 tries i was succesfull.
Click to expand...
Click to collapse
What you are most likely getting wrong, when no file found or whatever, is,
dd if=/dev/block/mmcblk0p3 of=/storage/extSdCard/efs.img bs=4096
THE BIT AFTER mmcb is NOT a ONE its an L ...so l:cyclops:
dr.ketan said:
Correct there should be something wrong
Both are different things
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
Can you be more specific? I recovered once my EFS using TWRP and worked fine... Maybe you can explain what's so different about. Thanks!
gnikolakis said:
make sure its exactly the way dr ketan has posted.
Click to expand...
Click to collapse
I was putting the S and C from sdcard in small letters and i was getting the same message,now i'm set.

[IMP] [SCRIPTS] IMEI backup scripts for MOTO G /E(all variants) Rooted.

This script creates backup of partitions related to IMEI number. If you have not unlocked your boot-loader then you do not have to worry, you're safe. But read this in case you root someday!
DISCLAIMER:
I am not responsible for any damage caused to your device in any manner, you should be careful while doing anything. Before you proceed please read everything.
DESCRIPTION
The IMEI number is like an identifier to your cellphone for network operators. The phones will not be able to communicate in case IMEI is lost. The IMEI number is generally stored in PDS partition of the EMMC but the Moto g is an exception, there is no physical EFS partition so NV-Items are inaccessible for manipulation which means backing up PDS partition only will not make any sense.
The EFS is created on the fly: the modem reads HOB and DHOB partitions and after manipulations it creates a EFS file-system which is isolated from rest of the system. The modem finds the baseband, MEID, IMEI etc. and reports it to the OS.
The DHOB partition is encrypted and the key used is a PBKFD2 derived key for which the details like passkey, salt and iterations are unknown. HOB partition is XML-formatted and contains encrypted base64 text items. The secret is yet to be discovered.
Reference
http://forum.xda-developers.com/moto-g/help/info-moto-g-imei0-t2925970/post62064474#post62064474
http://forum.xda-developers.com/showthread.php?t=2640677
What does the script do?
This script simply creates the dumps of HOB, DHOB, FSC and PDS partition.
REQUIREMENTS:
A rooted phone is bare minimum and rest depends upon the method you choose. Download the archive one is for Linux and other is for Windows.
Choose any one.
FROM PHONE:-
1. Download and install any “Terminal Emulator” application from App store.
2. Type su and press enter to have superuser privileges.
3. Run these commands one-by-one.
HTML:
su
mkdir /sdcard0/imei_backup
dd if=/dev/block/platform/msm_sdcc.1/by-name/hob" of=/sdcard0/imei_backup/hob.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/dhob" of=/sdcard0/imei_backup/dhob.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/fsc" of=/sdcard0/imei_backup/fsc.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/pds" of=/sdcard0/imei_backup/pds.img
4. Copy imei_backup from the top folder of internal storage or SD-card.
FROM PC:-
1. Enable ROOT for both apps and adb from developer options.
2. Open cmd or terminal hange current location to folder imei_linux or imei_windows extracted from archive.
3. Run the below commands from cmd or terminal.
Windows
Make sure you have Motorola drivers installed (Motorola device manager).
HTML:
imei_backup.bat
Linux
Superuser privileges are necessary.
HTML:
sudo bash imei_backup.sh
or
su -C 'bash imei_backup.sh'
4. Once finished save imei_backup folder to someplace safe. The folder sits in the same folder the commands are run and in phone's internal storage or SD card.
FOR RESTORATION
1. Copy imei_backup folder to /sdcard (both internal or SD-Card in case you are not sure)
2. Open terminal emulator on phone and run these commands, all of them do not miss any. Run all of them twice to be sure.
HTML:
dd if=/sdcard0/imei_backup/hob.img of=/dev/block/platform/msm_sdcc.1/by-name/hob"
dd if=/sdcard0/imei_backup/dhob.img of=/dev/block/platform/msm_sdcc.1/by-name/dhob"
dd if=/sdcard0/imei_backup/fsc.img of=/dev/block/platform/msm_sdcc.1/by-name/fsc"
dd if=/sdcard0/imei_backup/pds.img of=/dev/block/platform/msm_sdcc.1/by-name/pds"
4. Reboot your phone.
How to keep IMEI safe:
1. Do not use incompatible Roms or firmware.
2. Never run these commands.
Don't even try, I have screwed my phone already. Misspelled for safety.
HTML:
Fast-boot erasee all (Don't)
Fast-boot erasee recovery (Don't)
Fast-boot erasee HOB (Don't)
Fast-boot erasee DHOB (Don't)[/COLOR]
Fast-boot erasee earth (Please Don't)
Run any of these commands and your phone turn into a tablet forever.
3. Create backup of the partitions i mentioned using one of the methods.
FAQS:-
Does it work on Dual-Sim or CDMA ?
Yes, it works. It just creates partition dumps, nothing more nothing less. It should work on Moto G (1st and 2nd gen) all variants and Moto E (1st and 2nd).
Is it safe to share my imei_backup folder if anyone asks?
Yes, the content is encrypted and there is no chance of manipulation of IMEI, the NV-ITEMS are written after verification. No two phones can have same IMEI. If it was possible then I wouldn't be so mad or worried or you would not be reading this. The best he could achieve is base-band change and signal but IMEI stays zero. No Cheating!
I have PDS partition backup, why should I care about this?
The PDS partition alone is no good for recovery, there are other partitions which help phone get a working cellular and valid IMEI number, those partition are HOB and DHOB. You can create backup through terminal emulator.
Why should I believe you?
I am a victim and did research on this for like 30 days. I do have a clear idea of what the problem really is. Please refer to mentioned threads for more information.
I have lost my IMEI because of “fast-boot erase all” command, can I get my IMEI back?
Sorry! But there is no working solution at the moment. All you can do right now is either buy a new motherboard or a spare phone to do work. The cure has not been found till now and hopes are really low unless some guy with good cryptography knowledge comes to rescue. So far i only know the problem
Very useful, thanks. Just want to add my experience - actually I did run "fast-boot erasee recovery" once in the past and did lost IMEI, but it was possible to recover it in an easy way. But those other commands seem to be really catastrophic indeed (though I haven´t tried them )
Here´s the original story: http://forum.xda-developers.com/showthread.php?p=52648789
drfr said:
Very useful, thanks. Just want to add my experience - actually I did run "fast-boot erasee recovery" once in the past and did lost IMEI, but it was possible to recover it in an easy way. But those other commands seem to be really catastrophic indeed (though I haven´t tried them )
Here´s the original story: http://forum.xda-developers.com/showthread.php?p=52648789
Click to expand...
Click to collapse
It is always better to be safe than sorry. The thing is if you lose hob and dhob partitions, you are doomed. I am glad to know that your phone is intact.
Script works well - thanks for this.
Well I'm here to ask something related to the problems issued in this thread.
I got a XT1032 with IMEI fully written but, for some reasons I still don't know, the damn phone does not "read" the signal. The bars just stay empty and nothing, not even a full original firmware restore, seems to help.
Now I wonder if the problem is in a non-working modem partition, but I'd see that problem solved when I fully flashed the stock FW.
Is there any solution? I also tried to flash all the european (I'm italian) basebands known to mankind and nothing happens.
Dionysus2389 said:
Well I'm here to ask something related to the problems issued in this thread.
I got a XT1032 with IMEI fully written but, for some reasons I still don't know, the damn phone does not "read" the signal. The bars just stay empty and nothing, not even a full original firmware restore, seems to help.
Now I wonder if the problem is in a non-working modem partition, but I'd see that problem solved when I fully flashed the stock FW.
Is there any solution? I also tried to flash all the european (I'm italian) basebands known to mankind and nothing happens.
Click to expand...
Click to collapse
When you dial *#06# do you see your IMEI number?
PuLKit4xd said:
When you dial *#06# do you see your IMEI number?
Click to expand...
Click to collapse
Yep, the IMEI is there as it is in the phone info. That's why I can't figure out what the heck is wrong with it. I also tried to flash any baseband and still no signal.
Dionysus2389 said:
Well I'm here to ask something related to the problems issued in this thread.
I got a XT1032 with IMEI fully written but, for some reasons I still don't know, the damn phone does not "read" the signal. The bars just stay empty and nothing, not even a full original firmware restore, seems to help.
Now I wonder if the problem is in a non-working modem partition, but I'd see that problem solved when I fully flashed the stock FW.
Is there any solution? I also tried to flash all the european (I'm italian) basebands known to mankind and nothing happens.
Click to expand...
Click to collapse
PuLKit4xd said:
When you dial *#06# do you see your IMEI number?
Click to expand...
Click to collapse
Dionysus2389 said:
Yep, the IMEI is there as it is in the phone info. That's why I can't figure out what the heck is wrong with it. I also tried to flash any baseband and still no signal.
Click to expand...
Click to collapse
Aaaaan then I managed to fix everything. Simply, kitkat european firmwares have some issues with basebands, so I wipe everything and flash via mfastboot the 5.0.2 brazillian stock firmware. Everything is flawless now!
Hi all, thanks for this huge piece of info, very usefull, but i need from you if you have the backup of the files for XT1540 (moto g3 4g).
Cheers
PuLKit4xd said:
This script creates backup of partitions related to IMEI number. If you have not unlocked your boot-loader then you do not have to worry, you're safe. But read this in case you root someday!
DISCLAIMER:
I am not responsible for any damage caused to your device in any manner, you should be careful while doing anything. Before you proceed please read everything.
DESCRIPTION
The IMEI number is like an identifier to your cellphone for network operators. The phones will not be able to communicate in case IMEI is lost. The IMEI number is generally stored in PDS partition of the EMMC but the Moto g is an exception, there is no physical EFS partition so NV-Items are inaccessible for manipulation which means backing up PDS partition only will not make any sense.
The EFS is created on the fly: the modem reads HOB and DHOB partitions and after manipulations it creates a EFS file-system which is isolated from rest of the system. The modem finds the baseband, MEID, IMEI etc. and reports it to the OS.
The DHOB partition is encrypted and the key used is a PBKFD2 derived key for which the details like passkey, salt and iterations are unknown. HOB partition is XML-formatted and contains encrypted base64 text items. The secret is yet to be discovered.
Reference
http://forum.xda-developers.com/moto-g/help/info-moto-g-imei0-t2925970/post62064474#post62064474
http://forum.xda-developers.com/showthread.php?t=2640677
What does the script do?
This script simply creates the dumps of HOB, DHOB, FSC and PDS partition.
REQUIREMENTS:
A rooted phone is bare minimum and rest depends upon the method you choose. Download the archive one is for Linux and other is for Windows.
Choose any one.
FROM PHONE:-
1. Download and install any “Terminal Emulator” application from App store.
2. Type su and press enter to have superuser privileges.
3. Run these commands one-by-one.
HTML:
su
mkdir /sdcard0/imei_backup
dd if=/dev/block/platform/msm_sdcc.1/by-name/hob" of=/sdcard0/imei_backup/hob.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/dhob" of=/sdcard0/imei_backup/dhob.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/fsc" of=/sdcard0/imei_backup/fsc.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/pds" of=/sdcard0/imei_backup/pds.img
4. Copy imei_backup from the top folder of internal storage or SD-card.
FROM PC:-
1. Enable ROOT for both apps and adb from developer options.
2. Open cmd or terminal hange current location to folder imei_linux or imei_windows extracted from archive.
3. Run the below commands from cmd or terminal.
Windows
Make sure you have Motorola drivers installed (Motorola device manager).
HTML:
imei_backup.bat
Linux
Superuser privileges are necessary.
HTML:
sudo bash imei_backup.sh
or
su -C 'bash imei_backup.sh'
4. Once finished save imei_backup folder to someplace safe. The folder sits in the same folder the commands are run and in phone's internal storage or SD card.
FOR RESTORATION
1. Copy imei_backup folder to /sdcard (both internal or SD-Card in case you are not sure)
2. Open terminal emulator on phone and run these commands, all of them do not miss any. Run all of them twice to be sure.
HTML:
dd if=/sdcard0/imei_backup/hob.img of=/dev/block/platform/msm_sdcc.1/by-name/hob"
dd if=/sdcard0/imei_backup/dhob.img of=/dev/block/platform/msm_sdcc.1/by-name/dhob"
dd if=/sdcard0/imei_backup/fsc.img of=/dev/block/platform/msm_sdcc.1/by-name/fsc"
dd if=/sdcard0/imei_backup/pds.img of=/dev/block/platform/msm_sdcc.1/by-name/pds"
4. Reboot your phone.
How to keep IMEI safe:
1. Do not use incompatible Roms or firmware.
2. Never run these commands.
Don't even try, I have screwed my phone already. Misspelled for safety.
HTML:
Fast-boot erasee all (Don't)
Fast-boot erasee recovery (Don't)
Fast-boot erasee HOB (Don't)
Fast-boot erasee DHOB (Don't)[/COLOR]
Fast-boot erasee earth (Please Don't)
Run any of these commands and your phone turn into a tablet forever.
3. Create backup of the partitions i mentioned using one of the methods.
FAQS:-
Does it work on Dual-Sim or CDMA ?
Yes, it works. It just creates partition dumps, nothing more nothing less. It should work on Moto G (1st and 2nd gen) all variants and Moto E (1st and 2nd).
Is it safe to share my imei_backup folder if anyone asks?
Yes, the content is encrypted and there is no chance of manipulation of IMEI, the NV-ITEMS are written after verification. No two phones can have same IMEI. If it was possible then I wouldn't be so mad or worried or you would not be reading this. The best he could achieve is base-band change and signal but IMEI stays zero. No Cheating!
I have PDS partition backup, why should I care about this?
The PDS partition alone is no good for recovery, there are other partitions which help phone get a working cellular and valid IMEI number, those partition are HOB and DHOB. You can create backup through terminal emulator.
Why should I believe you?
I am a victim and did research on this for like 30 days. I do have a clear idea of what the problem really is. Please refer to mentioned threads for more information.
I have lost my IMEI because of “fast-boot erase all” command, can I get my IMEI back?
Sorry! But there is no working solution at the moment. All you can do right now is either buy a new motherboard or a spare phone to do work. The cure has not been found till now and hopes are really low unless some guy with good cryptography knowledge comes to rescue. So far i only know the problem
Click to expand...
Click to collapse
Need help!!
It does not work for me. whenever any command with /sdcard is written, it replies "/sdcard/hob.img :File or directory not found."
Please help.
Thanks in advance : )

Categories

Resources