yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Android Development] romhetman:
Install terminal emulator (link can be found in OP)

enter this comands:

su (to acquire root access)

cat /proc/cmdline > /sdcard/cmdline.txt

Open that "cmdline.txt" file find this:

samsung.hardware=SGH-M919 (this is my example, so my device name is SGH-M919) and this is what that tool reads !

Check what is yours to know what happened !
[Galaxy S 4 i9505 Android Development] r0ckarong:
OK, was my fault, the tool is working fine. I disabled root access in the dev options altogether for some reason out of paranoia. I got a permission denied when using your command and that put me on the right track. Sorry about the confusion.
[Galaxy S 4 i9505 Android Development] romhetman:
You are welcome !
[Galaxy S 4 i9505 Android Development] romhetman:
Does everybody get such log:

Zipping...

adding: sdcard/IMEIBackup/backup.img (deflated 100%)

adding: sdcard/IMEIBackup/efs.img (deflated 100%)

adding: sdcard/IMEIBackup/fsg.img (deflated 100%)

adding: sdcard/IMEIBackup/m9kefs1.img (deflated 2%)

adding: sdcard/IMEIBackup/m9kefs2.img (deflated 2%)

adding: sdcard/IMEIBackup/m9kefs3.img (deflated 2%)

adding: sdcard/IMEIBackup/modemst1.img (deflated 100%)

adding: sdcard/IMEIBackup/modemst2.img (deflated 100%)

Deflated 2% means that It's squeezed only for 2% or it is something wrong with the process it self?
[Galaxy S 4 i9505 Android Development] AntaresOne:
Everything is okay, it's just the way how ZIP works

Update available

Little code update and support for T-Mobile (SGH-M919) variant (its own thread is here)

Download: https://www.androidfilehost.com/?fid=95916177934520606
[Galaxy S 4 i9505 Android Development] jpq:
I tried last version and i got syntax error "}" unexpected

i'am on official CM12
[Galaxy S 4 i9505 Android Development] AntaresOne:
Fixed. Thank you for the report :)

https://www.androidfilehost.com/?fid=95916177934520606
[Galaxy S 4 i9505 Android Development] jpq:
Tried again

All is ok now :)

A+

Jpq
[Galaxy S 4 i9505 Android Development] Rextiles:
Not installing correcting, causing reset.

I'm trying to install this on an AT&T I337 S4 with stock MF3 JellyBean 4.2.2 which is rooted with SuperSU and Developer Options enabled.

Installed:

Terminal Emulator

BusyBox (on /system/bin)

ES File Manager

I put IMEIBackupTool-S4LTE-20150131-latest.zip on /storage/extSdCard and boot into Recovery Mode (Vol. Up, Home, Power). In Recovery Mode I select "apply update from external storage" and pick IMEIBackupTool-S4LTE-20150131-latest.zip. It starts to install but I notice the error message "signature verification failed" followed by "install complete" and it automatically reboots. Upon reboot the system has reverted itself back to stock condition and settings forcing me to go through the standard setup procedures and has removed all previously installed apps (Terminal Emulator, BusyBox and ES File Manager), the only thing remaining is SuperSU.

When I reinstall ES File Manager, I go to /system/bin to see if imeibkp is there and it is absent. So I am not sure if it was actually installed and then removed when the system reverted itself back to stock or if it's not even being installed at all. I've tried this multiple times with the exact same results. I've even turned on USB Debugging to see if that would make a difference and it did not make any difference.

Is there something I'm overlooking or is this tool not compatible with I337?

Thanks!
[Galaxy S 4 i9505 Android Development] NZgeek:
It sounds like you're still using the stock recovery. Most zip packages require the use of a custom recovery, such as CWM, PhilZ or TWRP.

It is possible to manually install the tool, as it's only 2 files and you might have one in place already.

First, look in your /system/xbin folder for a file called zip. If it's there, skip to the next step. Otherwise, go into the system/xbin folder in the zip and copy zip to your /system/xbin folder. You'll need to set the file permissions to 0755 (rwxr-xr-x).

