[TUTORIAL] IMEI, Back-up "efs" folder and prevent IMEI loss/modification - Galaxy Ace S5830 General

Discontinued and removed
Because of data retention and your device's health, this thread has been removed

Reserved
Sent from my GT-I9100 using Tapatalk

the problem is no one knows where the EFS folder is on Galaxy Ace

and also mounting and reading from /efs partition bricked phones/wiped IMEIs (basically corrupted partition) in many cases. there's been huge threads regarding /efs on cheaper galaxies.

You don't need to mount your efs partition
And if you don't know where efs is search for the nv_data.bin
Sent from my GT-I9100 using Tapatalk

redmaner said:
You don't need to mount your efs partition
And if you don't know where efs is search for the nv_data.bin
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
There are no nv_data.bin file on Ace at all;-)

Your phone has a lot off folders
That nv_data.bin must be somewhere or you don't have a IMEI
Or it is stored somewhere else
Sent from my GT-I9100 using Tapatalk

redmaner said:
Or it is stored somewhere else
Click to expand...
Click to collapse
And this is - a sensible idea)

I checked my IMEI code and it seem to be functional, I was unable to locate the folder and the file that you were talking about.

Can someone do this command in adb or terminal emulator and show the result?
Code:
ls /
Sent from my GT-I9100 using Tapatalk

redmaner said:
Can someone do this command in adb or terminal emulator and show the result?
Code:
ls /
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
Code:
$ ls /
COOPER.rle
acct
cache
config
d
data
default.prop
dev
etc
fsua
init
init.goldfish.rc
init.qcom.post_boot.sh
init.qcom.rc
init.qcom.sh
init.rc
lib
mnt
persist
proc
recovery
res
root
sbin
sdcard
sys
system
ueventd.goldfish.rc
ueventd.rc
vendor
$

redmaner said:
Can someone do this command in adb or terminal emulator and show the result?
Click to expand...
Click to collapse
{
"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"
}

Lovetz said:
There are no nv_data.bin file on Ace at all;-)
Click to expand...
Click to collapse
But have a "dangerous" stl5 partition.

So there's no way we could backup our IMEI? I saw people lost their IMEI after downgrading to froyo.. Warranty not going to cover it... =.=

There is maybe a way will tell later
Sent from my GT-I9100 using Tapatalk

I'm interested in this since my IMEI is unknown according to my phone after trying to unlock it...
Especially if there's a way to modify a backup to put my IMEI in it and flash it to my phone. But I don't know if it's possible.

Can somebody try this in terminal emulator or ADB
remember this could be dangerous
Code:
su
dd if=/dev/block/stl5 off=/sdcard/efs.rfs bs=4096
when all this succeeds without complications then you will find a file on your sd "efs.rfs"
Upload that file here so I can investegate it
Sent from my GT-I9100 using Tapatalk

redmaner said:
Can somebody try this in terminal emulator or ADB
remember this could be dangerous
Code:
su
dd if=/dev/block/stl5 off=/sdcard/efs.rfs bs=4096
when all this succeeds without complications then you will find a file on your sd "efs.rfs"
Upload that file here so I can investegate it
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
this is exactly the way ppl corrupted their efs - even copying (dd command) somehow interacts with some other process/subsystem apparently accessing it the same time - then it's IMEI gone/brick. i'm not trying to be smart ass, just read quite a bit about it here on xda and try to warn others what it can bring.

Allright thanks for the info
Sent from my GT-I9100 using Tapatalk

i backup my stl5 block with dd. but there is no file like nv_data.bin or something has serial numbers or something like it.

Related

[Q] ADB multiple line file listing

