yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9500 Android Development] AntaresOne:
IMEI backup/restore tool for Samsung Galaxy S4 GT-I9500

Brought to you by AntaresOne​

​

NOTE: This is only for Galaxy S4 with Exynos 5410, Qualcomm Snapdragon 600 version is here.

For devs: modifications & redistribution are not allowed. Contact me before including my work or any part of it in your stuff.

Explanation

What is IMEI?

Wikipedia

Why should I backup it?

When you start to mod your phone, sometimes may happen that you lose it (a bad flash, a wrong mod...) and without your phone is like this. Shortly, you lose mobile network forever.

The EFS partition itself isn't enough for a full backup, there are another 3 partititions. These are m9kefs1, m9kefs2 and m9kefs3.

Features

Complete IMEI backup

Autozipping of saved partitions

Installation

Download tool from the link below

Put the zip file in your sdcard

Reboot in recovery

Install zip from sdcard

Choose downloaded zip file

Reboot system

Usage

When installed, the "imeibkp" executable goes in /system/bin. Obviously root is a must. This is not an app, so to run it you must use Terminal Emulator. It's very user-friendly and n00b-approved (joking :laugh:), normally you shouldn't run into issues while using it.

Open Terminal Emulator

Write su and press enter (this is to obtain root access)

Invoke this tool by writing imeibkp and pressing enter

To restore just invoke again imeibkp

In case you want to export your backup, it is in /sdcard/IMEIBackup and called IMEIBackup.zip (Internal Memory on PC through USB connection)

If you change ROM you'll lose this tool (you'll not lose a backup already made), in this case just follow again Installation steps

Download

IMEI Backup tool is hosted on my AndroidFileHost

XDA:DevDB Information

Full IMEI backup/restore tool for Galaxy S4 GT-I9500, Tool/Utility for the Samsung Galaxy S4

Contributors

AntaresOne

Version Information

Status: No Longer Updated

Stable Release Date: 2014-12-16

Created 2014-12-16

Last Updated 2017-05-19
[Galaxy S 4 i9500 Android Development] AntaresOne:
Changelog

31/1/2015

Little code update

26/1/2015

Added full zip binary in flash package (this should fix stpcpy error)

Little code update

9/1/2015

Added zip binary in flash package (not all the ROMs have it included, this fixes zipping process)

8/1/2015

Added auto zipping of saved files during backup process

Added auto unzipping of IMEIBackup archive when restoring

Better backup identification for restore process

Various code updates

21/12/2014

Fixed busybox path (some ROMs have it in different location)

16/12/2014

Initial public release

Other S4 variants

If you want this tool for any other Exynos Galaxy S4 variant write me a PM or mail me to antaresone@antaresone.eu including build.prop (it's in /system) & partition table.

Through Terminal Emulator or ADB, do this:

su [b](to acquire root access)[/b]
ls -la /dev/block/platform/dw_mmc.0/by-name > /sdcard/partitions.txt

You will find a file named partitions.txt in your internal storage (/sdcard)

Other Samsung devices

PM or mail me at antaresone@antaresone.eu for details.
[Galaxy S 4 i9500 Android Development] ShiroPandora:
Very well done my friend :)

Everything working fine :)
[Galaxy S 4 i9500 Android Development] Bomoh:
Tested and works. Thanks :)
[Galaxy S 4 i9500 Android Development] amit1976:
Can we interchange imei of 2 phone thru this utility ?
[Galaxy S 4 i9500 Android Development] AntaresOne:
Why should you do that? In most countries is illegal to change device's IMEI even in that way

Inviato dal mio GT-I9505
[Galaxy S 4 i9500 Android Development] AntaresOne:
Tool updated, fixed busybox path e various updates to the code.

Download: https://www.androidfilehost.com/?fid=95864024717067771
[Galaxy S 4 i9500 Android Development] v6144747:
REstore IMEI

Hi, great tool, congrats!