Second, go into the system/bin folder in the zip and copy imeibkp to your /system/bin folder. You'll need to set the file permissions to 0755 (rwxr-xr-x).

That's it. Bring up a terminal window, then enter the commands:

cd /

su

imeibkp

and follow the prompts on screen.
[Galaxy S 4 i9505 Android Development] Rextiles:
Thanks NXgeek!

I thought that that would probably work but I was unsure what exactly what the 2 files in the META-INF did, especially the update-binary file since I didn't see it in either the imeibkp or updater-script shell scripts.

Anywho...

I did copy the imeibkp file into /system/bin and zip into /system/xbin, changed the permissions and then ran imeibkp. Immediately I ran into the problem of imeibkp trying to find busybox in /system/xbin when I had installed it in /system/bin, so I changed the script to locate busybox in /system/bin which worked fine but now imeibkp is saying mine is an unknown device. I figured that since the motherboard was an SGH-I337 SGH-M919, that it should work but apparently it's not detecting it.

I guess the next step would be to send the cmdline and partition table texts to AntaresOne to see if he can figure it out. Unless of course there might be other ideas on how to fix this. :)
[Galaxy S 4 i9505 Android Development] JJmattos1:
[MENTION=5464206]AntaresOne[/MENTION] I have the GT-I9515L version, its the Latin variant version of the GT-9515.

I tried to run your tool but it didn't recognized my device. What type of info do you need to support this version of S4 Snap 600 too? I'll try to help you whenever I can.
[Galaxy S 4 i9505 Android Development] Sesshou:
Add to that the GT-I9508 Snapdragon 600 jfltezm. deeply needed.
[Galaxy S 4 i9505 Android Development] AntaresOne:
Please send me full cmdline like wrote in 2nd post of this thread. Then I will add support :)

Inviato dal mio GT-I9505
[Galaxy S 4 i9505 Android Development] JJmattos1:
Any news on the support for 9515L [MENTION=5464206]AntaresOne[/MENTION]? I've sent you the details.
[Galaxy S 4 i9505 Android Development] AntaresOne:
I9508+I9515L support is coming today. :)

EDIT:

Update available here: https://www.androidfilehost.com/?fid=23991606952609909

Inviato dal mio GT-I9505
[Galaxy S 4 i9505 Android Development] dddkkk1:
Hello.

I have a "bricked" GT-I9515 with IMEI "null".

I can use it just fine ,but it won't get network signal.

Is anyone willing to upload their backup so I can flash my phone with it?

Thank you!
[Galaxy S 4 i9505 Android Development] sanozukez:
When i try to apply it by recovery menu, while the instalation i get a message telling

e: footer is wrong;

in red, It not get instaled, and i cant run the code on terminal, cause it tells that imeibkp is not found.

I am trying to use it on a gt-i9515L. Its rooted with su, and busybox is instaled..
[Galaxy S 4 i9505 Android Development] Anlva:
Hi, I have lost IMEI, baseband in my i9505. Now its kind of locked, no mobile signal, no IMEI. So is it possible if I flash another S4's backup flie to my phone?

Any one can help me by upload your backup file.

Thank you so much!!!
[Galaxy S 4 i9505 Android Development] O-T:
Using other phone imei usually don't work and is considered illegal.

Find out why here
[Galaxy S 4 i9505 Android Development] Anlva:
Thank you so much for replying.

So as I understand, there is no way to "unlock" my phone right? Or maybe I just bring it to Samsung help center. Samsung able to fix it?
[Galaxy S 4 i9505 Android Development] O-T:
Flash STOCK SAMSUNG,

STAY away from any DeOdexed custom /AOSP /cm or any other ported rom until you get confident enough to identify trustworthy work. And be sceptical to shady, badly written unlock guides.

Kindly looked up a stock lollipop version for your i9505 to flash and later factory reset.

http://xdaforums.com/showthread.php?p=58819092

... or find a newer one (LRX22C.I9505XXUHOE4) on your own

That usually mend IMEI trouble.

Since you didn't share what action you did to loose IMEI, a proper guide to flash any S4 using Odin is here