Hello,
I have developed a program that will allow android users to navigate through the files. But the problem is that when I use the "ls" command it doesn't make always a new line after each file but it places it in one line.
Here is a screenshot
{
"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"
}
So my question is: Is there a way to make it list each file in new line? (using adb commands)
What you are looking for is "ls -1" command. It works on bash shell. But not sure that it will work with adb.
Sent from my HTC Sensation XE with Beats Audio using Tapatalk 2 Beta-2
musarraf172 said:
What you are looking for is "ls -1" command. It works on bash shell. But not sure that it will work with adb.
Sent from my HTC Sensation XE with Beats Audio using Tapatalk 2 Beta-2
Click to expand...
Click to collapse
Oh great. Thank You for such a quick answer. It works !!! Now I can keep going with my program.
One more question. Do You know maybe how to handle files that have space in the name?
jakuburban said:
Oh great. Thank You for such a quick answer. It works !!! Now I can keep going with my program.
One more question. Do You know maybe how to handle files that have space in the name?
Click to expand...
Click to collapse
for every space you have to use a back slash. Example "/etc/my folder" will be "/etc/my\ folder"
Sent from my HTC Sensation XE with Beats Audio using Tapatalk
Would you mind to share more about your app?
Sent from my HTC Sensation XE with Beats Audio using Tapatalk
musarraf172 said:
for every space you have to use a back slash. Example "/etc/my folder" will be "/etc/my\ folder"
Sent from my HTC Sensation XE with Beats Audio using Tapatalk
Click to expand...
Click to collapse
Nope, that doesn't work
adb shell ls -1
works for me!!!
ignore this!!!!
jakuburban said:
Nope, that doesn't work
Click to expand...
Click to collapse
It should . Open adb shell and try . Do'nt omit the space . You need to put the back slash to tell that a white space is coming in the file name . So "My Folder" will be "My\ Folder" not "My\Folder"
musarraf172 said:
It should . Open adb shell and try . Do'nt omit the space . You need to put the back slash to tell that a white space is coming in the file name . So "My Folder" will be "My\ Folder" not "My\Folder"
Click to expand...
Click to collapse
musarraf172 said:
Would you mind to share more about your app?
Sent from my HTC Sensation XE with Beats Audio using Tapatalk
Click to expand...
Click to collapse
1. I've tried to do it in many ways, the space was there but it just doesn't work. It won't work, it only shows the basic adb commands.
2.Yes, the app is in my description. This "Managing..."
jakuburban said:
1. I've tried to do it in many ways, the space was there but it just doesn't work.
Click to expand...
Click to collapse
Did you use both quotation marks and escaped the whitespace using backslash?
You have to use either or, so either
Code:
adb shell ls "/path/to/some file with space"
or
Code:
adb shell ls /path/to/some\ file\ with\ space
.
The ls I have on my android device do not accept the -1 argument, so if you are aiming for compatibility using that is perhaps not a good idea.
Yes I did. The ls -1 works fine but this "\ " doesn't work. It is still just seen as a normal space. Maybe there is a newer version of adb.exe that supports it
Here are some screens
But what about just quotation marks?
Code:
adb pull "/sdcard/INSTALKI/font smolna.zip"
eppeP said:
But what about just quotation marks?
Code:
adb pull "/sdcard/INSTALKI/font smolna.zip"
Click to expand...
Click to collapse
Thanks, that's what I wanted. We don't need to use "\ " only just a normal space but the whole location name must be in quotation marks

Cant Install custom recovery on Mac