One question: when I install some roms I lose the IMEI, but it can be recovered reinstalling an official one.... do you think I can restore an IMEI on a different rom other than the one from where it was backed up?

Thanks
[Galaxy S 4 i9500 Android Development] RoCorral:
Awesome
[Galaxy S 4 i9500 Android Development] mathy007:
Great

nice stuff have been looking for things like this
[Galaxy S 4 i9500 Android Development] jiro-kun:
Hi. Thanks for the tool.

Anyhow. Since I'm a noob. Just wondering. How to restore imei?

Thanks in advance!

Alright. After test running it again. I figured it out. Again thanks!
[Galaxy S 4 i9500 Android Development] AntaresOne:
8/1/2015

Added auto zipping of saved files during backup process

Added auto unzipping of IMEIBackup archive when restoring

Better backup identification for restore process

Various code updates

Pushed an update, download: https://www.androidfilehost.com/?fid=95887005526788680

EDIT: 9/1

Added zip binary in flash package (not all the ROMs have it included, this fixes zipping process)

Download: https://www.androidfilehost.com/?fid=95887005526789369
[Galaxy S 4 i9500 Android Development] jagnik:
not working on ozcan rom.
[Galaxy S 4 i9500 Android Development] DanialYaqub:
Everyting went well till installing Terminal Emulator... when I type "imeibkp" it gives me error "unknown device GT-I9500 is required" please help... :confused:
[Galaxy S 4 i9500 Android Development] sway8966:
Download and installed it to i-9500 fine. Backing up fine. After Zipping gave a message "CANNOT LINK EXCUTABLE: cannot locate symbol "stpcpy" referenced by "zip"..

After that I have only backup.log in the IMEIBackup folder.

I ran the terminal from the Romtool box pro.
[Galaxy S 4 i9500 Android Development] AntaresOne:
New update available

Added full zip binary (this should fix stpcpy error) and a little code update.

Download: https://www.androidfilehost.com/?fid=95916177934517572

:)
[Galaxy S 4 i9500 Android Development] DanialYaqub:
will this work on Aurora Rom ?
[Galaxy S 4 i9500 Android Development] sway8966:
This update version works for my i-9500.

Thanks AntaresOne.
[Galaxy S 4 i9500 Android Development] sherry9873:
:good:
[Galaxy S 4 i9500 Android Development] ozezz:
I'm using stock Rom 4.4.2 and give me the error "name not matched: /sdCard/IMEIBackup/*.img", and yes i have rooted the device and using Philz Recovery. because can´t create the folder to write the log, im gonna attach the screenshot.
[Galaxy S 4 i9500 Android Development] ozezz:
Sorry my noob question with this error but Its necesary install busybox before run the script?

Edit: well.. i solve installing busybox and then runing the script, thanxs everything works flawless.
[Galaxy S 4 i9500 Android Development] napster03:
I'm on aurora beta 4

its running on lollipop 5.0.1 if i take a imei backup can i downgrade to official kitkat 4.4.2
[Galaxy S 4 i9500 Android Development] ozezz:
Yes the imei Backup works from Lolipop to KK.
[Galaxy S 4 i9500 Android Development] napster03:
thanks bro

thanks
[Galaxy S 4 i9500 Android Development] yawdi26:
IMEI Curruption

good day,

let me start off by saying im a huge fan of this site and the work you guys do to help people from beginners to experts.

i have a galaxy s4 GT-I9500 and was experiencing connection problems to my network. before reading into the matter i was told it was either the ROM that was the issue or the network antenna. without knowing the problems that could arise, i downloaded a stock ROM from sammobile and flashed with odin. this time i lost signal all together, long and short is i found out that i corrupted my efs folder without making a backup. this could be seen from entering *#0011# and seeing "IMEI CERTI: Fail". ive read many ways how to recover from this problem from these posts

sammobile.com/forum/showthread.php?t=15196

youtube.com/watch?v=Tj3OYMyovx0