http://xdaforums.com/showthread.php?p=41072377

... to eliminate bad flash procedure from the equation

ThumbsUp button under every post is free to use in case you're in the mood to show appreciation.
[Galaxy S 4 i9505 Android Development] crazy_la4o:
I am trying to install it, but twrp get restart itselves, without complete message. In terminal emu, it says not found.
[Galaxy S 4 i9505 Android Development] v00d007:
[MENTION=5464206]AntaresOne[/MENTION]

I installed latest 2015-05-25 build on S4 9505. The backup process works, but when I try to do a restore it gives me write errors to sdcard. ?? Don't have any sdcard write problems with any other app.
[Galaxy S 4 i9505 Android Development] myawan:
Gives 'segmentation fault' during zipping process, while backing up.....
[Galaxy S 4 i9505 Android Development] cspius:
Can't copy the backup

Hello, first, thank you for your awesome work.

Unfortunately, I have a strange problem: I'm not able to copy the created IMEIBackup.zip to my computer or external SD-card.

Im running Stock rooted android 5.0.1 on the GT-I9505 incl. Busybox v1.24.1-Stericson (xbin).

I installed the script as mentioned with latest TWRP 2.8.7.0.

This is the log from Terminal Emulator, which looks like everything went just fine:

u0_a223@jflte:/ $ su
root@jflte:/ # imeibkp
***********************************
* AntaresOne's IMEI backup tool *
* Galaxy S4 *
* Qualcomm Snapdragon 600 *
***********************************

Checking device...

Galaxy S4 GT-I9505 found!

Checking backup...

Backup not found. Do you want to make it now?

1 - Yes
2 - No

Type 1 or 2 and press enter:
1

Backing up EFS...
27904+0 records in
27904+0 records out
14286848 bytes (13.6MB) copied, 0.440582 seconds, 30.9MB/s

Backing up modemst1...
6144+0 records in
6144+0 records out
3145728 bytes (3.0MB) copied, 0.089538 seconds, 33.5MB/s

Backing up modemst2...
6144+0 records in
6144+0 records out
3145728 bytes (3.0MB) copied, 0.095215 seconds, 31.5MB/s

Backing up m9kefs1...
1560+0 records in
1560+0 records out
798720 bytes (780.0KB) copied, 0.024322 seconds, 31.3MB/s

Backing up m9kefs2...
1560+0 records in
1560+0 records out
798720 bytes (780.0KB) copied, 0.024353 seconds, 31.3MB/s

Backing up m9kefs3...
1560+0 records in
1560+0 records out
798720 bytes (780.0KB) copied, 0.027802 seconds, 27.4MB/s

Backing up backup...
12288+0 records in
12288+0 records out
6291456 bytes (6.0MB) copied, 0.223816 seconds, 26.8MB/s

Backing up fsg...
6144+0 records in
6144+0 records out
3145728 bytes (3.0MB) copied, 0.093811 seconds, 32.0MB/s

Zipping...
adding: sdcard/IMEIBackup/backup.img (deflated 100%)
adding: sdcard/IMEIBackup/efs.img (deflated 99%)
adding: sdcard/IMEIBackup/fsg.img (deflated 100%)
adding: sdcard/IMEIBackup/m9kefs1.img (deflated 2%)
adding: sdcard/IMEIBackup/m9kefs2.img (deflated 2%)
adding: sdcard/IMEIBackup/m9kefs3.img (deflated 2%)
adding: sdcard/IMEIBackup/modemst1.img (deflated 100%)
adding: sdcard/IMEIBackup/modemst2.img (deflated 100%)

Backup path: /sdcard/IMEIBackup

Backup filename: IMEIBackup.zip

Writing log...

Log: backup.log

Operation successfully completed!

Feel free to make a donation if you find this useful :)
AntaresOne@XDA-Developers

root@jflte:/ #

The strange thing is, that I'm not able to find that IMEIBackup.zip (nor the folder) with any File Manager (aswell as not when plugged to the PC) except of the Cyanogenmod File Manager as you can see in this screenshot:

ES File Explorer (or any file explorer available for android):