idk what im doing wrong. I know im a little rusty at this but i did root my nexus 1 couple yrs ago and i dont remember having any problems
i followed the steps in this thread http://forum.xda-developers.com/showthread.php?t=1426377
i unlocked the bootloader but i'm getting stuck at #3. (im on a Mac)
on page 4-5 of that thread some1 else was stating they were getting stuck also. i tried to do what they did but it still not working. they also said something about choosing the option "install from SD card"...but im not seeing that option anywhere (& i do have debugging enabled)
I've put the .zip file on my sd card but when I go to fastboot on my phone, it just says keep saying "no image or wrong image"
this is what it says when i try to fastboot
{
"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"
}
any help is greatly appreciated
Try this...
Download this- http://d-h.st/Vsy
then extract the folder within the zip to your home folder.
open a terminal (it should start up in your home folder)
type sudo chmod 777 Recovery_Flasher
then type cd ~/Recovery_Flasher
once there type ./Flash.sh
Let me know if you get errors... i will try to fix them for you. also, this will reboot your phone into recovery mode when its done to test if it worked. if 4ext recovery loads then it worked
thanks!!!
but could u elaborate on what or where exactly this "home" folder is? the android folder? or is it folder on my sd card?
and i tried to enter those commands in terminal and all i got was "no such file or directory'
acjei said:
thanks!!!
but could u elaborate on what or where exactly this "home" folder is? the android folder? or is it folder on my sd card?
and i tried to enter those commands in terminal and all i got was "no such file or directory'
Click to expand...
Click to collapse
Your home directory on your mac
Sent from.... wait! where am I?
oh ok.
the commands still arent working. still says no such file or directory
im about to call it quits
where can i get the HTC drivers that im supposed to install on my mac?
I have one more idea... Will type it when I get home from school
Sent from.... wait! where am I?
acjei said:
where can i get the HTC drivers that im supposed to install on my mac?
Click to expand...
Click to collapse
Shocking I know, but Google and perhaps HTC would solve your question
Sent from my HTC_Amaze_4G using xda app-developers app
Spastic909 said:
Shocking I know, but Google and perhaps HTC would solve your question
Sent from my HTC_Amaze_4G using xda app-developers app
Click to expand...
Click to collapse
already did that..im only seeing .exe files....i have a Mac
where can i get the link for this toolkit?
the link on his site is dead
http://forum.xda-developers.com/showthread.php?t=1493905
You need to find a recovery image. I think the command in fastboot is ./flash recovery.IMG. dont forget commands in mac are ./ then the command.
Sent from my HTC_Amaze_4G using xda app-developers app

Re: [Q&A] NOS Sense 5 Rom | ask your questions and discuss here