i even corrected the imei number to the original after doing most of the steps from the links while running ozcan 6.3 custom ROM but i am unaware which one gave the fix ("IMEI CERTI: PASS"). i was still experiencing the dropped signal only to find out from a repair shop that i need to flash the phone with the original mobile.bin file. i made a backup with philz recovery and flashed the phone. checking the *#0011# i saw "IMEI CERTI: Fail" again. since then none of the methods work.

what is the best way to recover imei number without sending it to a shop to have them use software to rebuild the imie. i am very interested in ROMs and customization and will follow proven steps if anyone can assist.

im running official ROM 4.4.2 I9500UBUGNJ1_I9500UUBGNJ1_I9500UBUGNJ1

my location is Jamaica

thanks in advance
[Galaxy S 4 i9500 Android Development] mathy007:
[MENTION=5464206]AntaresOne[/MENTION] the download link is redirecting to the old version instead of the new one,pls fix it:good:
[Galaxy S 4 i9500 Android Development] wyp8711@gmail.com:
目前還沒遇過imei不見的狀況

謝謝提供訊息
[Galaxy S 4 i9500 Android Development] mathy007:
Would you mind translating your post this is an English forum
[Galaxy S 4 i9500 Android Development] LeandritoG:
Why this?

View attachment 3157735
[Galaxy S 4 i9500 Android Development] AntaresOne:
Try to update to the latest version: https://www.androidfilehost.com/?fid=95916177934520564

If this doesn't solve your issue, install again busybox
[Galaxy S 4 i9500 Android Development] LeandritoG:
I have to restore my IMEI, I already did the "IMEIBackup.zip", but I don't know what to do with it.

Do I have to flash this ".zip" in recovery? Cause this file can't be find at recovery...

Questions:

1. In order to do the restore, the folder needed is the ziped, or do I have to unzip the folder?

2. If used the folder and not the ziped...

Do I have to copy the "IMEIBACKUP" folder inside the "sdcard" folder together to the memory internal storage? Or do I have to put inside internal storage only the "IMEIBACKUP" folder?

In case... I put the "sdcard" folder including the "imeibackup" folder in internal storage, and I also paste only the folder "imeibackup" inside internal memory storage.

But, the Terminal Emulator continue saying "No backup found"....

I tried the lat version of the IMEI backup tool...
[Galaxy S 4 i9500 Android Development] ozezz:
Just need to install the script vía Recovery and then running with terminal, when the script detects you al ready have a Backup, you must select the option to restore.. Dont move your imeibackup. Zip from internal.
[Galaxy S 4 i9500 Android Development] maen.safadi:
Works well, Thank you :)
[Galaxy S 4 i9500 Android Development] glennsamuel32:
wonderful program !!!

thx soooo much !!!
[Galaxy S 4 i9500 Android Development] Shsbbebxj:
Great Work...!!!

Thanxxx for the thread dude, really great Job..!!!!
[Galaxy S 4 i9500 Android Development] Hmdgll34:
It was very helpful thanks..
[Galaxy S 4 i9500 Android Development] ficeball:
err confused noob here, not sure why but i keep getting "unknown device, this is for I9500"

i'm pretty sure didn't download wrong zip file

EDIT: want to go back to KK after i got a ton of crap in LP
[Galaxy S 4 i9500 Android Development] flash_xx:
Hi, I backed up my imei before downgrading from 5.01 to 4.4.2. Apparently everything ran fine but when I check the imei on the I9500 it stills says NULL. The only way it will show is if I go back to 5.01. Is there a work around to get it to apply the imei to 4.4.2?

I need to get the phone back to stock for warranty.
[Galaxy S 4 i9500 Android Development] :
Best way is to flash back a lollipop modem mate.

http://xdaforums.com/showpost.php?p=56103578&postcount=3

warranty will no longer be valid as knox would have been tripped when you had flashed a custom rom mate.
[Galaxy S 4 i9500 Android Development] shingz96:
[MENTION=5464206]AntaresOne[/MENTION]

