I would like to backup my IMEI and MAC address. How do I do this without Windows? I tried to use Google but all guides assume that the user is using Windows and some MTK backup tool. I know that Samsung phones have a folder called efs which includes all relevant files. Is there a similar folder in Truesmart/MTK? protect_f or protect_s? I could easily backup these through adb.
Yes, you can pull the information using adb.
Sent from my GT-P5110 using Tapatalk 2
Yes, I know that I can pull the contents of the folders /protect_f and /protect_s. I already did that succesfully. However, my actual question is: Do these folders actually contain the relevant IMEI information? I have a hunch that they do but I am not sure. In addition, the bluetooth and wlan MAC addresses are probably located elsewhere. I could of course write the IMEI and MAC addresses down but in that case I would have no way to restore them without Windows. What I am looking for is a backup/restore process which needs only working adb connection and root access.
gentoolkit said:
Yes, I know that I can pull the contents of the folders /protect_f and /protect_s. I already did that succesfully. However, my actual question is: Do these folders actually contain the relevant IMEI information? I have a hunch that they do but I am not sure. In addition, the bluetooth and wlan MAC addresses are probably located elsewhere. I could of course write the IMEI and MAC addresses down but in that case I would have no way to restore them without Windows. What I am looking for is a backup/restore process which needs only working adb connection and root access.
Click to expand...
Click to collapse
Your IMEI is stored in the NVRAM folder.
sent from my Galaxy S5 using Tapatalk
Related
Hello.
I used the ubuntu restore from AdamOutler. It worked like a charm to restore my borked Nook tablet. But for what ever reason it picked up a serial number that doesnt match the one that is registered to me and my tablet. Is there a adb command or something along those lines that i can restore my serial with? I changed the serials via root explorer but it always defaults back to the wrong serial. I know it must be something I did along the line of trying to fix it but it bothers me it doesnt match to my account. It wont let me register it again. Thank you for any help...
markbird1 said:
Hello.
I used the ubuntu restore from AdamOutler. It worked like a charm to restore my borked Nook tablet. But for what ever reason it picked up a serial number that doesnt match the one that is registered to me and my tablet. Is there a adb command or something along those lines that i can restore my serial with? I changed the serials via root explorer but it always defaults back to the wrong serial. I know it must be something I did along the line of trying to fix it but it bothers me it doesnt match to my account. It wont let me register it again. Thank you for any help...
Click to expand...
Click to collapse
Since no one has answered I'll give it a try. The place I find the serial number is
/rom/devconf/SerialNumber it is 16 bytes and permissions are r--r----- or
440. Since you didn't say where you were making the change this may not help.
also for info you will find /system/xbin/setserial hope this limited info may help.
Good luck!
Forgot something. I believe you can register multiple devices with google and use the same account. Mine is registered two different ways. I am registered as
Bn Nook Tablet
and
Barnes&Noble BNTV250
both are the same unit just different builds.
I'm glad im not the only one that this happen to there nook.
i sent Adam a PM last week about it and he told me that he will be making an app for that so let's hope he didn't forget.
In the mean time any help will be greatly appreciated.
Hello again,
I found two places where the serial is stored both in the rom folder. One is the "Serialnumber" file and the other is label "deviceID". Changing both will not outlast a system reset. There must be a hidden backup file where this number is stored also.
markbird1 said:
Hello again,
I found two places where the serial is stored both in the rom folder. One is the "Serialnumber" file and the other is label "deviceID". Changing both will not outlast a system reset. There must be a hidden backup file where this number is stored also.
Click to expand...
Click to collapse
Interesting!
serial number change
The same thing happened to me. Please prod Adam to make that app or post any other solution that is found!
no news yet =/
Any solution yet ??
sailerph said:
Any solution yet ??
Click to expand...
Click to collapse
Try this link.
http://forum.xda-developers.com/showthread.php?t=1610069&highlight=serial
Good Luck!
tobdaryl said:
Try this link.
http://forum.xda-developers.com/showthread.php?t=1610069&highlight=serial
Good Luck!
Click to expand...
Click to collapse
I tried this method, but for some reason, I kept getting errors when trying to write from the unmounted SD card with DD, and, when trying with the device mounted, it would continue to write the .img file, (3-4 gig before I realized why it was taking so long.)
However, once I had the "ROM" sd card, and modified the files as necessary, I booted a CM7 SD card with my nook, installed one of the many "Root" filesystem managers, and replaced the edited DeviceID and SerialNumber files on my Nook's internal ROM.
This worked -- to an extent. B&N's default software now shows my proper Serial #, however, my B&N will still not pass registration.
I'm thinking that perhaps there's something more to the registration process, MAC address perhaps?
((UPDATE))
So, I took the plunge, cracked open the back of the nook, and found the MAC address on a sticker inside, handy that, eh?
However - This still will not pass B&N registration, so there's something that I've managed to mess up beyond that. I'm guessing this particular NT will never be able to use stock ROM's again. Oh, well, not a huge loss IMHO.
((END UPDATE))
I'm probably not going to poke at it further, as I dont acutally plan on using B&N's default software, I purchased my NT with the express intention of rooting. My only worry is warranty, however, I purchased the Best Buy "Accidental Damage" warrenty, so, if it does break. I just need to "drop" it so the screen cracks! LOL!
Nook Tablet Serial Number Restore & MAC Address restore
Thanks to all for the help with repartitioning/rebuilding Nook Tablet. Here's my input to help others on their way.
Serial Number and MAC Address restore.
You will need to install a hex editor to your laptop - one like "Free Hex Editor Neo".
We will find every instance of the serial Number and of the Mac Address in Partition 5 and change them to the correct values.
This also will automatically correct the DeviceID.
Write down your incorrect values and your correct values for Serial Number and MAC Address
Now we will modify an existing rom image for Partition 5
-if you have an existing image for Partition 5 in your laptop make a copy of it and put it in C:/download.
. -skip to step 9
-otherwise do the following:
Get the image for partition 5 from your Nook Tablet and copy it to your laptop.
1. adb shell
2. ~# mount sdcard
3. ~# dd if=/dev/block/mmcblk0p5 of=/sdcard/blk/mmcblk0p5.img
..-this copied the rom image to the sd card. It is about 48MB.
4. ~# exit
5. cd /
6. adb pull /sdcard/blk/mmcblk0p5.img /download/mmcblk0p5.img
..-this copies the image file from the SD card to your laptop. Places it in the C:/download subdirectory.
7. adb shell
8. rm /sdcard/blk/mmcblk0p5.img
..-this deletes the image file from the SD card
Edit the image file
9. Open Free Hex Editor Neo
.......-file, open file, C:\download\mmcblk0p5.img
10. Search for the old incorrect value for the serial number
11. click on the right side of the hex editor (on the ansi script)
.......-do a replace
...............-type in correct serial number
...............-replace every instance of the serial number in the file
12. Do the same operation to find/replace the MAC address
13. save the file. remove the “.img” file extension from it.
14. put it on the sd card in the root directory (either push it or place the SD card in your laptop)
15. adb shell
16. ~# mount sdcard
17. ~# dd if=/sdcard/mmcblk0p5 of=/dev/block/mmcblk0p5
18. ~# exit
19. remove sdcard, reboot internal.
Cheers.
markbird1 said:
Hello.
I used the ubuntu restore from AdamOutler. It worked like a charm to restore my borked Nook tablet. But for what ever reason it picked up a serial number that doesnt match the one that is registered to me and my tablet. Is there a adb command or something along those lines that i can restore my serial with? I changed the serials via root explorer but it always defaults back to the wrong serial. I know it must be something I did along the line of trying to fix it but it bothers me it doesnt match to my account. It wont let me register it again. Thank you for any help...
Click to expand...
Click to collapse
Do you have the serial number, and mac address that it changed yours to?
Managed to fix my wifi mac address problem with some info read in this thread:
forum.xda-developers.com/showthread.php?t=1131649
all performed using linux,
connect phone to pc using in terminal
adb shell
dd if=/dev/block/mmcblk0p3 of=/sdcard/filename.img (stored image of block on sdcard)
exit
exit
disconnect then reconnect phone to pc this time allowing access to sdcard.
in terminal mount the image for editing
mount -o loop /source/filename.img /destination/
using a hex editor modify '/wifi/wlan_mac.bin' with wanted address
save
unmount /destination/
the filename.img has now been modified and needs to be returned to the phone
remove the phone then reconnect and using 'adb shell'
su
chmod 777 /sdcard/filename.img
dd if=/sdcard/filename.img of=/dev/block/mmcblk0p3
reboot
now after the reboot connect your phone to the wifi and it will be using your new address
Original question below:
got 2 of these Atrix phones.
i have rooted both following this guide
wiki.cyanogenmod.com/wiki/Motorola_Atrix_4G:_Full_Update_Guide
now my one has this installed:
cm-7-20121014-NIGHTLY-olympus.zip
the wifes is still stock.
now we both have been experiencing wifi problems, which i have traced to both phones having the same wifi mac code
98:4B:4A:5D:8D:4C. Resulting in the router not being able to distinguish between them, a right mess.
i have tried following this guide to change my mac address
pocketnow.com/tweaks-hacks/motorola-atrix-4g-how-to-change-wi-fi-and-bt-mac
but changing the address in this file has no effect, its as though the mac address above is a spoof. Not the address stored in /pds/wifi/wlan_mac.bin
i have also tried from terminal 'busybox ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx'
this also does not change my address.
others mention to change the contents of nvram.txt here:
/etc/wl/nvram.txt
this also has made no change
the 2 file locations mentioned contain different mac addresses from the one above.
which file contains this code '98:4B:4A:5D:8D:4C' ?
How do i change the mac address?
i think mac address related to hardware so you can't change it. I have flashed several roms but the mac address is constant, the only change is device name.
Sent from my MB860 using xda app-developers app
lambcutlet said:
which file contains this code '98:4B:4A:5D:8D:4C' ?
How do i change the mac address?
Click to expand...
Click to collapse
/pds/wifi/wlan_mac.bin looks like the right place. But be aware that messing up your PDS could mean quite bad consequences for your phone.
I'd probably dump the entire PDS partition into a file and back it up somewhere if I were you.
voncount said:
i think mac address related to hardware so you can't change it. I have flashed several roms but the mac address is constant, the only change is device name.
Click to expand...
Click to collapse
Nope, wrong.
It's true a MAC is a hardware address, but it's not true it cannot be changed.
ravilov said:
/pds/wifi/wlan_mac.bin looks like the right place. But be aware that messing up your PDS could mean quite bad consequences for your phone.
I'd probably dump the entire PDS partition into a file and back it up somewhere if I were you.
Nope, wrong.
It's true a MAC is a hardware address, but it's not true it cannot be changed.
Click to expand...
Click to collapse
pds backup was performed. My address is different in the 'wlan_mac.bin' file, probably the original F8:7B:7A:xx:xx:xx. i did manage to change its contents but still it appears to be over-ridden by '98:4B:4A:5D:8D:4C'
its weird that both phones have the same mac address
also noticed the bluetooth address is different 00:11:22:33:44:55
there is a program somewhere on my phone over riding the original addresses.
does anyone know what it could be?
has anyone else used the same guide as me to root the phone and ended up with the same mac and bt addresses?
Hi there,
I have an HTC Evo 3d, running LeeDroid's ROM from very early days. To be honest, never really messed about with it much, but had noticed it added a 'Secure' box to SMS.
Now, i don't 'think' i ever set a password for this, however it keeps asking for one, and i cannot access my secure messages. So, i was wondering if anyone knows if there is a way i can reset this password, or somehow backup the messages so they are not lost, then maybe reinstall something, and start from scratch, but WITHOUT losing the messages within?
I have had a look on both this site, and Google, however so far have been unable to find the correct answer, as not sure i'm even asking the right questions, lol!
Hopefully someone can point me in the right direction!
Thanks.
R0N4LD said:
Hi there,
I have an HTC Evo 3d, running LeeDroid's ROM from very early days. To be honest, never really messed about with it much, but had noticed it added a 'Secure' box to SMS.
Now, i don't 'think' i ever set a password for this, however it keeps asking for one, and i cannot access my secure messages. So, i was wondering if anyone knows if there is a way i can reset this password, or somehow backup the messages so they are not lost, then maybe reinstall something, and start from scratch, but WITHOUT losing the messages within?
I have had a look on both this site, and Google, however so far have been unable to find the correct answer, as not sure i'm even asking the right questions, lol!
Hopefully someone can point me in the right direction!
Thanks.
Click to expand...
Click to collapse
Have you tried your carrier password? Like on Sprint usually my default password is 1) the last 4 of my phone number (most likely) or 2) my voicemail password. Start with one of those.
Hello there, I know that this an old thread but just in case anyone is still interested in this I found out some information(the hard way). First of, if you aren't rooted then there is little than you can do apart from cry and try to guess the password. Trust me, I've tried alternatives and even though both the password and secure box messages are stored in plain text, the directories they are in are inaccessible without root access. Unfortunately rooting your device deletes all messages and there is NO way to backup the secure box messages. If you do have root access then carry on reading.
I'm yet to find out where the secure box messages database is but the password is stored on plain text in this file "/data/data/com.android.mms/shared_prefs/com.android.mms.categoryInfo.xml" either read it or delete the file to reassert the password. Deleting the file will not affect the secure box messages in anyway.
Stefan3 said:
Hello there, I know that this an old thread but just in case anyone is still interested in this I found out some information(the hard way). First of, if you aren't rooted then there is little than you can do apart from cry and try to guess the password. Trust me, I've tried alternatives and even though both the password and secure box messages are stored in plain text, the directories they are in are inaccessible without root access. Unfortunately rooting your device deletes all messages and there is NO way to backup the secure box messages. If you do have root access then carry on reading.
I'm yet to find out where the secure box messages database is but the password is stored on plain text in this file "/data/data/com.android.mms/shared_prefs/com.android.mms.categoryInfo.xml" either read it or delete the file to reassert the password. Deleting the file will not affect the secure box messages in anyway.
Click to expand...
Click to collapse
Thank you very much for your assistance. Can you explain I. Detail how to get to that file? I put that link in the search bar (internal storage) and it won't pull anything up. I'm not super savy when it comes to stuff like this. Do you mind helping me out?
Stefan3 said:
Hello there, I know that this an old thread but just in case anyone is still interested in this I found out some information(the hard way). First of, if you aren't rooted then there is little than you can do apart from cry and try to guess the password. Trust me, I've tried alternatives and even though both the password and secure box messages are stored in plain text, the directories they are in are inaccessible without root access. Unfortunately rooting your device deletes all messages and there is NO way to backup the secure box messages. If you do have root access then carry on reading.
I'm yet to find out where the secure box messages database is but the password is stored on plain text in this file "/data/data/com.android.mms/shared_prefs/com.android.mms.categoryInfo.xml" either read it or delete the file to reassert the password. Deleting the file will not affect the secure box messages in anyway.
Click to expand...
Click to collapse
thanks a bunch!!!
If you haven't rooted your device and don't remember setting the password for the secure box, you can try the same password you have for your HTC account. It worked for me, thankfully.
Stefan3 said:
Hello there, I know that this an old thread but just in case anyone is still interested in this I found out some information(the hard way). First of, if you aren't rooted then there is little than you can do apart from cry and try to guess the password. Trust me, I've tried alternatives and even though both the password and secure box messages are stored in plain text, the directories they are in are inaccessible without root access. Unfortunately rooting your device deletes all messages and there is NO way to backup the secure box messages. If you do have root access then carry on reading.
I'm yet to find out where the secure box messages database is but the password is stored on plain text in this file "/data/data/com.android.mms/shared_prefs/com.android.mms.categoryInfo.xml" either read it or delete the file to reassert the password. Deleting the file will not affect the secure box messages in anyway.
Click to expand...
Click to collapse
Thanks it worked for me 100%
Stefan3 said:
Hello there, I know that this an old thread but just in case anyone is still interested in this I found out some information(the hard way). First of, if you aren't rooted then there is little than you can do apart from cry and try to guess the password. Trust me, I've tried alternatives and even though both the password and secure box messages are stored in plain text, the directories they are in are inaccessible without root access. Unfortunately rooting your device deletes all messages and there is NO way to backup the secure box messages. If you do have root access then carry on reading.
I'm yet to find out where the secure box messages database is but the password is stored on plain text in this file "/data/data/com.android.mms/shared_prefs/com.android.mms.categoryInfo.xml" either read it or delete the file to reassert the password. Deleting the file will not affect the secure box messages in anyway.
Click to expand...
Click to collapse
Thank you so much for the password file location. I was able to recover the secure box password for a Desire 500 using this info without having root.
Here's what I did:
* Backup com.android.mms
Code:
adb backup -f backup.ab com.android.mms
* Extract the resulting backup.ab to backup.tar using Android Backup Extractor (can't post link, so search GitHub for it - author nelenkov)
Code:
java -jar abe.jar unpack backup.ab backup.tar
one could also use dd if available
Code:
dd if=backup.ab bs=1 skip=24|openssl zlib -d > backup.tar
* Find com.android.mms.categoryInfo.xml in apps/com.android.mms/sp directory of extracted .tar
help
positivew said:
Thank you so much for the password file location. I was able to recover the secure box password for a Desire 500 using this info without having root.
Here's what I did:
* Backup com.android.mms
Code:
adb backup -f backup.ab com.android.mms
* Extract the resulting backup.ab to backup.tar using Android Backup Extractor (can't post link, so search GitHub for it - author nelenkov)
Code:
java -jar abe.jar unpack backup.ab backup.tar
one could also use dd if available
Code:
dd if=backup.ab bs=1 skip=24|openssl zlib -d > backup.tar
* Find com.android.mms.categoryInfo.xml in apps/com.android.mms/sp directory of extracted .tar
Click to expand...
Click to collapse
hey, i am new in these stuffs, can you please provide a better tutorial of what you did and how you did, i am also not having root and also i am not having the secure box password.
Hello!
positivew said:
Thank you so much for the password file location. I was able to recover the secure box password for a Desire 500 using this info without having root.
Here's what I did:
* Backup com.android.mms
Code:
adb backup -f backup.ab com.android.mms
* Extract the resulting backup.ab to backup.tar using Android Backup Extractor (can't post link, so search GitHub for it - author nelenkov)
Code:
java -jar abe.jar unpack backup.ab backup.tar
one could also use dd if available
Code:
dd if=backup.ab bs=1 skip=24|openssl zlib -d > backup.tar
* Find com.android.mms.categoryInfo.xml in apps/com.android.mms/sp directory of extracted .tar
Click to expand...
Click to collapse
positivew, thanks for your contribution! I got really excited when you mentioned there is a way to access the information without being rooted, but I am encountering some trouble when trying to backup com.android.mms through adb. Initially the process seems to be working fine, but the resulting backup only appears as a 1kb file. When I subsequently unpack to tar, the file shows no information. Certain posts online indicate that this might be due to com.android.mms being a system file and thus inaccessible unless you are rooted. Could you please detail the process you used a little further, I would be very grateful!
for HTC users - solution is a bit differrent
briggsjoshua said:
positivew, thanks for your contribution! I got really excited when you mentioned there is a way to access the information without being rooted, but I am encountering some trouble when trying to backup com.android.mms through adb. Initially the process seems to be working fine, but the resulting backup only appears as a 1kb file. When I subsequently unpack to tar, the file shows no information. Certain posts online indicate that this might be due to com.android.mms being a system file and thus inaccessible unless you are rooted. Could you please detail the process you used a little further, I would be very grateful!
Click to expand...
Click to collapse
If you've got same issue as I do, then first you need to figure out the exact name of your messaging app. To do this, one could install "App extractor" from the market, and extract the Messaging application. File name .apk will be the package name, which for HTC Sense goes like this:
Code:
com.htc.sense.mms
and NOT
Code:
com.android.mms
Then, do the backup as suggested above, using
Code:
adb backup -f somenameofyourbackup.ab com.htc.sense.mms
You should get .ab file of around 8 to 12kb, depends on your message file.
Than just use whatever method for extraction you prefer (I used dd on ubuntu, but not the openssl version, rather python one)
Code:
dd if=yourbackupfile.ab bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" | tar -xvf
make sure to set correct path to yourbackupfile.ab (or place it in the home directory)
Then you should get folder app/com.htc.sense.mms/sp/ and here the file com.htc.sense.mms.categoryInfo.xml where the password is stored in plaintext.
Voila
Worked Like A Charm!
Many thanks. Recovered my password on my HTC One (M7)
Please help, I cant find the ./data/data only ./data - I use x-plore file manager
OK so I'm sure this would be of benefit to many I605 users. Does anyone have the factory EFS folder minus the device specific info.
In an attempt to regain lost storage during the install of Linux on android I had erased and cleared EFS during a re flash of the Kies factory mj9 image. This was before anyone had posted that anyone wanting to install custom roms should not Flash this version.
I am aware that the EFS folder contains all of the device specific info required to provide proper cellular connectivity, and that people will not share this folder not wanting to give away their own devices identity.
What I'd like to know is what files exactly contain what device information. I may be mistaken but many of the files are provider specific and not device specific which would help me in repairing the Baseband Version. UNKNOWN. Apparently with the baseband unknown many of the I'm either repair tools will not properly connect to the phone to write the proper Imei.
Cmon guys with this wealth of knowledge here on this board I would think this wouldn't be such a hard thing to repair. Besides the Imei what other private device specific info is found in the EFS. It's already well known that that the Imei is found at the 550 memory address with this being the case this could be deleted and added after the EFS has been restored.
Some one please help.
Hello my freindes
i rooted my sm-c7000 and after download a custom rom it stuck on logo so i back to stuck rom but when i go to recovery mode it said "E:failed to mount /efs (Invalid argument)" and after search on google i found that i should flash esp by odin
so i need the EFS for C7000ZH please
+------------------------+
Thanks in advance
Best regards
@misyo.nour
EFS isn't a file but is a partition on your Android device that stores all the important data associated with your phone. For instance, these data include the IMEI number, Mac address of Wireless devices, important files of internet and product code, etc. Hence the EFS partition holds data to a specific phone, isn't generic, will say can't simply get transferred from one phone to another one.
jwoegerbauer said:
@misyo.nour
EFS isn't a file but is a partition on your Android device that stores all the important data associated with your phone. For instance, these data include the IMEI number, Mac address of Wireless devices, important files of internet and product code, etc. Hence the EFS partition holds data to a specific phone, isn't generic, will say can't simply get transferred from one phone to another one.
Click to expand...
Click to collapse
is there any way to fix it so i can open wifi and blutooth ??
btw sim card working fine