Re: [Q&A] NOS Sense 5 Rom | ask your questions and discuss here
I've been using this rom for a fortnight but unable to understand how the internal storage works.
I previously used ViperDNA after S-off and then moved to this. Totally I made 3 twrp backups. But weirdly I'm able to see only 2 of them which are old in file explorer. When I boot into recovery, only the latest one is available to restore.
Also, I'm unable to copy the twrp backups into my PC. Whichever way I try to copy the folders, only a few files with total size in kb are being copied.
I've attached a screenshot of the file explorer showing 8 gb space as used while analyzer showing only 6gb of it. Very confused. Please help.
{
"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"
}
Sent from my HTC6435LVW using xda premium
venkatp said:
I've been using this rom for a fortnight but unable to understand how the internal storage works.
I previously used ViperDNA after S-off and then moved to this. Totally I made 3 twrp backups. But weirdly I'm able to see only 2 of them which are old in file explorer. When I boot into recovery, only the latest one is available to restore.
Also, I'm unable to copy the twrp backups into my PC. Whichever way I try to copy the folders, only a few files with total size in kb are being copied.
I've attached a screenshot of the file explorer showing 8 gb space as used while analyzer showing only 6gb of it. Very confused. Please help.
View attachment 2205078
Sent from my HTC6435LVW using xda premium
Click to expand...
Click to collapse
browse with file explorer or root explorer and Look for > Root/data/media/Twrp move your back ups to O zero folder/TWRP its where your recovery will look for backups/restore files.
you are unable to backup or copy from twrp /back up to u computer as a new security encryption anti theft in the new TWRP recovery
but you can do it by pulling from your pc through ADB
venkatp said:
I've been using this rom for a fortnight but unable to understand how the internal storage works.
Click to expand...
Click to collapse
When you update to 4.2.2 Android, the file system gets modified to allow for the multi-user environment. Essentially, /sdcard gets replicated into /sdcard/0. When you boot up and try to view your files, you can only see /sdcard/0 - but it appears as /sdcard (very confusing, I know).
I suggest you try using ADB to traverse your filesystem from within recovery (boot to recovery, attach USB cable, run ADB). If you know basic linux commands, this is easy, but basically run
adb shell
ls /sdcard
ls /sdcard/0
to see the differences. The backups you made prior to the switch are probably in /sdcard/0/TWRP instead of /sdcard/TWRP. You can move them like so:
mv /sdcard/0/TWRP/* /sdcard/TWRP/
Then reboot recovery and see if they show up.
ninja'd
Thanks a lot for the detailed responses. Now I can see all backups in recovery. Also cleared my confusion about the file structure. Will try adb to move the backups to pc and let you know... Thanks again
Sent from my HTC6435LVW using xda premium

[Q] galaxy sg2 cant backup EFS with hc-ktool

Noobie needs help here
Galaxy s2 sgh t989 rooted followed all steps.
I ran hc-ktool to backup efs.img and efs.tar.gz. When i ran the backup check i got this:
Checking current EFS backup....
/sdcard/efs.img found
______________
mount returned:255
(unable to mount image - image corrupted?)
/!\ nv_data.bin NOT FOUND in backup!!!
/sdcard/efs.tar.gz found
________________
/!\ nv_data.bin NOT FOUND in backup!!!
Does anyone know what the hell this is about? I have not flashed any ROM for fear of turning my s2 into a paper weight. I downloaded root browser from play store to try and look deeper. That is when i noticed my efs folder was empty. I have been scouring my files but feel like a blind man looking for a needle in a haystack.
Surely there must be something i can do! Also, i still have a good imei and broadband version...everything seems okay. I am reluctant to do anything for fear of bricking. I no longer have lockscreen or power off menu either.
Can i reset the phone to factory default and restore my efs? If so, do i have to unroot my phone? Or am i stuck like this forever and ever? Any help and i will give you my firstborn
Thanks
Sent from my SGH-T989 using xda app-developers app
Sent from my SGH-T989 using xda app-developers app
tapuout27 said:
Noobie needs help here
Galaxy s2 sgh t989 rooted followed all steps.
I ran hc-ktool to backup efs.img and efs.tar.gz. When i ran the backup check i got this:
Checking current EFS backup....
/sdcard/efs.img found
______________
mount returned:255
(unable to mount image - image corrupted?)
/!\ nv_data.bin NOT FOUND in backup!!!
/sdcard/efs.tar.gz found
________________
/!\ nv_data.bin NOT FOUND in backup!!!
Does anyone know what the hell this is about? I have not flashed any ROM for fear of turning my s2 into a paper weight. I downloaded root browser from play store to try and look deeper. That is when i noticed my efs folder was empty. I have been scouring my files but feel like a blind man looking for a needle in a haystack.
Surely there must be something i can do! Also, i still have a good imei and broadband version...everything seems okay. I am reluctant to do anything for fear of bricking. I no longer have lockscreen or power off menu either.
Can i reset the phone to factory default and restore my efs? If so, do i have to unroot my phone? Or am i stuck like this forever and ever? Any help and i will give you my firstborn
Thanks
Sent from my SGH-T989 using xda app-developers app
Sent from my SGH-T989 using xda app-developers app
Click to expand...
Click to collapse
If you can get IMEI number (settings -> about device -> status), then your efs is OK.. The reason why you saw empty efs folder is that you need to run file explorer in root mode.
To backup your efs, download Terminal Emulator from Google play, open it and type the following entry:
Code:
su
dd if=/dev/block/mmcblk0p1 of=/sdcard/efs.img
You will find efs.img file in your internal sdcard as efs backup
Heres what came back.
204800+0 records in
204800+0 records out
104857600 bytes transferred in 21.216 secs (4942383 bytes/sec)
I have root browser and looked in mu efs folder. It was empty. I then looked on sdcard and found a backup efs.img and efs.tar.gz but im guessing that they are both bad because when i check them with hc-ktool i get the exact same message...
Sent from my SGH-T989 using xda app-developers app
tapuout27 said:
Heres what came back.
204800+0 records in
204800+0 records out
104857600 bytes transferred in 21.216 secs (4942383 bytes/sec)
I have root browser and looked in mu efs folder. It was empty. I then looked on sdcard and found a backup efs.img and efs.tar.gz but im guessing that they are both bad because when i check them with hc-ktool i get the exact same message...
Sent from my SGH-T989 using xda app-developers app
Click to expand...
Click to collapse
OK sir, try using the following as a test to see is it really efs.img corrupted or not:
Copy efs.img to your computer.
If you are using Linux OS:
- Open terminal and type:
Code:
su -
mkdir -p /mnt/disk
mount -o loop efs.img /mnt/disk
cd /mnt/disk
ls -l
If you are using Windows OS:
- Download LinuxReader from this site here.
- Open it -> Drives -> Mount Image -> Then choose efs.img and hit Mount. A new driver will appear that contains all files inside the dumped image called "Linux native Volume 1". Just double click it to get inside the dumped image.
{
"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"
}
If you got files inside efs image then hopefully your efs.img is not corrupted.

(script) Access all those hidden menus

To go with the thread on hidden menus/settings/dialer codes:
http://forum.xda-developers.com/showthread.php?t=2578216
I made a script to easily access them.
For convienence I put it in /system/bin and call it from terminal >$ but however you do it is fine. Not required to be called from root prompt but su binary installed to one of your PATH is. Extract gmenu from zip attachment.
Anyways enjoy ppl.
{
"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"
}
Update: Added some more menus.
Added another menu and ability to send secret codes with no formatting (e.g. *#*#xx#*#* ##xx# etc etc) also nice about this is many that just dont work from the dialer WORK this way!!
A great thread by E:V:A with many working codes here: http://forum.xda-developers.com/galaxy-s3/general/ref-secret-codes-hidden-features-t1687249
can this be made in an apk? i guess termianl emulator needs a root access to work?
how can i access usbsettings without rooting? plz guide
swapyworld said:
can this be made in an apk? i guess termianl emulator needs a root access to work?
how can i access usbsettings without rooting? plz guide
Click to expand...
Click to collapse
Check out GalaxyTools in the themes and apps subforum. It does need root though.
or from dialer try ##diag# or ##dmmode# or ##port# if you dont have root.
idone said:
Check out GalaxyTools in the themes and apps subforum. It does need root though.
or from dialer try ##diag# or ##dmmode# or ##port# if you dont have root.
Click to expand...
Click to collapse
Sorry but how can type diag in dialer? I mean ##344424# is diag?
Sent from my SM-N900P using Tapatalk
swapyworld said:
Sorry but how can type diag in dialer? I mean ##344424# is diag?
Sent from my SM-N900P using Tapatalk
Click to expand...
Click to collapse
Yes letters are on the number buttons. The logical words and abbreviations are easier to remember than numbers.
I have download the gmenu.zip but can't seem to get the menu to open. I have tried ( # ls /storage/emulated/0/download/gmenu) and nothing happens. Please help
Sent from my SM-N900P using XDA Free mobile app
Titan_evo said:
I have download the gmenu.zip but can't seem to get the menu to open. I have tried ( # ls /storage/emulated/0/download/gmenu) and nothing happens. Please help
Sent from my SM-N900P using XDA Free mobile app
Click to expand...
Click to collapse
You could checkout my app which has all these menus and more.
http://forum.xda-developers.com/not.../app-one-click-hotspot-enabler-menus-t2816159
But I just retested my script on 4.4.4 for you.
Call it from root prompt #source /pathtofile/gmenu or if you have copied it to xbin bin sbin just execute like #source gmenu and it will run.
tutorials
idone said:
You could checkout my app which has all these menus and more.
http://forum.xda-developers.com/not.../app-one-click-hotspot-enabler-menus-t2816159
But I just retested my script on 4.4.4 for you.
Call it from root prompt #source /pathtofile/gmenu or if you have copied it to xbin bin sbin just execute like #source gmenu and it will run.
Click to expand...
Click to collapse
any video tutorial on how to use this

Categories

Resources