if the model no in the build.prop change to other instead of GT-I9500, will this tool still work ?

ps: phone is still S4 GT-i9500
[Galaxy S 4 i9500 Android Development] AntaresOne:
Yes unless you don't change ro.product.device, if you change only ro.product.model still works :)
[Galaxy S 4 i9500 Android Development] rbhanot2:
I am trying to restore with this tool, but when i open it, it says "unknown device , GT-I9500 only required".

Please help !! My phone has gone crazy i guess, it is showing imei with 0049 ...
[Galaxy S 4 i9500 Android Development] rbhanot2:
Tool does not work !!!

I had created my efs backup with this tool and kept it saved in my extcard and as well as other secure location. Today when i tried to restore my efs with it when i was in dire need the tool failed saying "No Backup found".. Just to make things clear i copied my imeiBackup.zip to my internal memory but tool still failed. Luckily i had other backups which saved me !!!!
[Galaxy S 4 i9500 Android Development] Zubair669:
backup is not exporting to sd card.
[Galaxy S 4 i9500 Android Development] hamidees:
i have already installed via recovery

but after booting the apps fail to start it gives an error google play services has failed to start and others
[Galaxy S 4 i9500 Android Development] mathy007:
Then try updating your Google play service
[Galaxy S 4 i9500 Android Development] loginsubhan:
hi can u tell which tool u used to restore?
[Galaxy S 4 i9500 Android Development] Moiosu:
Hi, I got the error "unknown device" GT - I9500 is required

Someone know how to fix this ? Thanks
[Galaxy S 4 i9500 Android Development] loginsubhan:
dude use partition backup and restore its in play store,
[Galaxy S 4 i9500 Android Development] quacknet:
I9500 i flash 12.1 cyanogen mod without any back up nd i back to stock firmware 4.4.2 i got signal but i cannot make any call it say no network register emergency call only :(
[Galaxy S 4 i9500 Android Development] altayair:
**** please help ****

im using GT i9500 and i interested in roms and trying all roms unfortunately i lost my IMEI , the call network never appear again . please help me if there is any way to fix it .:crying:
[Galaxy S 4 i9500 Android Development] mathy007:
Flash lollipop modem and your problem will be solved
[Galaxy S 4 i9500 Android Development] altayair:
I try everything such as flashing modem , change rom , and even to change the IMEI . :crying: :confused:
[Galaxy S 4 i9500 Android Development] mathy007:
If you have changed the imei before try changing it back to the one on the back of the phone also look for the latest lollipop stock rom and flash it with Odin
[Galaxy S 4 i9500 Android Development] kongacute:
How i can fix it.

Im use ale95 rom with volt kernel 15.

Gửi từ SM-A710F của tôi bằng cách sử dụng Tapatalk
[Galaxy S 4 i9500 Android Development] shingz96:
this tool is best use in stock rom i think. And efs backup is automated done when u flash ale95 rom, so i think that should be ebough for efs backup:o
[G2 Q&A, Help & Troubleshooting] fl4shfruit:
hello people of this forum i came here to post 2 problems that i'm having with my LG G2:

1.VR Panorama mode not working , when i try to use it , it leaves the camera screen going back to home screen and a massage that says: camera unavailable due to a temporary problem.

2. when i use swipe to unlock after i didnt touched the phone for about 5 minutes of it being idle , i swipe to unlock and theres a lag that i cant use my phone for few seconds , i tried factory reset , didnt work , i uninstalled a live wallpaper that i had and it got fixed but after about 4 days it came back , anyone knows how to fix these problems?

i did not used any custom rom or something like that i only have root which i used Towel root to root my phone

thanks for everyone that is going to help me fixing these problems.
[Nexus 6 Q&A, Help & Troubleshooting] jwleonhart:
When I try to turn off the phone volume there is no silent option, just vibrate? What's with that? Cuz the vibration is pretty damn loud
[Nexus 6 Q&A, Help & Troubleshooting] jj14:
Set notifications to none
[Nexus 6 Q&A, Help & Troubleshooting] jwleonhart:
Ahhh OK. Jeez kinda retarded can't just use the volume rocker to do it
[Nexus 6 Q&A, Help & Troubleshooting] oneandroidnut:
agreed.
[Nexus 6 Q&A, Help & Troubleshooting] wtherrell:
Welcome to the Wonders of Lollipop! (I have to WONDER what the hell was Google thinking?)
[Nexus 6 Q&A, Help & Troubleshooting] jwleonhart:
Honestly I do not like lollipop... The changes from KitKat are just retarded... Its like they are purposely making **** more complicated..

And the lock screen drives me up a wall. If I swipe it the wrong way I get the camera or contacts. Wtf were they thinking? How about just unlock. That'd be splendid!
[Nexus 4 Q&A, Help & Troubleshooting] QA Bot:
[Q&A] [ ROM ]:[ 5.0.1 ]:[ DEC 15 ] bareBones ~ LTE ~ HD voice ~ minimal ~ epic batte

Q&A for [ ROM ]:[ 5.0.1 ]:[ DEC 15 ] bareBones ~ LTE ~ HD voice ~ minimal ~ epic battery

Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.

Before posting, please use the forum search and read through the discussion thread for [ ROM ]:[ 5.0.1 ]:[ DEC 15 ] bareBones ~ LTE ~ HD voice ~ minimal ~ epic battery. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.

Thanks for understanding and for helping to keep XDA neat and tidy! :)
[Nexus 4 Q&A, Help & Troubleshooting] lucas_dpaula:
Great job guy, amazing battery life!