Cyanogenmod File Explorer:

I wonder why I don't see the same content in both file managers?

Even with the Cyanogenmod File Explorer I'm not able to move or copy the IMEIBackup.zip to another place nor can I "share" it via Email or s.th. else. (error message).

Please help me if you have any idea why the file managers are showing different content and if there is a posibillity to move this file to my computer.

Cheers!
[Galaxy S 4 i9505 Android Development] shark jungle:
Nice Tool and I just made a video tutorial

@AntaresOne

[YOUTUBE]gBGfwtxcfxU[/YOUTUBE]​

I hope i did it well, If anyone had any comment please let me know.​
[Galaxy S 4 i9505 Android Development] Grumpy Cat:
Any support for the SPH-L720T Sprint version? My one is actually the i9505 but it says unknown device.
[Galaxy S 4 i9505 Android Development] TYGER1985:
Can anyone reupload zip? I cannot download, website is off.

Thank You
[Galaxy S 4 i9505 Android Development] silentscreamer:
https://www.androidfilehost.com/?fid=23991606952609909 link is still functional, simply download, mate ?

Gesendet von meinem SM-A9000 mit Tapatalk
[Galaxy S 4 i9505 Android Development] lalog82:
I have your same problem :o

it's creating the log only, without the zip.

is it like this for everyone?
[Galaxy S 4 i9505 Android Development] Jochen K.:
Same problem here. (i9505 with 5.1.1 "Untouched GPE" ROM)

The first time I ran the tool, it reported success.

I ran it again, and it gave out error messages about "no busybox".

I unearthed Stericsson's installer, and it told me that a Dorimanx busybox was present and advised against changing it.

I made a Nandroid backup and ran Stericsson's installer anyhow, then the the Tool again - again successfully. When I now run the tool again after a "success", I see the options Restore/Don't Restore/Delete, but can't find any trace of the .zip file.

When I type "imeib" into Search Everything, it finds the Tool but nothing else.

Additional question: is it possible to get along without this tool? TWRP also backs up EFS - can one use that somehow?

Regards,

Jochen

----------------------------------------------------------------------------------------------

EDIT

I'm using a different ROM now (Albe95's Lollirom 8.0 with Android 5.0.1), so I thought I'd try again.

Here things got a little weirder - I think this tool produces ghosts:

On this ROM the tool worked straight after flashing; it put out the usual success messages.

When I ran Total Commander, there was the IMEIBackup directory - which vanished without a trace when I tapped it.

I ran the tool twice more - to delete / install - but this time Total Commander never showed the directory.

I ran the tool twice more, to run SearchEverything; it found the directory, but again, when I tapped it, it vanished, and on subsequent attempts never showed up.

I'd really love for [MENTION=5464206]AntaresOne[/MENTION] to explain this to me - and maybe answer my "Additional question" from above.
[Galaxy S 4 i9505 Android Development] Podroznik:
solved
[Galaxy S 4 i9505 Android Development] jimbomodder:
[MENTION=5464206]AntaresOne[/MENTION] will this work on other devices or just S4, I was hoping to backup my A500FU files too.
[Galaxy S 4 i9505 Android Development] walttheboss:
I feel really dumb asking this. I can't find my backup files anywhere. Running DU 9.7 5.0.1.

Program runs fine and tells me they are in sdcard/IMEIbackup/ etc. etc. BUT How do I find them?
[Galaxy S 4 i9505 Android Development] jimbomodder:
It's a folder named imei backup
[Galaxy S 4 i9505 Android Development] walttheboss:
Thanks for the reply. The strange thing is after the program executes there is no such folder. No where no how. Strange. I know that Anteres One does great work but this is a mystery. I reread the thread and realize that others have this issue as well.
[Galaxy S 4 i9505 Android Development] jimbomodder:
Hmm ok, so does the folder show at all? I only found the thread yesterday and used it, shows in my internal memory and all the files backed up, must be one of the lucky ones, have you tried running it a second time?
[Galaxy S 4 i9505 Android Development] walttheboss:
Tried ten times(ok maybe 6). Tried several file explorers. Tried windows and Linux. Noone can see that folder. I did an EFS backup with TWRP 3.0.2 and hope that is enough if I need it. Will try again after I upgrade to lollipop. What ROM are you on? I am waiting on the latest JDCT that seems to have solved the kernel issues. Then try again.
[Galaxy S 4 i9505 Android Development] jimbomodder:
Just flashed imperium rom v13.1
[Galaxy S 4 i9505 Android Development] jimbomodder:
Here's mine
[Galaxy S 4 i9505 Android Development] walttheboss:
Thanks for the extra effort. I believe you totally. From your pics I went into TWRP file manager and still nothing. Will wait till after next fresh install. Thanks again.