About LTE, in brazil doens't work 4g band, this is so sad :(

haha... my thanks!
[Nexus 4 Q&A, Help & Troubleshooting] rishabh28:
What kernel?

Great ROM..loving it so far..what custom kernel would you recommend? Since I need d2w and undervolting to save juice.
[Nexus 4 Q&A, Help & Troubleshooting] sylentprofet:
Any AOSP kernel should work fine. SimpleAOSP just switched to inline kernel building, so we'll see what that entails in the next build.
[Nexus 4 Q&A, Help & Troubleshooting] jammey97:
This rom working great for me so far in Toronto on Telus network. Full LTE speeds where available.

Only issue I've noticed is that Exchange support is broken/missing.

GMail app only allows POP or IMAP for additional email accounts.

Using third party app for exchange works fine though. I'm currently using Nine client without issue.
[Nexus 4 Q&A, Help & Troubleshooting] Toseba:
no GPS

My GPS doesn't work fine, i see my location after few minutes and i can't naviguate with this. Need some help if it s a problem with simpleaosp?
[Nexus 4 Q&A, Help & Troubleshooting] RogueSven:
love your roms, both KK and LL. Really miss 8/9 build, could your provide the link for it? Thanks!
[Nexus 4 Q&A, Help & Troubleshooting] RogueSven:
love you roms, both KK and LL builds. Waiting for the new ones :)
[Nexus 4 Q&A, Help & Troubleshooting] kingaloy:
Rom is awesome
[Nexus 4 Q&A, Help & Troubleshooting] boss-007:
UPDATE ?!

no more update ?
[Nexus 4 Q&A, Help & Troubleshooting] RogueSven:
should try this. In the terminal app, type:

su

restorecon -RF /data/media/0﻿

then reboot
[Nexus 4 Q&A, Help & Troubleshooting] liam2317:
No on screen buttons or notification bar

I've tried installing the rom a few times now but the problem is that it never has any of the on screen buttons (back, home, recent apps) or a notification bar. I have wiped absolutely everything several times and am using the latest version of TWRP. I have tried with and without flashing google apps. Any ideas? This rom looks really good and I'd like to use it!
[8525, TyTN, MDA Vario II, JasJam General] penyekz:
My Voda V1605's phone ringer has stopped working. The speaker is still working and vibration works as well. I've tried to soft reset the phone and changed various ringer configuration but nothing's working. Any ideas?
[8525, TyTN, MDA Vario II, JasJam General] marisa4755:
Did you install anything recently? Particularly something like Zen phone, or Phonealarm? Or anything at all?

Do you have a recent backup from when the ringer was working?
[8525, TyTN, MDA Vario II, JasJam General] penyekz:
no. No new installations. It was working the day before. My last backup was a long time ago. sigh.... I'm beginning to think its a hardware failure but its strange that the speaker is still working but not the ringer.
[8525, TyTN, MDA Vario II, JasJam General] MikeChannon:
There are various ringer entries in the registry - check the wiki. Also check ringer folder to ensure relevant entries are there. I'm pushed for time else I'd give more info.

Mike
[8525, TyTN, MDA Vario II, JasJam General] marisa4755:
Depending on how much time you have available, if it were me, I think I would be tempted to do this:

Make a full backup of your device as is.

Hard reset.

Test ringer.

If it doesn't work, then this is beyond my expertise.

If it does work, then it's a software/settings/registry thing.

If it works, restore backup (sometimes this does seem to fix things, I don't know why). If ringer now not working, then you will have to take the decision whether to keep the restored system and hunt around for the solution, or whether to do another hard reset and re-install everything.

Good luck, what a pain!
[8525, TyTN, MDA Vario II, JasJam General] penyekz:
Is this the wiki page you are referring to?

http://wiki.xda-developers.com/index.php?pagename=Hermes_Registry

I'll try and have a look through after work. I think the idea about a back up followed by a full reset is also a good idea. I may try that this weekend. I'd appreciate it if you could hone in on which settings I should be check for in the registry.

If it is a registry fault, how is this possible without me messing about or install new software. then again, anything is possible with microsoft init. ;)
[8525, TyTN, MDA Vario II, JasJam General] MikeChannon:
Yes that's the page, the bit that starts:

Change ringtone/vibrate/LED flash characteristics

If you would like more control over how your device rings/vibrates/flashes its LEDs on events, you can can change the Script values of these events.

For example, for an incoming call performing 'activate device, play ringtone, wait 3 seconds, repeat':

HKCU\ControlPanel\Sounds\RingTone0\Script = "apw3r" (REG_SZ string, no quotes)

Likely you should have the above setting apw3r which is a pretty standard setting.

If it's there and your selected ringtone is in it's folder then the hard reset looks more needed! You could try changing the setting to a slightly different one but it might have no effect if something else is blocking it.

Mike
[8525, TyTN, MDA Vario II, JasJam General] penyekz:
thanks for that. will try it out tonight.

when I was trying to back up, SPB backup reported an error:

"Unable to read fusionlinks.vol"

Does this have something to do with the ringer?
[8525, TyTN, MDA Vario II, JasJam General] MikeChannon:
Never heard of it but

might

get a chance to check mine later. Sounds!! like it might be related though.

Mike
[8525, TyTN, MDA Vario II, JasJam General] marisa4755:
Do you use AgendaFusion? And is this accessed by something like Pocket Breeze?

I remember there was an issue like this with Pocket Informant and PB where in order to get a 'clean' backup, you had to deactivate the PB plug-in before the backup. I think they fixed it eventually.
[Galaxy S III Q&A, Help & Troubleshooting] pouya06:
quick glance is working for me in learn mode

when i go to try mode of quick glance it's working

but in lockscreen it's not working!

any body know why it's not working in lockscreen or why it's working in learn???

a video :

youtube.com/watch?v=q-wkLGs_68w

thanks
[Galaxy S III Q&A, Help & Troubleshooting] Darke5tShad0w:
All questions go into the q&a area.
[Galaxy S 4 Q&A, Help & Troubleshooting] hajyihia:
hi guys, i have the NOTE4 rom on my s4 i9500, it doesnt have the samsung apps, so i downloaded it, installed it, then i downloaded samsung video editor from the samsung apps, i installed it but everytime i press on it, it FC....is there away to fix this??THANKS