UPDATE: installed EFS Backup by wanam from play store and it worked well.
[Galaxy S 4 i9505 Android Development] revnu:
Tool not working for me

I can do the Backup. He even tells me there is a Backup, after I start it again directly.

But the zip-file is not there!

If I restart the phone and try to backup again it tells me there is no backup :(

Any suggestions?
[Galaxy S 4 i9505 Android Development] walttheboss:
See one post up. I tried tons of ways. Just use the app above. The script isn't working now for lots of people.
[Galaxy S 4 i9505 Android Development] jantdroid:
How do you restore the backup using that app? I saved my IMEI backup in 3 file formats ?
[Galaxy S 4 i9505 Android Development] FernBch:
Instruction are in the OP.
[Galaxy S 4 i9505 Android Development] walttheboss:
Great question. Need to install partitions backup by wanam. That does the backup and restore. Need to hunt a bit to find the files but they are there. So you only need this one app not both.
[Galaxy S 4 i9505 Android Development] jantdroid:
Can't also find the folder said that containts the backup zip of my IMEI using this tool :/ Thanks

---------- Post added at 09:06 AM ---------- Previous post was at 09:00 AM ----------

Can't also find the folder said that containts the backup zip of my IMEI using this tool :/ Thanks
[Galaxy S 4 i9505 Android Development] vkopzon:
Hi, I am getting 'zip not found error' (using the latest version).

IMEIBackup created. Log exists, but no backup.zip

Any ideas?
[Galaxy S 4 i9505 Android Development] FernBch:
Is your backup on internal storage?
[Galaxy S 4 i9505 Android Development] thaidroid:
Install Partitions Backup.apk it replaces EFS backup, make sure you backup image and tar (click on the wrench to select) so you can restore directly from app(image)

To see the file boot into TWRP and connect phone to USB. and there it is, so you can just copy paste it to the PC
[Galaxy S 4 i9505 Android Development] vkopzon:
Yes it is.
[Galaxy S 4 i9505 Android Development] FernBch:
Interesting. IntSD is the default location for the app to look for the backup folder. What message do you get when you open your Terminal Emulator, type SU <enter>, then type imeibkp <enter>?
[Galaxy S 4 i9505 Android Development] vkopzon:
Log looks perfect. S4 variant verified. Partitions dumped. After that, 'zip not found'... Log created.
[Galaxy S 4 i9505 Android Development] rebel377:
what if i dont have backup
[Galaxy S 4 i9505 Android Development] a103:
Read the OP specifically the Why I should have back up? part.
[Galaxy S 4 i9505 Android Development] SAFI_AFRIDI:
i have S4-i9505 I9505XXUHOE3 Baseband but after flashing this via odin, i lost my imei and baseband too. now can i recovered my imei and baseband with this Tool. because i flash again and again but till now nothing happen. and i dont have the backup too. please assist

---------- Post added at 01:00 PM ---------- Previous post was at 12:46 PM ----------

Respected Dev. after reading all comments and especially the Post

so my friend have also S4 same version but different baseband version can i use his backup on my s4. or do i have to use some specific option.
[Galaxy S 4 i9505 Android Development] Ayumi_Jitsukawa:
Has anyone else the problem, that the download doesn't work, because "no mirror found"?
[Galaxy S 4 i9505 Android Development] Mynacol:
Quebec, Canada #1 and #2 are offered to me. Maybe try the download again...
[Galaxy S 4 i9505 Android Development] Ayumi_Jitsukawa:
I tried it several times before and it didn't work. Now I tried it for maybe the 10th time and it worked :D Thank you (y)
[Galaxy S 4 i9505 Android Development] Ayumi_Jitsukawa:
I have still one question: due to the fact, that I cannot download anymore the qpst zip from dev host (http://d-h.st/8vN), the only possibility to backup imei is this tool, if i'm right? So can i lose imei while rooting and flashing custom recovery with this method (i9505; https://xdaforums.com/galaxy-s4/general/guide-t3018625)? Because if it's possible, then i'd rather stay at stock, even if it's really annoying.
[Galaxy S 4 i9505 Android Development] Strephon Alkhalikoi:
Yes you can still lose the IMEI.

Use Wanam Partition Backup to back up the modem partitions where the IMEI is stored. Backing up the EFS directory hasn't done any good for a couple of years now, since Samsung removed nv_data.bin from there.
[Galaxy S 4 i9505 Android Development] Ayumi_Jitsukawa:
Hey, thanks for your answer. I'm sorry, that it took me so long to answer, I wasn't online for a while.

But I think, you misunderstood my question. I'm sorry for my bad english.

To use wanam, i need to FIRST root my phone and THEN backup my IMEI. It's the same as to use the Tool from Antares. There is another program, called qpst, with which I could backup the IMEI without/before rooting. But I couldn't get this qpst anymore, because the link was dead, so I asked, if it's safe, to root first and then backup IMEI, because in german forum nobody really knew, if it's possible to lose IMEI while rooting (not flashing/modding, only root with this method: https://xdaforums.com/galaxy-s4/general/guide-t3018625 ).

But now I got the qpst., so I hope, that it will work on Win 10.
[Galaxy S II Q&A, Help & Troubleshooting] tuduxx:
Any suggestions how to keep battery life longer with roms higher then 4.1.2? Every time i flash rom like cm kitkat, paranoid 3+ or higher my battery life sucks (battery life to 5 hours). And with 4.1.2 roms battery life is just awesome (about a day).

Sorry for bad english. :)
[Galaxy S II Q&A, Help & Troubleshooting] Saber:
The reason why battery life is noticeably worse on kitkat is because of the lack of drivers available for or device. It isn't well optimised for our device and as a consequence, battery life is lost. If you absolutely want the best features (in kitkat) and want reasonable battery life, look for roms that have been built to be as close to aosp sources. That is look at rom like slimkat or neatrom aosp as they seem to have the least bloat ware and are running on the latest version of kitkat.
[Galaxy S II Q&A, Help & Troubleshooting] tuduxx:
And how about kernels? Do they have any impact on battery life?
[Galaxy S II Q&A, Help & Troubleshooting] Saber:
Kernels can provide driver updates to the graphics therefore there may be better performance in games. Most custom kernels allow the user to undervolt their cpu (and sometimes gpu) therefore accounting to battery savings. So yes, if tuned properly (sometimes if custom kernel settings are left to the defaults), there may be a slight improvement to battery life. As I said before, I can only recommend to you aosp roms such as neatrom or slim saber rom if you want minimal battery drain.
[Note Edge General] ilordvader:
10 things to know about the Samsung Galaxy Note Edge
[Note Edge General] cvaria:
looks like a bunch of complaints. and silly opinion. the usual price beef... and more opinion. only his points 1, 2, 4, and 5 are valid. the rest is subjective.
[Note Edge General] steve austin:
I read this earlier and dismissed the entire article. It is clearly written by someone who has a dislike for the product IMO.
[Note Edge General] oscarwylde:
People did the same with the original Note and haters gonna hate... They are obviously not cool like me rocking my affordable, slick looking, one handed operating, sweet Note Edge. *shrug*

Sent from my SM-N915T
[Note Edge General] IMBAE75:
Read it, seen the same review on YouTube. This is not the device for everyone. My oldest wants my edge, he wants to upgrade in February to get it, youngest, she is happy with my old Note 3. I'm trying to talk my son into the Note 4, I can't let him have the same device as me.